cli
TOPICS
March 2019
Command Line Commands for dotnet core
March 28 | Net
Command Line Commands for dotnet core
dotnet core
dotnet
dotnet --version
dotnet new [template]
Create a console app
dotnet new console
// dotnet restore implicit
dotnet build
// dotnet restore and build implicit
dotnet run
Create a solution with tests and references
dotnet new [template]
dotnet new sln -n [name]
mkdir Library
cd Library
dotnet new classlib
dotnet add package System.Threading.Task.Extensions
cd ..
dotnet sln add Library\Library.csproj
mkdir Test
cd Test
dotnet new xUnit
dotnet add reference ..\Library\Library.csproj
cd ..
dotnet sln add Test\Test.csproj