1 write to ExtensionSDKs
Microsoft.Build.Utilities.Core (1)
TargetPlatformSDK.cs (1)
50ExtensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
36 references to ExtensionSDKs
Microsoft.Build.Utilities.Core (10)
ToolLocationHelper.cs (10)
403foreach (KeyValuePair<string, string> extension in moniker.ExtensionSDKs) 450foreach (KeyValuePair<string, string> extension in moniker.ExtensionSDKs) 533&& platform.ExtensionSDKs.ContainsKey(sdkMoniker)) 539return targetPlatformMoniker.ExtensionSDKs[sdkMoniker]; 974if (matchingSdk.ExtensionSDKs.TryGetValue(extensionSdkMoniker, out string extensionSdkPath) 977&& matchingSdk.ExtensionSDKs.TryGetValue(extensionSdkMoniker, out extensionSdkPath))) 2544if (!targetPlatformSDK.ExtensionSDKs.ContainsKey(SDKKey)) 2550targetPlatformSDK.ExtensionSDKs.Add(SDKKey, FileUtilities.EnsureTrailingSlash(sdkVersionDirectory.FullName)); 2815if (!targetPlatformSDK.ExtensionSDKs.ContainsKey(sdkKey)) 2823targetPlatformSDK.ExtensionSDKs.Add(sdkKey, FileUtilities.EnsureTrailingSlash(directoryName));
Microsoft.Build.Utilities.UnitTests (26)
ToolLocationHelper_Tests.cs (26)
237sdk.ExtensionSDKs.Count.ShouldBe(0); 262sdk.ExtensionSDKs.Count.ShouldBe(0); 288sdk.ExtensionSDKs.Count.ShouldBe(1); 314sdk.ExtensionSDKs.Count.ShouldBe(1); 3793targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3794targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3796targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "v1.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3797targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=2.0"); 3798targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=2.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0", "ExtensionSDKs", "MyAssembly", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3801targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3803targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=3.0"); 3804targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=3.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3805targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=4.0"); 3806targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=4.0"].ShouldBe(Path.Combine(_fakeStructureRoot2, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "4.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3814targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3815targetPlatforms[key].ExtensionSDKs.ShouldContainKey("AnotherAssembly, Version=1.0"); 3816targetPlatforms[key].ExtensionSDKs["AnotherAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "4.0", "ExtensionSDKs", "AnotherAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3819targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3821targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3822targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3825targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3827targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3828targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3832targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3836targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3845targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0);