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

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