You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ProjectTemplates/README.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ To build the ProjectTemplates, use one of:
36
36
37
37
### Test
38
38
39
+
#### Running ProjectTemplate tests:
40
+
39
41
To run ProjectTemplate tests, first ensure the ASP.NET localhost development certificate is installed and trusted.
40
42
Otherwise, you'll get a test error "Certificate error: Navigation blocked".
41
43
@@ -47,6 +49,12 @@ Then, use one of:
47
49
1. Run templates manually with `custom-hive` and `disable-sdk-templates` to install to a custom location and turn off the built-in templates e.g.
48
50
-`dotnet new -i Microsoft.DotNet.Web.Spa.ProjectTemplates.6.0.6.0.0-dev.nupkg --debug:custom-hive C:\TemplateHive\`
49
51
-`dotnet new angular --auth Individual --debug:disable-sdk-templates --debug:custom-hive C:\TemplateHive\`
52
+
1. Install the templates to an existing Visual Studio installation.
53
+
1. Pack the ProjectTemplates: `src\ProjectTemplates\build.cmd -pack -configuration Release`
54
+
- This will produce the `*dev.nupkg` containing the ProjectTemplates at `artifacts\packages\Release\Shipping\Microsoft.DotNet.Web.ProjectTemplates.7.0.7.0.0-dev.nupkg`
55
+
2. Install ProjectTemplates in local Visual Studio instance: `dotnet new -i "<REPO_PATH>\artifacts\packages\Release\Shipping\Microsoft.DotNet.Web.ProjectTemplates.7.0.7.0.0-dev.nupkg"`
56
+
3. Run Visual Studio and test out templates manually.
57
+
4. Uninstall ProjectTemplates from local Visual Studio instance: `dotnet new --uninstall Microsoft.DotNet.Web.ProjectTemplates.7.0`
50
58
51
59
**Note** ProjectTemplates tests require Visual Studio unless a full build (CI) is performed.
0 commit comments