Accelerate the creation of .NET 5 API projects with minimal dependencies and a solution containing settings for DI/IoC, API versioning, automatic OpenAPI/Swagger documentation, separated layers, preconfigured mapping settings, preconfigured log settings, etc.
This extension allows to create a .NET 5.0 REST API ready to be used solution taking into account:
DI according to .NET 5 practices, inherited from .NET Core (without external dependencies)
exception handling settings according to .NET 5 practices (production and development error handlers)
AppSettings
mapping settings (based on Automapper)
OpenAPI basic configuration (can be enabled/disabled by configuration)
API Versioning (based on URL routes)
automatic OpenAPI versioning according to code
XML Comments included in Swagger
The created solution is layered according to architectural principles and gathering a set of good practices. The result is increased testability, evolutivity and maintainability.
What does it look like?
Once the extension installed, you can use it directly from the start screen when you create a new project:
Creation Wizard - Step 1
Creation Wizard - Step 2
The extension will create a VS solution and the projects to build a REST API in order to focus on value creation.
The provided settings through the wizard can be updated at any time in the configuration file (appsettings.json).
More details and a quick start at //jmidotnetfr.wordpress.com/2020/11/06/net-5-rest-api-template-for-visual-studio/.
.NET CLI
In addition to this Visual Studio version, you can find here the .NET CLI version.
Release notes
v5.0.1011
end of preview and first .NET 5 version
v5.0.1000-preview
code comments (XML Comments type) at DataContract level are included in the Swagger/OpenAPI generation
v5.0.962-preview
solution creation new UI to provide common settings
license updates (missing until now)
error fixes
delivery process updates
new VSIX project to review settings
v5.0.917-preview
small updates (RC2)
logo update
AppSettings DI error fix
v5.0.872-preview
.NET 5.0 RC updrage
log settings improvements
Services structure reviewed according to provided feedbacks