title | subtitle | author | date | source | notoc |
---|---|---|---|---|---|
Dotnet Core Cheat Sheet |
This cheat sheet is courtesy Ben Day |
Ben Day |
August 22, 2017 |
false |
This cheat sheet is courtesy Ben Day and is available here. This Markdown file is just for easy reference for programmers.
What follows are the excerpts from Ben's blog.
The nice thing about the items on this 'cheat sheet' is that they work on Windows, Mac, and Linux. Note 2/13/2017: Want an example script? Check this out.
cd {directory where you want to create the *.sln file}
dotnet new sln
cd {directory where you want to create the *.csproj file}
dotnet new classlib
cd {directory where you want to create the *.csproj file}
dotnet new classlib -f netcoreapp2.1
cd {directory where you want to create the *.csproj file}
dotnet new mvc
cd {directory where you want to create the *.csproj file}
dotnet new mvc -f netcoreapp2.1
cd {directory where you want to create the *.csproj file}
dotnet new mstest -f netcoreapp2.1
cd {directory that contains the *.sln file}
dotnet sln MySolutionFile.sln add .\src\MySolution.WebUi\MySolution.WebUi.csproj
cd {directory that contains the source/from *.csproj file}
dotnet add reference ..\MySolution.Api\MySolution.Api.csproj
cd {directory that contains the *.sln file or *.csproj file}
dotnet restore
cd {directory that contains the *.sln file or *.csproj file}
dotnet build
Useful, thanks!