- #7156 part 1 of ? - add `CompatibilityVersion.Version_3_0` and make it the default - remove tests of old versions - also remove `CompatibilityVersion.Version_2_x` uses outside src/Mvc - for functional tests of legacy routing, use `MvcOptions.EnableEndpointRouting` to control behaviour - rename `StartupWith2xCompat...` classes to `StartupWithoutEndpointRouting` - clean up comments mentioning `[Obsolete]` `CompatibilityVersion` values - many of the affected options will be removed in subsequent PRs but this cleanup helps when searching entire repo - correct `<value>` comments in `ApiBehaviorOptions` nits: - take VS suggestions in changed files - remove src/SiteExtensions/global.json and let file in repo root "win" - fix a few grammar errors VS or the spell checker noticed - move `<value>` elements before `<remarks>` for consistency - was undoing unintentional changes and noticed the inconsistency in a couple of additional files |
||
|---|---|---|
| .. | ||
| build | ||
| migrations | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| Directory.Build.props | ||
| Directory.Build.targets | ||
| NuGetPackageVerifier.json | ||
| README.md | ||
| Templating.sln | ||
| version.props | ||
README.md
Templates
Getting Started
ASP.NET Templates provide project templates which are used in .NET Core for creating ASP.NET Core applications.
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.
Building Templates
- Running build.cmd in this repo requires NPM which can be installed from https://nodejs.org/en/.
- The ASP.NET localhost development certificate must also be installed and trusted or else you'll get a test error "Certificate error: Navigation blocked".
build.cmd(orbuild /t:packageto avoid tests) will produce NuGet packages for each class of template in the artifacts directory. These can be installed viadotnet new -i {nugetpackage path}- You also need to get the packages these templates depend on into your package cache or else
dotnet newrestore will fail. The easiest way to get them to run is by letting the build run at least 1 test.