Blame SOURCES/sdk-23080-userlocal-workload.patch

b8d0d9
From 6e57b7c1d7f9b5ce82eef106d465af81382794b3 Mon Sep 17 00:00:00 2001
b8d0d9
From: Tom Deseyn <tom.deseyn@gmail.com>
b8d0d9
Date: Wed, 15 Dec 2021 15:06:51 +0100
b8d0d9
Subject: [PATCH] userlocal detection: also force last digits to zero for
b8d0d9
 non-preview versions.
b8d0d9
b8d0d9
---
b8d0d9
 src/Common/WorkloadFileBasedInstall.cs | 2 +-
b8d0d9
 1 file changed, 1 insertion(+), 1 deletion(-)
b8d0d9
b8d0d9
diff --git a/src/Common/WorkloadFileBasedInstall.cs b/src/Common/WorkloadFileBasedInstall.cs
b8d0d9
index f0d82c1fa9..0b27b0939c 100644
b8d0d9
--- a/src/Common/WorkloadFileBasedInstall.cs
b8d0d9
+++ b/src/Common/WorkloadFileBasedInstall.cs
b8d0d9
@@ -21,7 +21,7 @@ internal static void SetUserLocal(string dotnetDir, string sdkFeatureBand)
b8d0d9
 
b8d0d9
         private static string GetUserInstallFilePath(string dotnetDir, string sdkFeatureBand)
b8d0d9
         {
b8d0d9
-            if (sdkFeatureBand.Contains("-"))
b8d0d9
+            if (sdkFeatureBand.Contains("-") || !sdkFeatureBand.EndsWith("00", StringComparison.Ordinal))
b8d0d9
             {
b8d0d9
                 // The user passed in the sdk version. Derive the feature band version.
b8d0d9
                 if (!Version.TryParse(sdkFeatureBand.Split('-')[0], out var sdkVersionParsed))