1 write to Version
Microsoft.Build.Framework (1)
Sdk\SdkReference.cs (1)
28Version = version;
47 references to Version
Microsoft.Build (12)
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (2)
75!SdkResolverService.IsReferenceSameVersion(sdk, result.SdkReference.Version) && 79loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, result.Version, result.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
88loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, sdkResult.Version, sdkResult.ElementLocation, sdk.Version);
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\SdkResolverService.cs (3)
91if (String.IsNullOrEmpty(sdk.Version)) 96return String.Equals(sdk.Version, version, StringComparison.OrdinalIgnoreCase); 364loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "SdkResultVersionDifferentThanReference", sdk.Name, sdk.Version, result.Version);
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
23version = sdkReference.Version;
Construction\ProjectImportElement.cs (2)
78if (UpdateSdkReference(name: value, SdkReference?.Version, SdkReference?.MinimumVersion)) 108if (UpdateSdkReference(SdkReference?.Name, SdkReference?.Version, minimumVersion: value))
Evaluation\Evaluator.cs (2)
1739HasProperty(sdkReference.Version, compareInfo) || 1781EvaluateProperty(sdkReference.Version, sdkReferenceOrigin, _expander, mode),
Microsoft.Build.Engine.OM.UnitTests (2)
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
267Assert.Equal(real.Version, view.Version);
Microsoft.Build.Engine.UnitTests (20)
BackEnd\SdkResolverService_Tests.cs (1)
61result.SdkReference.Version.ShouldBe("referencedVersion");
Construction\ProjectImportElement_Tests.cs (14)
33importElement.SdkReference.Version.ShouldBe("1.2.0"); 43importElement.SdkReference.Version.ShouldBe("1.2.0"); 49importElement.SdkReference.Version.ShouldBe("1.2.0"); 70importElement.SdkReference.Version.ShouldBeNull(); 79importElement.SdkReference.Version.ShouldBe("1.2.0"); 86importElement.SdkReference.Version.ShouldBe("1.2.0"); 107importElement.SdkReference.Version.ShouldBeNull(); 114importElement.SdkReference.Version.ShouldBe("1.2.0"); 121importElement.SdkReference.Version.ShouldBe("1.2.0"); 131importElement.SdkReference.Version.ShouldBe("1.2.0"); 139importElement.SdkReference.Version.ShouldBe("4.0.0"); 147importElement.SdkReference.Version.ShouldBe("4.0.0"); 153importElement.SdkReference.Version.ShouldBeNull(); 159importElement.SdkReference.Version.ShouldBeNull();
Evaluation\ProjectSdkImplicitImport_Tests.cs (5)
457sdk.Version.ShouldBe(sdkVersion); 531importingElement.SdkReference.Version.ShouldBe(expectedVersion); 699import.SdkResult.Version.ShouldBe(expectedSdkReference.Version); 789private const string ErrorVersion = ResolverName + "/Error/" + nameof(SdkReference.Version); 807SdkName when sdk.Version == SdkExpectedVersion =>
Microsoft.Build.Framework (7)
Sdk\SdkReference.cs (7)
67string.Equals(Version, other.Version, StringComparison.OrdinalIgnoreCase) && 137hashCode = (hashCode * 397) ^ (Version != null ? Version.ToLowerInvariant().GetHashCode() : 0); 146if (string.IsNullOrWhiteSpace(Version) && string.IsNullOrWhiteSpace(MinimumVersion)) 151return string.IsNullOrWhiteSpace(Version) ? 153$"{Name}/{Version}";
Microsoft.Build.Framework.UnitTests (4)
SdkReference_Tests.cs (4)
22sdk.Version.ShouldBeNull(); 35sdk.Version.ShouldBe("Version"); 49sdk.Version.ShouldBeNull(); 63sdk.Version.ShouldBeNull();
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
889if (!string.IsNullOrEmpty(sdkReference.Version)) 892sdkVersionAttributeProps.Value = sdkReference.Version;