2 writes to Version
Microsoft.Build (2)
BackEnd\Components\SdkResolution\SdkResult.cs (2)
39
Version
= version;
67
Version
= version;
16 references to Version
Microsoft.Build (8)
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (2)
76
!SdkResolverService.IsReferenceSameVersion(sdk, result.
Version
))
79
loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, result.
Version
, result.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (3)
85
if (sdkResult.
Version
!= null && !SdkResolverService.IsReferenceSameVersion(sdk, sdkResult.
Version
))
88
loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.Name, sdkResult.
Version
, sdkResult.ElementLocation, sdk.Version);
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
357
loggingContext.LogComment(MessageImportance.Low, "SucceededToResolveSDK", sdk.ToString(), sdkResolver.Name, result.Path ?? "null", result.
Version
?? "null");
361
if (!IsReferenceSameVersion(sdk, result.
Version
))
364
loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "SdkResultVersionDifferentThanReference", sdk.Name, sdk.Version, result.
Version
);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\SdkResolverService_Tests.cs (5)
231
_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SucceededToResolveSDK", sdk.ToString(), nameof(MockSdkResolver1), result.Path, result.
Version
));
370
result.
Version
.ShouldBe("1.0.0");
376
result.
Version
.ShouldBe("1.0.0");
453
result.
Version
.ShouldBeNull();
490
result.
Version
.ShouldBe("1.0");
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
549
import.SdkResult.
Version
.ShouldBeEmpty();
699
import.SdkResult.
Version
.ShouldBe(expectedSdkReference.Version);
InternalEngineHelpers.cs (1)
124
version: sdkResult.
Version
,