2 writes to Path
Microsoft.Build (2)
BackEnd\Components\SdkResolution\SdkResult.cs (2)
38Path = path; 59Path = firstPath;
28 references to Path
Microsoft.Build (4)
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
348MSBuildEventSource.Log.SdkResolverResolveSdkStop(sdkResolver.Name, sdk.Name, solutionPath ?? string.Empty, projectPath ?? string.Empty, result?.Path ?? string.Empty, result?.Success ?? false); 357loggingContext.LogComment(MessageImportance.Low, "SucceededToResolveSDK", sdk.ToString(), sdkResolver.Name, result.Path ?? "null", result.Version ?? "null");
Evaluation\Evaluator.cs (2)
1826if (sdkResult.Path != null) 1828ExpandAndLoadImportsFromUnescapedImportExpression(directoryOfImportingFile, importElement, Path.Combine(sdkResult.Path, project),
Microsoft.Build.Engine.OM.UnitTests (2)
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
281Assert.Equal(real.Path, view.Path);
Microsoft.Build.Engine.UnitTests (21)
BackEnd\SdkResolverService_Tests.cs (17)
100result.Path.ShouldBe("path"); 132result.Path.ShouldBe("resolverpathwithresolvablesdkpattern2"); 196result.Path.ShouldBe("resolverpath1"); 213result.Path.ShouldBe("resolverpathwithresolvablesdkpattern1"); 231_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SucceededToResolveSDK", sdk.ToString(), nameof(MockSdkResolver1), result.Path, result.Version)); 261result.Path.ShouldBe("resolverpath2"); 283service.ResolveSdk(submissionId, sdk, _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("resolverpath"); 286service.ResolveSdk(submissionId, sdk, _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe(MockSdkResolverWithState.Expected); 300service.ResolveSdk(submissionId, sdk, _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("resolverpath"); 303service.ResolveSdk(submissionId, sdk, _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("resolverpath"); 317service.ResolveSdk(submissionId, sdk, _loggingContext, new MockElementLocation("file"), "sln", "projectPath", interactive: false, isRunningInVisualStudio: false, failOnUnresolvedSdk: true).Path.ShouldBe("defaultpath"); 369result.Path.ShouldBe("path"); 375result.Path.ShouldBe("path"); 452result.Path.ShouldBeNull(); 489result.Path.ShouldBe(expectedPath); 538resultPaths.Add(result.Path); 584resultPaths.Add(result.Path);
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
548import.SdkResult.Path.ShouldBe(Path.GetDirectoryName(expectedSdkPath)); 698import.SdkResult.Path.ShouldBe(expectedSdkPath);
InternalEngineHelpers.cs (2)
87if (sdkResult.Path == null) 94pathList.Add(sdkResult.Path);
Microsoft.Build.Framework (1)
Sdk\SdkResult.cs (1)
52/// Additional resolved SDK paths beyond the one specified in <see cref="Path"/>