Last active
October 12, 2022 19:25
-
-
Save willsantos/269c1a191c272876eb6ce24c795201d6 to your computer and use it in GitHub Desktop.
Script Gerador de projetos dotnet
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
| #Chame o script passando o nome da Solucao seguido do nome do projeto | |
| #Irá criar dentro de uma pasta com o mesmo nome da solução. | |
| # Não esquecer de dar permissão de execução | |
| mkdir $1 | |
| cd $1 | |
| dotnet new gitignore | |
| dotnet new sln -n $1 | |
| dotnet new console -n $2 | |
| dotnet new mstest -n Testes | |
| dotnet sln add $2/$2.csproj | |
| dotnet sln add Testes/Testes.csproj | |
| dotnet add Testes/Testes.csproj reference $2/$2.csproj | |
| dotnet build | |
| dotnet test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment