Skip to content

Instantly share code, notes, and snippets.

@gldraphael
Last active July 19, 2020 19:20
Show Gist options
  • Save gldraphael/abc17e22780ab4c0f13c99bf6dfb50af to your computer and use it in GitHub Desktop.
Save gldraphael/abc17e22780ab4c0f13c99bf6dfb50af to your computer and use it in GitHub Desktop.
Setting up a quick dotnet console project for testing
# Create the solution directory
mkdir so-example
cd so-example
# Create a console project
dotnet new console --name ConsoleApp
# Create a solution file and add the web project to it
dotnet new sln
dotnet sln add ConsoleApp/ConsoleApp.csproj
# Restore dependencies and run the project
dotnet restore
cd ConsoleApp
dotnet run
# Open the solution directory in code
code ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment