Skip to content

Instantly share code, notes, and snippets.

@amacal
Last active November 3, 2020 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amacal/7b8ddc7f2ddceb846a3b98e38c87636b to your computer and use it in GitHub Desktop.
Save amacal/7b8ddc7f2ddceb846a3b98e38c87636b to your computer and use it in GitHub Desktop.
# create empty solution
dotnet new sln -o blocks
cd blocks
# create projects
dotnet new console -o Blocks
dotnet new classlib -o Blocks.Core
dotnet new nunit -o Blocks.Core.Tests
# include in solution
dotnet sln add Blocks/Blocks.csproj
dotnet sln add Blocks.Core/Blocks.Core.csproj
dotnet sln add Blocks.Core.Tests/Blocks.Core.Tests.csproj
# create references
dotnet add Blocks/Blocks.csproj reference Blocks.Core/Blocks.Core.csproj
dotnet add Blocks.Core.Tests/Blocks.Core.Tests.csproj reference Blocks.Core/Blocks.Core.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment