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