Skip to content

Commit 76c7670

Browse files
Add steps for updating template precedence values (dotnet#44642)
1 parent 3c36e16 commit 76c7670

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/UpdatingMajorVersionAndTFM.md

+4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ Once dotnet/runtime has updated their TFM, we update ours in the dependency upda
4747
* Do not merge this until the PR from the previous step is merged.
4848
* Update template precedence
4949
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.
50+
* Going forward, update precedence values by increasing them to the next integer value whose first digits correspond with the major version. This makes it easier to verify that precedence values for any given template were updated since the previous release.
51+
* For example, if a precedence value was 9000 for 7.0, increase it to 80000 for 8.0.
5052
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.
53+
* Make sure to update _all_ template.json files, including project templates and item templates.
54+
* Update precedence values by increasing them to the next integer value whose first digits correspond with the major version.
5155
3. Make sure the new aka.ms link you're referencing in `thirdPartyNotices` exists.
5256
* In [src/Framework/AspNetCoreAnalyzers/test/Verifiers/CSharpRouteHandlerCodeFixVerifier.cs](/src/Framework/AspNetCoreAnalyzers/test/Verifiers/CSharpRouteHandlerCodeFixVerifier.cs), update the references to `ReferenceAssemblies.Net.Netx0` with the latest version.
5357

0 commit comments

Comments
 (0)