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