3 writes to Path
Microsoft.Build.Utilities.Core (3)
TargetPlatformSDK.cs (1)
49
Path
= path;
ToolLocationHelper.cs (2)
2641
targetPlatformSDK.
Path
= platformSDKDirectory;
2761
targetPlatformSDK.
Path
= platformSDKDirectory;
26 references to Path
Microsoft.Build.Utilities.Core (13)
ToolLocationHelper.cs (13)
777
return targetPlatforms.Where<TargetPlatformSDK>(platform => platform.
Path
!= null).ToList<TargetPlatformSDK>();
976
string targetSdkPath = matchingSdk.
Path
;
1097
contractWinMDs = GetApiContractReferences(manifest.ApiContracts, matchingSdk.
Path
, manifest.PlatformVersion);
1101
contractWinMDs = GetApiContractReferences(manifest.ApiContracts, matchingSdk.
Path
);
1237
? Path.Combine(matchingSdk.
Path
, folderName, targetPlatformVersion)
1238
: Path.Combine(matchingSdk.
Path
, folderName);
1266
return targetPlatform?.
Path
?? string.Empty;
2639
if (targetPlatformSDK.
Path
== null && platformSDKManifestExists)
2645
if (!string.IsNullOrEmpty(targetPlatformSDK.
Path
))
2759
if (targetPlatformSDK.
Path
== null && platformSDKmanifestExists)
2765
if (!string.IsNullOrEmpty(targetPlatformSDK.
Path
))
3024
ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(sdk.
Path
), "SDK path must be set");
3028
string platformsRoot = Path.Combine(sdk.
Path
, platformsFolderName);
Microsoft.Build.Utilities.UnitTests (13)
ToolLocationHelper_Tests.cs (13)
3788
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3795
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3806
targetPlatforms[key].
Path
.ShouldBeNull();
3813
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3819
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3824
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3828
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
3837
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4057
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4060
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4063
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4066
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
4069
targetPlatforms[key].
Path
.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);