1 write to ExtensionSDKs
Microsoft.Build.Utilities.Core (1)
TargetPlatformSDK.cs (1)
49ExtensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
36 references to ExtensionSDKs
Microsoft.Build.Utilities.Core (10)
ToolLocationHelper.cs (10)
402foreach (KeyValuePair<string, string> extension in moniker.ExtensionSDKs) 449foreach (KeyValuePair<string, string> extension in moniker.ExtensionSDKs) 532&& platform.ExtensionSDKs.ContainsKey(sdkMoniker)) 538return targetPlatformMoniker.ExtensionSDKs[sdkMoniker]; 973if (matchingSdk.ExtensionSDKs.TryGetValue(extensionSdkMoniker, out string extensionSdkPath) 976&& matchingSdk.ExtensionSDKs.TryGetValue(extensionSdkMoniker, out extensionSdkPath))) 2543if (!targetPlatformSDK.ExtensionSDKs.ContainsKey(SDKKey)) 2549targetPlatformSDK.ExtensionSDKs.Add(SDKKey, FileUtilities.EnsureTrailingSlash(sdkVersionDirectory.FullName)); 2814if (!targetPlatformSDK.ExtensionSDKs.ContainsKey(sdkKey)) 2822targetPlatformSDK.ExtensionSDKs.Add(sdkKey, FileUtilities.EnsureTrailingSlash(directoryName));
Microsoft.Build.Utilities.UnitTests (26)
ToolLocationHelper_Tests.cs (26)
236sdk.ExtensionSDKs.Count.ShouldBe(0); 261sdk.ExtensionSDKs.Count.ShouldBe(0); 287sdk.ExtensionSDKs.Count.ShouldBe(1); 313sdk.ExtensionSDKs.Count.ShouldBe(1); 3792targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3793targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3795targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "v1.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3796targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=2.0"); 3797targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=2.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0", "ExtensionSDKs", "MyAssembly", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3800targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3802targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=3.0"); 3803targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=3.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3804targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=4.0"); 3805targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=4.0"].ShouldBe(Path.Combine(_fakeStructureRoot2, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "4.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3813targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3814targetPlatforms[key].ExtensionSDKs.ShouldContainKey("AnotherAssembly, Version=1.0"); 3815targetPlatforms[key].ExtensionSDKs["AnotherAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "4.0", "ExtensionSDKs", "AnotherAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3818targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3820targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3821targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3824targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3826targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3827targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3831targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3835targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3844targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0);