From 85914c5410ab0f2e2fbcbfe59c21b3d2bc0f5ceb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Sep 2025 18:07:26 +0000 Subject: [PATCH 1/2] Initial plan From 366cc88a85784b80bbf61a539e2ecf4dcde0e2e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Sep 2025 21:44:13 +0000 Subject: [PATCH 2/2] Implement automatic calculation of PreReleaseBrandingLabel Co-authored-by: mmitche <8725170+mmitche@users.noreply.github.com> --- docs/UpdatingMajorVersionAndTFM.md | 2 +- eng/Versions.props | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/UpdatingMajorVersionAndTFM.md b/docs/UpdatingMajorVersionAndTFM.md index 6fde9d8f98a8..74bc4385b04b 100644 --- a/docs/UpdatingMajorVersionAndTFM.md +++ b/docs/UpdatingMajorVersionAndTFM.md @@ -14,7 +14,7 @@ Typically, we will update the Major Version before updating the TFM. This is bec 1. Increment `AspNetCoreMajorVersion` by 1. 2. Change `PreReleaseVersionIteration` to `1`. 3. Change `PreReleaseVersionLabel` to `alpha`. - 4. Change `PreReleaseBrandingLabel` to `Alpha $(PreReleaseVersionIteration)`. + Note: `PreReleaseBrandingLabel` is automatically calculated based on `PreReleaseVersionLabel` and does not need to be manually updated. * Add entries to [NuGet.config](/NuGet.config) for the new Major Version's feed. This just means copying the current feeds (e.g. `dotnet8` and `dotnet8-transport`) and adding entries for the new feeds (`dotnet9` and `dotnet9-transport`). Make an effort to remove old feeds here at the same time. * In [src/ProjectTemplates/Shared/TemplatePackageInstaller.cs](/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs), add an entry to `_templatePackages` for `Microsoft.DotNet.Web.ProjectTemplates` matching the new version. * In [eng/targets/CSharp.Common.props](/eng/targets/CSharp.Common.props) for the previous release branch, modify the `` to be a hardcoded version instead of `preview`. (e.g. If main is being updated to 8.0.0 modify the `` in the release/7.0 branch). See https://learn.microsoft.com/dotnet/csharp/language-reference/configure-language-version#defaults to find what language version to use. diff --git a/eng/Versions.props b/eng/Versions.props index 3b7ba22b624a..914d0b60a8a8 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -20,7 +20,12 @@ false release rc - RC $(PreReleaseVersionIteration) + + Alpha $(PreReleaseVersionIteration) + Preview $(PreReleaseVersionIteration) + RC $(PreReleaseVersionIteration) + RTM + Servicing true false $(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion)