Created
September 15, 2020 18:06
-
-
Save eduherminio/28f2ab7cdff0849b0e80e678a04f39ec to your computer and use it in GitHub Desktop.
Basic .NET Core WebApi setup (.net core 3.1)
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
| $projectName = "" | |
| mkdir src && cd src | |
| dotnet new classlib -n "$projectName" | |
| dotnet new webapi -n "$projectName.Api" | |
| cd .. | |
| mkdir tests && cd tests | |
| dotnet new xunit -n "$projectName.Test" | |
| cd .. | |
| dotnet new sln -n "${projectName}Solution" | |
| dotnet sln add "tests/$projectName.Test" | |
| dotnet sln add (ls -r src/*.csproj) --in-root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment