1 write to MinimumVersion
Microsoft.Build.Framework (1)
Sdk\SdkReference.cs (1)
29MinimumVersion = minimumVersion;
37 references to MinimumVersion
Microsoft.Build (6)
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (1)
73return new SdkResolverRequest(submissionId, sdkReference.Name, sdkReference.Version, sdkReference.MinimumVersion, buildEventContext, elementLocation, solutionPath, projectPath, interactive, isRunningInVisualStudio);
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
24minimumVersion = sdkReference.MinimumVersion;
Construction\ProjectImportElement.cs (2)
78if (UpdateSdkReference(name: value, SdkReference?.Version, SdkReference?.MinimumVersion)) 93if (UpdateSdkReference(SdkReference?.Name, version: value, SdkReference?.MinimumVersion))
Evaluation\Evaluator.cs (2)
1740HasProperty(sdkReference.MinimumVersion, compareInfo)) 1782EvaluateProperty(sdkReference.MinimumVersion, sdkReferenceOrigin, _expander, mode));
Microsoft.Build.Engine.OM.UnitTests (2)
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
268Assert.Equal(real.MinimumVersion, view.MinimumVersion);
Microsoft.Build.Engine.UnitTests (17)
BackEnd\SdkResolverService_Tests.cs (1)
64result.SdkReference.MinimumVersion.ShouldBe("minimumVersion");
Construction\ProjectImportElement_Tests.cs (14)
34importElement.SdkReference.MinimumVersion.ShouldBeNull(); 44importElement.SdkReference.MinimumVersion.ShouldBe("1.0.0"); 50importElement.SdkReference.MinimumVersion.ShouldBe("1.0.0"); 71importElement.SdkReference.MinimumVersion.ShouldBeNull(); 80importElement.SdkReference.MinimumVersion.ShouldBeNull(); 87importElement.SdkReference.MinimumVersion.ShouldBe("1.0.0"); 108importElement.SdkReference.MinimumVersion.ShouldBeNull(); 115importElement.SdkReference.MinimumVersion.ShouldBeNull(); 122importElement.SdkReference.MinimumVersion.ShouldBe("1.0.0"); 132importElement.SdkReference.MinimumVersion.ShouldBe("1.0.0"); 140importElement.SdkReference.MinimumVersion.ShouldBe("1.0.0"); 148importElement.SdkReference.MinimumVersion.ShouldBe("2.0.0"); 154importElement.SdkReference.MinimumVersion.ShouldBe("2.0.0"); 160importElement.SdkReference.MinimumVersion.ShouldBeNull();
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
458sdk.MinimumVersion.ShouldBe(minimumSdkVersion); 532importingElement.SdkReference.MinimumVersion.ShouldBe(expectedMinimumVersion);
Microsoft.Build.Framework (6)
Sdk\SdkReference.cs (6)
68string.Equals(MinimumVersion, other.MinimumVersion, StringComparison.OrdinalIgnoreCase); 138hashCode = (hashCode * 397) ^ (MinimumVersion != null ? MinimumVersion.ToLowerInvariant().GetHashCode() : 0); 146if (string.IsNullOrWhiteSpace(Version) && string.IsNullOrWhiteSpace(MinimumVersion)) 152$"{Name}/min={MinimumVersion}" :
Microsoft.Build.Framework.UnitTests (4)
SdkReference_Tests.cs (4)
23sdk.MinimumVersion.ShouldBeNull(); 36sdk.MinimumVersion.ShouldBeNull(); 50sdk.MinimumVersion.ShouldBe("Version"); 64sdk.MinimumVersion.ShouldBe("Version");
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
901if (!string.IsNullOrEmpty(sdkReference.MinimumVersion)) 904sdkVersionAttributeProps.Value = sdkReference.MinimumVersion;