Skip to content

Instantly share code, notes, and snippets.

@mhamrah
Last active July 24, 2018 19:31
Show Gist options
  • Save mhamrah/14ae9d9a09c9de534b912798ddf42829 to your computer and use it in GitHub Desktop.
Save mhamrah/14ae9d9a09c9de534b912798ddf42829 to your computer and use it in GitHub Desktop.
dotnet commands cheat sheet

Add a package to a project

dotnet add <PROJECT PATH> package <NUGET PACKAGE> project path is optional

Add a reference to an existing project

dotnet add <PROJECT PATH> reference <REFERENCE PROJECT PATH> project path is optional

Add a project to a solution

dotnet sln add <PROJECT PATH> note this is done in the directory with the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment