This commit is contained in:
2021-03-26 00:26:52 +01:00
commit 7ea63e50a3
6 changed files with 128 additions and 0 deletions

33
kickstart.ps1 Normal file
View File

@@ -0,0 +1,33 @@
New-Item -ItemType Directory -Force -Path output
pushd output
git init
# solution
dotnet new sln -n Solution
dotnet new gitignore
dotnet new globaljson
dotnet new nugetconfig
# domain project
dotnet new classlib -n Domain
dotnet sln add Domain
# unit test project
dotnet new nunit -n Domain.Tests
dotnet add Domain.Tests package NSubstitute
dotnet sln add Domain.Tests
dotnet add Domain.Tests reference Domain
# wiring project
dotnet new classlib -n Wiring
dotnet sln add Wiring
dotnet add Wiring reference Domain
dotnet add Wiring package Autofac
# use webapi and/or console
# webapi project
#dotnet new webapi -n WebApi
#dotnet sln add WebApi
#dotnet add WebApi reference Domain
#dotnet add WebApi reference Wiring
# console project
dotnet new console -n ConsoleApp
dotnet sln add ConsoleApp
dotnet add ConsoleApp reference Domain
dotnet add ConsoleApp reference Wiring
popd