Skip to content

Commit 626dcba

Browse files
authored
don't remove OS version number from the platform-specifc TFM (#1691)
1 parent 7265c14 commit 626dcba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ private static CoreRuntime GetPlatformSpecific(CoreRuntime fallback)
208208
if (!(platformNameProperty.GetValue(attributeInstance) is string platformName))
209209
return fallback;
210210

211-
// it's something like "Windows7.0";
212-
var justName = new string(platformName.TakeWhile(char.IsLetter).ToArray());
213-
return new CoreRuntime(fallback.RuntimeMoniker, $"{fallback.MsBuildMoniker}-{justName}", fallback.Name);
211+
return new CoreRuntime(fallback.RuntimeMoniker, $"{fallback.MsBuildMoniker}-{platformName}", fallback.Name);
214212
}
215213
}
216214
}

0 commit comments

Comments
 (0)