AebSolutions.CodeConvention.SolutionTemplates
6.4.0
See the version list below for details.
dotnet new install AebSolutions.CodeConvention.SolutionTemplates::6.4.0
Code Convention Templates
Solution templates for the .NET command-line interface and Visual Studio
.
These templates are for those who are familiar with Dependency Injection, Hosting, EFCore SQL Server and Sqlite.
Solution Templates
Features
The following features are available for all solution templates, and have default configurations.
- Dependency Injection
- Generic Host
- StyleCop configuration file
- .editorconfig
- create-database.bat: Creates an initial migration and database using the selected provider.
- appsettings.json
- LICENSE file for the solution (Optional)
- Logging
- Generic Host
- Serilog (Optional)
If selected, see appsettings.json for initial configuration.
- Data Access with Entity Framework Core
- SQL Server Express LocalDB
- SQL Server Express
- Sqlite
- AutoMapper (Optional)
- FluentValidation (Optional)
- MediatR (Optional)
Requirements
- Visual Studio 2022 (For Visual Studio use only)
- .NET 6.0
- Entity Framework Core tools for .NET Core CLI
- SQL Server Express
Installation
.NET CLI
dotnet new --install AebSolutions.CodeConvention.SolutionTemplates::6.4.0
Instructions
Create the database
- create-database.bat (root folder of solution)
- .NET Core CLI
- Package Manager Console
If Sqlite is selected as the database provider, configure the Build Action
to None
and Copy to Output Directory
to Copy if newer
for the sqlite database that gets created in the project's root folder. Build the application after configuration.
Help
.NET CLI
dotnet new cc-console --help
dotnet new cc-razorpages --help
dotnet new cc-webapi --help
dotnet new cc-winforms --help
dotnet new cc-wpf --help
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.