4 instantiations of ApiContract
Microsoft.Build.Utilities.Core (1)
ApiContract.cs (1)
57apiContracts.Add(new ApiContract(
Microsoft.Build.Utilities.UnitTests (3)
ToolLocationHelper_Tests.cs (3)
68string[] returnValue = ToolLocationHelper.GetApiContractReferences(new[] { new ApiContract { Name = "Foo", Version = "Bar" } }, tempDirectory); 84string[] returnValue = ToolLocationHelper.GetApiContractReferences(new[] { new ApiContract { Name = "Foo", Version = "Bar" } }, tempDirectory); 107string[] returnValue = ToolLocationHelper.GetApiContractReferences(new[] { new ApiContract { Name = "Foo", Version = "Bar" } }, tempDirectory, tempVersion);
17 references to ApiContract
Microsoft.Build.Utilities.Core (14)
ApiContract.cs (1)
46internal static void ReadContractsElement(XmlElement element, ICollection<ApiContract> apiContracts)
ExtensionSDK.cs (1)
139public ICollection<ApiContract> ApiContracts => Manifest.ApiContracts;
PlatformManifest.cs (5)
63public ICollection<ApiContract> ApiContracts { get; private set; } 120ApiContracts = new List<ApiContract>(); 135if (ApiContract.IsContainedApiContractsElement(childElement.Name)) 137ApiContract.ReadContractsElement(childElement, ApiContracts); 139else if (ApiContract.IsVersionedContentElement(childElement.Name))
SDKManifest.cs (4)
241internal ICollection<ApiContract> ApiContracts { get; private set; } 349if (ApiContract.IsContainedApiContractsElement(childElement.Name)) 351ApiContracts = new List<ApiContract>(); 352ApiContract.ReadContractsElement(childElement, ApiContracts);
ToolLocationHelper.cs (3)
1109internal static string[] GetApiContractReferences(IEnumerable<ApiContract> apiContracts, string targetPlatformSdkRoot) => GetApiContractReferences(apiContracts, targetPlatformSdkRoot, string.Empty); 1118internal static string[] GetApiContractReferences(IEnumerable<ApiContract> apiContracts, string targetPlatformSdkRoot, string targetPlatformSdkVersion) 1129foreach (ApiContract contract in apiContracts)
Microsoft.Build.Utilities.UnitTests (3)
PlatformManifest_Tests.cs (2)
215ApiContract contract = manifest.Manifest.ApiContracts.First(); 242var contracts = new List<ApiContract>(manifest.Manifest.ApiContracts);
ToolLocationHelper_Tests.cs (1)
51string[] returnValue = ToolLocationHelper.GetApiContractReferences(Enumerable.Empty<ApiContract>(), string.Empty);