Last active
July 19, 2020 19:20
-
-
Save gldraphael/abc17e22780ab4c0f13c99bf6dfb50af to your computer and use it in GitHub Desktop.
Setting up a quick dotnet console project for testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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