aspnetcore/src/ProjectTemplates
Ryan Brandenburg 66fd4be4d7
Accessibility (#10247)
Template Accessibility
2019-05-21 11:22:21 -07:00
..
Web.Client.ItemTemplates
Web.ItemTemplates Add a protobuf item template (#10125) 2019-05-14 20:55:26 -07:00
Web.ProjectTemplates Accessibility (#10247) 2019-05-21 11:22:21 -07:00
Web.Spa.ProjectTemplates Accessibility (#10247) 2019-05-21 11:22:21 -07:00
migrations
scripts Accessibility (#10247) 2019-05-21 11:22:21 -07:00
test Accessibility (#10247) 2019-05-21 11:22:21 -07:00
testassets/DotNetToolsInstaller
.gitignore
Directory.Build.props
Directory.Build.targets Remove API check baselines and related project settings (#9846) 2019-04-30 14:58:13 -07:00
GenerateContent.targets
ProjectTemplates.sln Check browser console errors (#9298) 2019-04-25 10:02:22 -07:00
README.md Added the submodules initialization step 2019-04-04 10:36:14 -07:00
SetPackageProperties.targets
THIRD-PARTY-NOTICES
TemplateProjects.props
build.cmd
startvs.cmd Mark flaky Angular test (#9926) 2019-05-02 10:28:11 -07:00
templates.nuspec

README.md

Templates

Getting Started

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

Prerequisites

Some projects in this repository (like SignalR Java Client) require JDK installation and configuration of JAVA_HOME environment variable.

  1. If you don't have the JDK installed, you can find it from https://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. After installation define a new environment variable named JAVA_HOME pointing to the root of the latest JDK installation (for Windows it will be something like c:\Program Files\Java\jdk-12).
  3. Add the %JAVA_HOME%\bin directory to the PATH environment variable

Building Templates

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

  2. Run git submodule update --init --recursive if you haven't already.

  3. Run git submodule update to update submodules.

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

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

  6. Because the templates build against the version of Microsoft.AspNetCore.App that was built during the previous step, 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 tweaks to the created template which keep the fact that you don't have a production Microsoft.AspNetCore.App from interfering.

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