From 62eb4af4590f804b05e646b7921fc629376a0248 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Sun, 15 Mar 2026 18:57:04 -0400 Subject: [PATCH] Unify dotnetup and Microsoft.Dotnet.Installation version Define DotnetupVersionPrefix and DotnetupPreReleaseVersionLabel in a shared src/Installer/Directory.Build.props so both projects inherit the same version. This prevents version drift between the CLI tool and the library. Fixes #52795 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/Installer/Directory.Build.props | 11 +++++++++++ .../Microsoft.Dotnet.Installation.csproj | 4 ++-- src/Installer/dotnetup/dotnetup.csproj | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 src/Installer/Directory.Build.props diff --git a/src/Installer/Directory.Build.props b/src/Installer/Directory.Build.props new file mode 100644 index 000000000000..314c3f8d687f --- /dev/null +++ b/src/Installer/Directory.Build.props @@ -0,0 +1,11 @@ + + + + + + + 0.1.1 + preview + + + diff --git a/src/Installer/Microsoft.Dotnet.Installation/Microsoft.Dotnet.Installation.csproj b/src/Installer/Microsoft.Dotnet.Installation/Microsoft.Dotnet.Installation.csproj index 75a687ed4ff4..0d48bf7ee33b 100644 --- a/src/Installer/Microsoft.Dotnet.Installation/Microsoft.Dotnet.Installation.csproj +++ b/src/Installer/Microsoft.Dotnet.Installation/Microsoft.Dotnet.Installation.csproj @@ -14,8 +14,8 @@ Microsoft.Dotnet.Installation false .NET Installation Library - 0.1.1 - preview + $(DotnetupVersionPrefix) + $(DotnetupPreReleaseVersionLabel) true true diff --git a/src/Installer/dotnetup/dotnetup.csproj b/src/Installer/dotnetup/dotnetup.csproj index 46acc3bca55e..165e8483982b 100644 --- a/src/Installer/dotnetup/dotnetup.csproj +++ b/src/Installer/dotnetup/dotnetup.csproj @@ -15,8 +15,8 @@ $(NoWarn);CS8002;CS1591 - 0.1.1 - preview + $(DotnetupVersionPrefix) + $(DotnetupPreReleaseVersionLabel) true true