Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Godbe <wigodbe@microsoft.com>2022-01-31 22:33:48 +0300
committerGitHub <noreply@github.com>2022-01-31 22:33:48 +0300
commit116addba579e22716b1e4bf321ed57bcabfe369f (patch)
tree8a0d95936264192212df1cbb3892cdcac0f03d7c
parent7b3e5cad4762792e63041a0507c9e2a2e2abeb53 (diff)
[7.0-preview1] Update precedence of templates for 7.0 (#39794)
* Update precedence of templates for 7.0 * Update documentation * Update submodule
-rw-r--r--docs/UpdatingMajorVersionAndTFM.md4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/template.json6
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/template.json6
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json6
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json6
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json6
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/template.json4
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/template.json4
m---------src/submodules/spa-templates0
15 files changed, 35 insertions, 31 deletions
diff --git a/docs/UpdatingMajorVersionAndTFM.md b/docs/UpdatingMajorVersionAndTFM.md
index 64858595cc..07cb82f701 100644
--- a/docs/UpdatingMajorVersionAndTFM.md
+++ b/docs/UpdatingMajorVersionAndTFM.md
@@ -44,6 +44,10 @@ Once dotnet/runtime has updated their TFM, we update ours in the dependency upda
2. Create a PR like [this one](https://github.com/dotnet/aspnetcore/pull/36932) updating the current release branch in `aspnetcore` to reference the new release branch you just created in dotnet/spa-templates.
3. Create a PR like [this one](https://github.com/dotnet/spa-templates/pull/21) updating the branding & TFM in the `main` branch of dotnet/spa-templates.
* Do not merge this until the PR from the previous step is merged.
+* Update template precedence
+ 1. Create & merge a PR like [this one](https://github.com/dotnet/spa-templates/pull/39) in dotnet/spa-templates updating `precedence` and `identity` elements in all template.json files.
+ 2. Create a PR like [this one](https://github.com/dotnet/aspnetcore/pull/39783) in dotnet/aspnetcore that updates the spa-templates submodule, and updates the `precedence`, `identity`, and (if it exists) `thirdPartyNotices` elements in all template.json files.
+ 3. Make sure the new aka.ms link you're referencing in `thirdPartyNotices` exists.
### Validation
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/template.json
index 2109c474a6..864f81dae0 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/template.json
@@ -9,10 +9,10 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating a Blazor server app that runs server-side inside an ASP.NET Core app and handles user interactions over a SignalR connection. This template can be used for web apps with rich dynamic user interfaces (UIs).",
"groupIdentity": "Microsoft.Web.Blazor.Server",
- "precedence": "8000",
- "identity": "Microsoft.Web.Blazor.Server.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.Blazor.Server.CSharp.7.0",
"shortName": "blazorserver",
- "thirdPartyNotices": "https://aka.ms/aspnetcore/6.0-third-party-notices",
+ "thirdPartyNotices": "https://aka.ms/aspnetcore/7.0-third-party-notices",
"tags": {
"language": "C#",
"type": "project"
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/template.json
index f777587853..88aaa7878c 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/template.json
@@ -11,7 +11,7 @@
"defaultName": "BlazorApp",
"description": "A project template for creating a Blazor app that runs on WebAssembly and is optionally hosted by an ASP.NET Core app. This template can be used for web apps with rich dynamic user interfaces (UIs).",
"groupIdentity": "Microsoft.Web.Blazor.Wasm",
- "precedence": "8000",
+ "precedence": "9000",
"guids": [
"4C26868E-5E7C-458D-82E3-040509D0C71F",
"5990939C-7E7B-4CFA-86FF-44CA5756498A",
@@ -20,8 +20,8 @@
"09732173-2cef-46b7-83db-1334bcb079d3", // Tenant ID
"53bc9b9d-9d6a-45d4-8429-2a2761773502" // Client ID
],
- "identity": "Microsoft.Web.Blazor.Wasm.CSharp.6.0",
- "thirdPartyNotices": "https://aka.ms/aspnetcore/6.0-third-party-notices",
+ "identity": "Microsoft.Web.Blazor.Wasm.CSharp.7.0",
+ "thirdPartyNotices": "https://aka.ms/aspnetcore/7.0-third-party-notices",
"preferNameDirectory": true,
"primaryOutputs": [
{
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json
index 417903de68..ae82a87026 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/template.json
@@ -9,8 +9,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "An empty project template for creating an ASP.NET Core application. This template does not have any content in it.",
"groupIdentity": "Microsoft.Web.Empty",
- "precedence": "8000",
- "identity": "Microsoft.Web.Empty.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.Empty.CSharp.7.0",
"shortName": "web",
"tags": {
"language": "C#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json
index 75e75afc84..24de700436 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-FSharp/.template.config/template.json
@@ -8,8 +8,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "An empty project template for creating an ASP.NET Core application. This template does not have any content in it.",
"groupIdentity": "Microsoft.Web.Empty",
- "precedence": "8000",
- "identity": "Microsoft.Web.Empty.FSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.Empty.FSharp.7.0",
"shortName": "web",
"tags": {
"language": "F#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/template.json
index 63b30b1600..8e17381b92 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/.template.config/template.json
@@ -9,8 +9,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating a gRPC ASP.NET Core service.",
"groupIdentity": "Microsoft.Web.Grpc",
- "precedence": "8000",
- "identity": "Microsoft.Grpc.Service.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Grpc.Service.CSharp.7.0",
"shortName": "grpc",
"tags": {
"language": "C#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
index d23bf82953..0bf5fbdda6 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
@@ -10,8 +10,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project for creating a Razor class library that targets .NET Standard",
"groupIdentity": "Microsoft.Web.Razor",
- "precedence": "8000",
- "identity": "Microsoft.Web.Razor.Library.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.Razor.Library.CSharp.7.0",
"shortName": "razorclasslib",
"tags": {
"language": "C#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json
index 2b0767ff9f..e8d986bdd0 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/template.json
@@ -10,13 +10,13 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating an ASP.NET Core application with example ASP.NET Core Razor Pages content",
"groupIdentity": "Microsoft.Web.RazorPages",
- "precedence": "8000",
- "identity": "Microsoft.Web.RazorPages.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.RazorPages.CSharp.7.0",
"shortName": [
"webapp",
"razor"
],
- "thirdPartyNotices": "https://aka.ms/aspnetcore/6.0-third-party-notices",
+ "thirdPartyNotices": "https://aka.ms/aspnetcore/7.0-third-party-notices",
"tags": {
"language": "C#",
"type": "project"
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json
index e9a221e8d9..ebc005e25f 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/template.json
@@ -9,10 +9,10 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating an ASP.NET Core application with example ASP.NET Core MVC Views and Controllers. This template can also be used for RESTful HTTP services.",
"groupIdentity": "Microsoft.Web.Mvc",
- "precedence": "8000",
- "identity": "Microsoft.Web.Mvc.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.Mvc.CSharp.7.0",
"shortName": "mvc",
- "thirdPartyNotices": "https://aka.ms/aspnetcore/6.0-third-party-notices",
+ "thirdPartyNotices": "https://aka.ms/aspnetcore/7.0-third-party-notices",
"tags": {
"language": "C#",
"type": "project"
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json
index 5c48adc3e0..9a55aab042 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/.template.config/template.json
@@ -9,10 +9,10 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating an ASP.NET Core application with example ASP.NET Core MVC Views and Controllers. This template can also be used for RESTful HTTP services.",
"groupIdentity": "Microsoft.Web.Mvc",
- "precedence": "8000",
- "identity": "Microsoft.Web.Mvc.FSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.Mvc.FSharp.7.0",
"shortName": "mvc",
- "thirdPartyNotices": "https://aka.ms/aspnetcore/6.0-third-party-notices",
+ "thirdPartyNotices": "https://aka.ms/aspnetcore/7.0-third-party-notices",
"tags": {
"language": "F#",
"type": "project"
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json
index d1a878e802..d3683b75eb 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json
@@ -9,8 +9,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating an ASP.NET Core application with an example Controller for a RESTful HTTP service. This template can also be used for ASP.NET Core MVC Views and Controllers.",
"groupIdentity": "Microsoft.Web.WebApi",
- "precedence": "8000",
- "identity": "Microsoft.Web.WebApi.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.WebApi.CSharp.7.0",
"shortName": "webapi",
"tags": {
"language": "C#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json
index e0220e26cc..0ae13400e2 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-FSharp/.template.config/template.json
@@ -8,8 +8,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "A project template for creating an ASP.NET Core application with an example Controller for a RESTful HTTP service. This template can also be used for ASP.NET Core MVC Views and Controllers.",
"groupIdentity": "Microsoft.Web.WebApi",
- "precedence": "8000",
- "identity": "Microsoft.Web.WebApi.FSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Web.WebApi.FSharp.7.0",
"shortName": "webapi",
"tags": {
"language": "F#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/template.json
index 2bb5331f8b..6fbdd3e798 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/.template.config/template.json
@@ -10,8 +10,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "An empty project template for creating a worker service.",
"groupIdentity": "Microsoft.Worker.Empty",
- "precedence": "8000",
- "identity": "Microsoft.Worker.Empty.CSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Worker.Empty.CSharp.7.0",
"shortName": "worker",
"tags": {
"language": "C#",
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/template.json
index 5b8ee997d4..44dc342882 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-FSharp/.template.config/template.json
@@ -10,8 +10,8 @@
"generatorVersions": "[1.0.0.0-*)",
"description": "An empty project template for creating a worker service.",
"groupIdentity": "Microsoft.Worker.Empty",
- "precedence": "8000",
- "identity": "Microsoft.Worker.Empty.FSharp.6.0",
+ "precedence": "9000",
+ "identity": "Microsoft.Worker.Empty.FSharp.7.0",
"shortName": "worker",
"tags": {
"language": "F#",
diff --git a/src/submodules/spa-templates b/src/submodules/spa-templates
-Subproject a50a863d1567c73afd8a2913490e0ec48f99e55
+Subproject 8b90832a77eb141d957b9c484cda6f750998bb7