With this bash script you will be able to easily generate a .NET Core solution structure. You will be able to generate a project, with a test project. If you choose for a test project there will also be a reference added between the projects.
Example:
./dotnet-2.2-solution-generator.sh -n Foo -p mvc -t mstest
This will generate the following structure:
Foo
├── Foo-mvc
│ ├── Foo-mvc.csproj
│ └── ***ALL GENERATED DOTNET NEW MVC FILES***
├── Foo.sln
└── Foo.Test
├── Foo.Test.csproj
└── ***ALL GENERATED DOTNET NEW MSTEST FILES***
23 directories, 64 files
- A installed version of .NET core with the CLI.
- Bash based shell.
- Choose one version compatiable with your .NET core version. Set execute permission.
chmod +x dotnet-2.2-solution-generator.sh
- To run the script:
./dotnet-2.2-solution-generator.sh -n Foo -p mvc -t mstest
dotnet-2.2-solution-generator.sh -h
dotnet-2.2-solution-generator.sh [-h] [-n string] [-p string] [-t string] -- program to generate a .NET Core solution structure, for given project and test type.
where:
-n Solution Name
-p Project Type: [mvc, web, webapi, console]
-t Test Project Type: [mstest, nunit, xunit] - OPTIONAL
-h Display's this - OPTIONAL
If you have feedback or some changes you would like to see. You can send me a pull request.