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