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