NetCoreApplicationTemplate 2.2.0

dotnet new install NetCoreApplicationTemplate@2.2.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

.NET Core Application Social Preview

.NET Core Application Template

A reusable dotnet new template for creating a production-oriented ASP.NET Core application baseline with structured logging, security headers, forwarded headers, rate limiting, centralized error handling, authentication-ready architecture, and EF Core-ready structure.

This README is intended for NuGet package consumers. The full repository README and documentation site provide deeper implementation and maintainer guidance.

Template identity

Item Value
Package ID NetCoreApplicationTemplate
Template short name netcoreapp-template
Default authentication provider cookie
Default data provider sqlite

Install

Install the template package from NuGet:

dotnet new install NetCoreApplicationTemplate::2.2.0

For local package validation, install a packed package directly:

dotnet new install ./artifacts/template-package/NetCoreApplicationTemplate.2.2.0.nupkg

Generate a project

Create a default scaffold:

dotnet new netcoreapp-template -n ContosoSecurityPortal

The default scaffold uses the cookie-authentication-ready baseline and SQLite development configuration.

Generate with authentication disabled:

dotnet new netcoreapp-template --name ContosoNoAuth --authProvider none

Generate with SQL Server selected:

dotnet new netcoreapp-template --name ContosoSqlServer --dbProvider sqlserver

Generate with authentication disabled and SQL Server selected:

dotnet new netcoreapp-template --name ContosoNoAuthSqlServer --authProvider none --dbProvider sqlserver

Template options

Option Default Supported values Description
--authProvider cookie cookie, none Selects the generated authentication baseline.
--dbProvider sqlite sqlite, sqlserver, none Selects the generated EF Core provider configuration.
--skipRestore false true, false Skips the post-create NuGet restore action when set to true.

Build and test generated output

cd ContosoSecurityPortal
dotnet restore
dotnet build --configuration Release
dotnet test --configuration Release

Update

Install the newer package version with the same package identity:

dotnet new install NetCoreApplicationTemplate::2.2.0

Uninstall

dotnet new uninstall NetCoreApplicationTemplate

Additional resources

Generated projects receive their own consumer-oriented README from the scaffold. This package README is intentionally limited to NuGet installation, scaffold options, validation commands, and consumer-facing reference links.

  • net10.0

    • 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.

Version Downloads Last Updated
2.2.0 82 6/29/2026
2.1.0 94 6/27/2026
2.0.1 103 6/26/2026
2.0.0 103 6/25/2026

Minor 2.2.0 release of the NetCoreApplicationTemplate dotnet new template. This release refactors EF Core SaveChanges preparation into an application-owned save pipeline invoked through a composite SaveChangesInterceptor, reduces repeated ChangeTracker enumeration, documents the EF Core save pipeline extension model, clarifies application-managed concurrency stamp portability, and refreshes package/documentation image assets while preserving the stable 2.x package identity and default scaffold behavior.