NetCoreApplicationTemplate 2.10.0

dotnet new install NetCoreApplicationTemplate@2.10.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, cookie authentication, authenticated-by-default routed endpoints, policy-based authorization, 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 session scheme cookie (no default sign-in provider)
Default data provider sqlite

Install

Install the template package from NuGet:

dotnet new install NetCoreApplicationTemplate::2.10.0

For local package validation, install a packed package directly:

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

Generate a project

Create a default scaffold:

dotnet new netcoreapp-template -n ContosoSecurityPortal

The default scaffold enables cookie authentication as its session handler and a fallback authorization policy that requires an authenticated user for routed endpoints without authorization metadata. It does not include local user accounts, a credential form, a seeded user, or an enabled external provider. Cookie authentication does not verify credentials by itself, so protected routes remain unavailable until the consuming application enables an external provider or supplies its own identity flow. Intentionally public routes must use explicit anonymous metadata such as [AllowAnonymous] or .AllowAnonymous().

Generate with application authentication disabled:

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

--authProvider none is an explicit opt-out. It disables application authentication, cookie authentication, and the authenticated fallback policy in generated configuration. Unannotated routed endpoints are therefore public until the consuming application adds another authentication mechanism and authorization posture.

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

Authentication and authorization terminology

  • Authentication establishes the caller's identity.
  • Authorization determines whether that identity may access an endpoint or operation.
  • The fallback authorization policy applies to routed endpoints that contain no authorization metadata.
  • Policy-based authorization adds role, permission, claim, or custom requirements beyond the authenticated-user baseline.

Template options

Option Default Supported values Description
--authProvider cookie cookie, none Selects either the default cookie-authentication and authenticated-fallback posture or the explicit authentication-disabled opt-out.
--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.

SQL Server scaffolds omit the SQLite-specific migration history and migration tests. Generate provider-compatible SQL Server migrations before applying database updates.

Scaffolds do not include a pre-generated SQL migration script. Generate and review SQL from the consuming application's current provider-specific migrations before deployment.

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.10.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.10.0 37 9/19/2026
2.9.0 86 9/12/2026
2.8.0 129 9/6/2026
2.7.0 126 8/30/2026
2.6.2 137 8/22/2026
2.6.1 167 8/22/2026 2.6.1 is deprecated because it has critical bugs.
2.6.0 160 8/7/2026
2.5.0 170 8/2/2026
2.4.0 179 7/20/2026
2.3.1 210 7/6/2026
2.3.0 201 7/3/2026
2.2.0 218 6/29/2026
2.1.0 210 6/27/2026
2.0.1 221 6/26/2026
2.0.0 218 6/25/2026

Minor 2.10.0 release of the NetCoreApplicationTemplate dotnet new template. This backward-compatible release adds verifiable release evidence, certificate encryption for Data Protection keys, stricter security defaults and startup diagnostics, hardened external authentication and rate limiting, worker retry backoff, and stronger build and coverage enforcement. The package ID, template identities, short name, supported options, and net10.0 target remain unchanged. This release completes feature development for the 2.x line.