-
Creating a solution:
dotnet new sln -n "VsCodeSolution"
-
Creating a Console Application:
dotnet new console -n "IntroUI"
-
Creating a Class Library Application:
dotnet new classlib -n "IntroLibrary"
-
Referencing all projects to the solution:
dotnet sln VsCodeSolution.sln add **/*.csproj
Bash commands makes it easier to add the projects at once to the sln file. If you use command prompt (windows), you will need to add the projects one by one
-
Creating a reference between projects:
dotnet add IntroUI/IntroUI.csproj reference IntroLibrary/IntroLibrary.csproj
-
Adding a Nuget Package to your project:
Navigate to your project and run the following commnad:
dotnet add package Dapper