Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- param(
- [string]$SolutionName
- )
- dotnet new sln -n $SolutionName
- dotnet new console -n $SolutionName
- dotnet new xunit -n "$SolutionName.UnitTests"
- dotnet add "$SolutionName.UnitTests\$SolutionName.UnitTests.csproj" reference "$SolutionName\$SolutionName.csproj"
- dotnet sln "$SolutionName.sln" add "$SolutionName\$SolutionName.csproj"
- dotnet sln "$SolutionName.sln" add "$SolutionName.UnitTests\$SolutionName.UnitTests.csproj"
Add Comment
Please, Sign In to add comment