aspnetcore/src/ProjectTemplates
Ryan Brandenburg 0c4b3fbd6d
Improve local development of Templates (#8196)
2019-03-21 16:29:45 -07:00
..
Web.Client.ItemTemplates
Web.ItemTemplates
Web.ProjectTemplates Remove unused namespaces from Worker template Program.cs (#8574) 2019-03-20 20:54:40 -07:00
Web.Spa.ProjectTemplates [Infrastructure improvements] (#8275) 2019-03-20 08:44:20 +01:00
migrations
scripts Improve local development of Templates (#8196) 2019-03-21 16:29:45 -07:00
test Improve local development of Templates (#8196) 2019-03-21 16:29:45 -07:00
testassets/DotNetToolsInstaller
.gitignore
Directory.Build.props Add reference assemblies support (#7764) 2019-02-21 14:33:35 -08:00
Directory.Build.targets
GenerateContent.targets
ProjectTemplates.sln [Infrastructure improvements] (#8275) 2019-03-20 08:44:20 +01:00
README.md Improve local development of Templates (#8196) 2019-03-21 16:29:45 -07:00
SetPackageProperties.targets
THIRD-PARTY-NOTICES Use Bootstrap 3.4.1 and 4.3.1 (#7719) 2019-02-20 15:55:49 -08:00
TemplateProjects.props
build.cmd
templates.nuspec

README.md

Templates

Getting Started

These are project templates which are used in .NET Core for creating ASP.NET Core applications.

Building Templates

  1. Run . .\activate.ps1 if you haven't already.

  2. Run build.cmd -all -pack in the repository root to build all of the dependencies.

  3. Run build.cmd in this directory will produce NuGet packages for each class of template in the artifacts directory.

  4. Because the templates build against the version of Microsoft.AspNetCore.App that was built during step 2 it is NOT advised that you install templates created on your local machine via dotnet new -i [nupkgPath]. Instead, use the Run-[Template]-Locally.ps1 scripts in the script folder. These scripts do dotnet new -i with your packages, but also apply a series of fixes and tweeks to the created template which keep the fact that you don't have a production Microsoft.AspNetCore.App from interfering.

  5. The ASP.NET localhost development certificate must also be installed and trusted or else you'll get a test error "Certificate error: Navigation blocked".