aspnetcore/src/ProjectTemplates
Javier Calvarro Nelson 562d119ca4
Enable single pages directory (#8799)
* Enable single pages directory
* Rename Index.cshtml to Host.cshtml
* Get rid of _ViewImports.cshtml
2019-03-27 11:51:01 +01:00
..
Web.Client.ItemTemplates
Web.ItemTemplates
Web.ProjectTemplates Enable single pages directory (#8799) 2019-03-27 11:51:01 +01:00
Web.Spa.ProjectTemplates Experience for Razor SDK (#8731) 2019-03-22 17:33:20 -07: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
Directory.Build.targets
GenerateContent.targets
ProjectTemplates.sln
README.md Update README.md 2019-03-26 09:59:44 -07:00
SetPackageProperties.targets
THIRD-PARTY-NOTICES
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".

** Note** Templating tests require Visual Studio unless a full build (CI) is performed.