16 references to Pre
Microsoft.DotNet.MSBuildSdkResolver (13)
FXVersion.cs (13)
41if (string.IsNullOrEmpty(s1.Pre) || string.IsNullOrEmpty(s2.Pre)) 44return string.IsNullOrEmpty(s1.Pre) ? (string.IsNullOrEmpty(s2.Pre) ? 0 : 1) : -1; 56char s1char = (s1.Pre.Length == i) ? '\0' : s1.Pre[i]; 57char s2char = (s2.Pre.Length == i) ? '\0' : s2.Pre[i]; 74string id1 = GetId(s1.Pre, idStart); 75string id2 = GetId(s2.Pre, idStart); 307=> (!string.IsNullOrEmpty(Pre), !string.IsNullOrEmpty(Build)) switch 310(true, false) => $"{Major}.{Minor}.{Patch}{Pre}", 312(true, true) => $"{Major}.{Minor}.{Patch}{Pre}{Build}",
Microsoft.DotNet.MSBuildSdkResolver.Tests (3)
GivenThatWeWantToParseSemanticVersions.cs (3)
88fxVersion.Pre.Should().Be(pre); 151fxVersion.Pre.Should().Be("-pre"); 165fxVersion.Pre.Should().Be("-pre");