2 interfaces inheriting from ITaskItem
Microsoft.Build.Framework (1)
MSBuildTaskHost (1)
10 implementations of ITaskItem
Microsoft.Build (1)
Microsoft.Build.Engine.UnitTests (4)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.Build.Tasks.UnitTests (1)
MSBuild (1)
MSBuildTaskHost (1)
3243 references to ITaskItem
Crossgen2Tasks (56)
PrepareForReadyToRunCompilation.cs (31)
21public ITaskItem MainAssembly { get; set; }
22public ITaskItem[] Assemblies { get; set; }
35public ITaskItem CrossgenTool { get; set; }
36public ITaskItem Crossgen2Tool { get; set; }
41public ITaskItem[] ReadyToRunCompileList => _compileList.ToArray();
43public ITaskItem[] ReadyToRunSymbolsCompileList => _symbolsCompileList.ToArray();
48public ITaskItem[] ReadyToRunFilesToPublish => _r2rFiles.ToArray();
51public ITaskItem[] ReadyToRunAssembliesToReference => _r2rReferences.ToArray();
54public ITaskItem[] ReadyToRunCompositeBuildReferences => _r2rCompositeReferences.ToArray();
57public ITaskItem[] ReadyToRunCompositeBuildInput => _r2rCompositeInput.ToArray();
62private List<ITaskItem> _compileList = new List<ITaskItem>();
63private List<ITaskItem> _symbolsCompileList = new List<ITaskItem>();
64private List<ITaskItem> _r2rFiles = new List<ITaskItem>();
65private List<ITaskItem> _r2rReferences = new List<ITaskItem>();
66private List<ITaskItem> _r2rCompositeReferences = new List<ITaskItem>();
67private List<ITaskItem> _r2rCompositeInput = new List<ITaskItem>();
97ITaskItem[] inputFiles,
98List<ITaskItem> imageCompilationList,
99List<ITaskItem> symbolsCompilationList,
100List<ITaskItem> r2rFilesPublishList,
101List<ITaskItem> r2rReferenceList,
102List<ITaskItem> r2rCompositeReferenceList,
103List<ITaskItem> r2rCompositeInputList,
114foreach (var file in inputFiles)
355private static Eligibility GetInputFileEligibility(ITaskItem file, bool compositeCompile, HashSet<string> exclusionSet, HashSet<string> r2rCompositeExclusionSet)
ILLink.Tasks (29)
installer.tasks (10)
Microsoft.AspNetCore.Mvc.Testing.Tasks (2)
Microsoft.Build (102)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (12)
462ITaskItem[] outputs = GetItemOutputs(parameter);
697private bool SetTaskItemParameter(TaskPropertyInfo parameter, ITaskItem item)
734if (parameterType != typeof(ITaskItem[]))
801private ITaskItem[] GetItemOutputs(TaskPropertyInfo parameter)
805if (!(outputs is ITaskItem[] taskItemOutputs))
807taskItemOutputs = [(ITaskItem)outputs];
918returnClass = new TaskFactoryWrapper(new IntrinsicTaskFactory(typeof(MSBuild)), new LoadedType(typeof(MSBuild), AssemblyLoadInfo.Create(taskExecutionHostAssembly.FullName, null), taskExecutionHostAssembly, typeof(ITaskItem)), _taskName, null);
924returnClass = new TaskFactoryWrapper(new IntrinsicTaskFactory(typeof(CallTarget)), new LoadedType(typeof(CallTarget), AssemblyLoadInfo.Create(taskExecutionHostAssembly.FullName, null), taskExecutionHostAssembly, typeof(ITaskItem)), _taskName, null);
1144if (parameterType == typeof(ITaskItem))
1369private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
1379foreach (ITaskItem output in outputs)
1451foreach (ITaskItem output in outputs)
Microsoft.Build.BuildCheck.UnitTests (5)
Microsoft.Build.Engine.OM.UnitTests (6)
Microsoft.Build.Engine.UnitTests (165)
BackEnd\TaskExecutionHost_Tests.cs (23)
64private ITaskItem[] _oneItem;
69private ITaskItem[] _twoItems;
901ValidateOutputItems("StringArrayOutput", Array.Empty<ITaskItem>());
912ValidateOutputItems("StringOutput", Array.Empty<ITaskItem>());
921ValidateOutputItems("ItemArrayNullOutput", Array.Empty<ITaskItem>());
932ValidateOutputItems("ArrayListOutput", Array.Empty<ITaskItem>());
1248LoadedType loadedType = new LoadedType(typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory), loadInfo, typeof(TaskBuilderTestTask.TaskBuilderTestTaskFactory).Assembly, typeof(ITaskItem));
1276_oneItem = new ITaskItem[] { new TaskItem(item) };
1284_twoItems = new ITaskItem[] { new TaskItem(item), new TaskItem(item2) };
1309private void ValidateOutputItem(string outputName, ITaskItem value)
1336private void ValidateOutputItems(string outputName, ITaskItem[] values)
1380ITaskItem actualItem = _parametersSetOnTask[parameterName] as ITaskItem;
1388private void ValidateTaskParameterItem(string parameterName, string value, ITaskItem expectedItem)
1394ITaskItem actualItem = _parametersSetOnTask[parameterName] as ITaskItem;
1407ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[];
1415private void ValidateTaskParameterItems(string parameterName, string value, ITaskItem[] expectedItems)
1421ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[];
1439ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[];
Microsoft.Build.Framework (15)
Microsoft.Build.Framework.UnitTests (2)
Microsoft.Build.Tasks.CodeAnalysis (88)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (31)
GenerateMSBuildEditorConfigTests.cs (24)
37ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
38ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
57ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
77ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
78ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
79ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
106ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/{f*i?le1}.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
107ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/f,ile#2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
108ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/f;i!le[3].cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
134ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
135ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
156ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" } });
176ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { });
177ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" } });
178ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "MetadataName", "ToRetrieve" } });
197ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
198ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
199ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
200ITaskItem item4 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "jkl012" } });
202ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
203ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
339ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:\\file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
359ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
360ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
Microsoft.Build.Tasks.Core (706)
AssemblyDependency\ReferenceTable.cs (53)
78private readonly Dictionary<string, ITaskItem> _resolvedSDKReferences;
160internal delegate void LogExclusionReason(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework);
258ITaskItem[] resolvedSDKItems,
325_resolvedSDKReferences = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
330foreach (ITaskItem resolvedSDK in resolvedSDKItems)
511ITaskItem[] referenceAssemblyFiles,
512ITaskItem[] referenceAssemblyNames,
519foreach (ITaskItem i in referenceAssemblyFiles)
529foreach (ITaskItem n in referenceAssemblyNames)
547ITaskItem referenceAssemblyName)
834private static AssemblyNameExtension GetAssemblyNameFromItemMetadata(ITaskItem item)
861private void SetPrimaryFileItem(ITaskItem referenceAssemblyFile)
1412ICollection<ITaskItem> dependees = assemblyReference.GetSourceItems();
1485ICollection<ITaskItem> dependees = assemblyReference.GetSourceItems();
1486foreach (ITaskItem dependee in dependees)
1613ITaskItem[] referenceAssemblyFiles,
1614ITaskItem[] referenceAssemblyNames,
2581out ITaskItem[] primaryFiles,
2582out ITaskItem[] dependencyFiles,
2583out ITaskItem[] relatedFiles,
2584out ITaskItem[] satelliteFiles,
2585out ITaskItem[] serializationAssemblyFiles,
2586out ITaskItem[] scatterFiles,
2587out ITaskItem[] copyLocalFiles)
2589var primaryItems = new List<ITaskItem>();
2590var dependencyItems = new List<ITaskItem>();
2591var relatedItems = new List<ITaskItem>();
2592var satelliteItems = new List<ITaskItem>();
2593var serializationAssemblyItems = new List<ITaskItem>();
2594var scatterItems = new List<ITaskItem>();
2595var copyLocalItems = new List<ITaskItem>();
2630ITaskItem referenceItem = SetItemMetadata(relatedItems, satelliteItems, serializationAssemblyItems, scatterItems, assemblyName.FullName, reference, assemblyName);
2671private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName, Reference reference, AssemblyNameExtension assemblyName)
2699ICollection<ITaskItem> sourceItems = reference.GetSourceItems();
2700foreach (ITaskItem sourceItem in sourceItems)
2746ITaskItem item = new TaskItem(reference.FullPathWithoutExtension + relatedFileExtension);
2757ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, satelliteFile));
2770ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, serializationAssemblyFile));
2781ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, scatterFile));
2811ITaskItem item = new TaskItem(reference.ImplementationAssembly);
3019private static Dictionary<string, string> RemoveNonForwardableMetadata(ITaskItem item)
3032private static void RemoveMetadatum(string key, ITaskItem item, Dictionary<string, string> removedMetadata)
3045private static void FindCopyLocalItems(ITaskItem[] items, List<ITaskItem> copyLocalItems)
3047foreach (ITaskItem i in items)
3066internal void LogHigherVersionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework)
3081internal void LogHigherVersionUnresolveDueToAttribute(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework)
3096internal void LogAnotherFrameworkUnResolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework)
3111internal void LogProfileExclusionUnresolve(bool displayPrimaryReferenceMessage, AssemblyNameExtension assemblyName, Reference reference, ITaskItem referenceItem, string targetedFramework)
GenerateResource.cs (66)
65private ITaskItem[] _sources = null;
72private ITaskItem[] _references = null;
75private ITaskItem[] _additionalInputs = null;
78private ITaskItem _stateFile = null;
81private ITaskItem[] _outputResources = null;
152private ITaskItem[] _excludedInputPaths;
165private List<ITaskItem> _satelliteInputs;
177public ITaskItem[] Sources
196public ITaskItem[] References
214public ITaskItem[] AdditionalInputs
223public ITaskItem StateFile
237public ITaskItem[] OutputResources
250public ITaskItem[] FilesWritten
254return (ITaskItem[])_filesWritten.ToArray(typeof(ITaskItem));
394public ITaskItem[] ExcludedInputPaths
439public ITaskItem[] TLogReadFiles
443return Array.Empty<ITaskItem>();
451public ITaskItem[] TLogWriteFiles
455return Array.Empty<ITaskItem>();
565private void LogResgenCommandLine(List<ITaskItem> inputFiles, List<ITaskItem> outputFiles)
637foreach (ITaskItem reference in References)
665_satelliteInputs = new List<ITaskItem>();
667List<ITaskItem> newSources = new List<ITaskItem>();
668foreach (ITaskItem item in Sources)
711List<ITaskItem> inputsToProcess;
712List<ITaskItem> outputsToProcess;
713List<ITaskItem> cachedOutputFiles; // For incremental builds, this is the set of already-existing, up to date files.
759foreach (ITaskItem source in _sources)
855ITaskItem[] outputResources = process.ExtractedResWFiles.ToArray();
867OutputResources = new ITaskItem[outputResources.Length + cachedOutputFiles.Count];
1118private bool GenerateResourcesUsingResGen(List<ITaskItem> inputsToProcess, List<ITaskItem> outputsToProcess)
1370private void GetResourcesToProcess(out List<ITaskItem> inputsToProcess, out List<ITaskItem> outputsToProcess, out List<ITaskItem> cachedOutputFiles)
1377inputsToProcess = new List<ITaskItem>();
1378outputsToProcess = new List<ITaskItem>();
1379cachedOutputFiles = new List<ITaskItem>();
1444private void AppendCachedOutputTaskItems(ResGenDependencies.PortableLibraryFile library, List<ITaskItem> cachedOutputFiles)
1448ITaskItem item = new TaskItem(outputFileName);
1465private bool ContainsDuplicates(IList<ITaskItem> originalList)
1468foreach (ITaskItem item in originalList)
1622private void GetStronglyTypedResourceToProcess(ref List<ITaskItem> inputsToProcess, ref List<ITaskItem> outputsToProcess)
1708ITaskItem[] inputs = this.References ?? [.. (this.AdditionalInputs ?? [])];
1710foreach (ITaskItem input in inputs)
2062OutputResources = new ITaskItem[Sources.Length];
2110ITaskItem[] temp = new ITaskItem[OutputResources.Length - _unsuccessfullyCreatedOutFiles.Count];
2141foreach (ITaskItem item in this.OutputResources)
2290private ITaskItem[] _assemblyFiles;
2301private List<ITaskItem> _inFiles;
2306private List<ITaskItem> _satelliteInFiles;
2311private List<ITaskItem> _outFiles;
2325internal List<ITaskItem> ExtractedResWFiles
2331_extractedResWFiles = new List<ITaskItem>();
2336private List<ITaskItem> _extractedResWFiles;
2391ITaskItem[] assemblyFilesList,
2392List<ITaskItem> inputs,
2393List<ITaskItem> satelliteInputs,
2394List<ITaskItem> outputs,
2528ITaskItem assemblyFile = _assemblyFiles[i];
2707ITaskItem newOutputFile = new TaskItem(escapedOutputFile);
GetSDKReferenceFiles.cs (25)
34private ITaskItem[] _resolvedSDKReferences = Array.Empty<ITaskItem>();
105public ITaskItem[] ResolvedSDKReferences
167public ITaskItem[] References { get; private set; } = Array.Empty<ITaskItem>();
173public ITaskItem[] RedistFiles { get; private set; } = Array.Empty<ITaskItem>();
179public ITaskItem[] CopyLocalFiles { get; private set; } = Array.Empty<ITaskItem>();
251IEnumerable<ITaskItem> filteredResolvedSDKReferences = ResolvedSDKReferences.Where(
256foreach (ITaskItem resolvedSDKReference in filteredResolvedSDKReferences)
301private void FindRedistFiles(ITaskItem resolvedSDKReference, string sdkIdentity, string targetedConfiguration, string targetedArchitecture)
360private void FindReferences(ITaskItem resolvedSDKReference, string sdkIdentity, string sdkName, string rootDirectory, string targetedConfiguration, string targetedArchitecture)
449var resolvedReferenceAssemblies = new List<ITaskItem>();
450var copyLocalReferenceAssemblies = new List<ITaskItem>();
451var redistReferenceItems = new List<ITaskItem>();
568private void GatherReferenceAssemblies(HashSet<ResolvedReferenceAssembly> resolvedFiles, ITaskItem sdkReference, string path, SDKInfo info)
614private void GatherRedistFiles(HashSet<ResolvedRedistFile> resolvedRedistFiles, ITaskItem sdkReference, string redistFilePath, SDKInfo info)
656private void PopulateReferencesForSDK(IEnumerable<ITaskItem> sdks)
661foreach (ITaskItem sdk in sdks)
695private string[] GetReferencePathsFromManifest(ITaskItem sdk)
729public ResolvedReferenceAssembly(ITaskItem sdkReferenceItem, string assemblyLocation)
755public ITaskItem SDKReferenceItem { get; }
808public ResolvedRedistFile(ITaskItem sdkReferenceItem, string redistFile, string targetPath, string targetRoot)
834public ITaskItem SDKReferenceItem { get; }
ResolveManifestFiles.cs (56)
43private ITaskItem[] _extraFiles;
44private ITaskItem[] _files;
45private ITaskItem[] _managedAssemblies;
46private ITaskItem[] _nativeAssemblies;
47private ITaskItem[] _publishFiles;
48private ITaskItem[] _satelliteAssemblies;
56private Dictionary<string, ITaskItem> _runtimePackAssets;
63public ITaskItem DeploymentManifestEntryPoint { get; set; }
65public ITaskItem EntryPoint { get; set; }
67public ITaskItem[] ExtraFiles
73public ITaskItem[] Files
79public ITaskItem[] ManagedAssemblies
85public ITaskItem[] NativeAssemblies
92public ITaskItem[] RuntimePackAssets { get; set; }
101public ITaskItem[] OutputAssemblies { get; set; }
104public ITaskItem OutputDeploymentManifestEntryPoint { get; set; }
107public ITaskItem OutputEntryPoint { get; set; }
110public ITaskItem[] OutputFiles { get; set; }
112public ITaskItem[] PublishFiles
118public ITaskItem[] SatelliteAssemblies
257private static ITaskItem CreateAssemblyItem(ITaskItem item, string group, string targetPath, string includeHash)
259ITaskItem outputItem = new TaskItem(item.ItemSpec);
280private ITaskItem CreateFileItem(ITaskItem item, string group, string targetPath, string includeHash, bool isDataFile)
282ITaskItem outputItem = new TaskItem(item.ItemSpec);
321private static ITaskItem CreatePrerequisiteItem(ITaskItem item)
323ITaskItem outputItem = new TaskItem(item.ItemSpec);
329private static bool GetItemCopyLocal(ITaskItem item)
341private static CultureInfo GetItemCulture(ITaskItem item)
355private static string GetItemTargetPath(ITaskItem item)
379private void GetOutputAssemblies(List<PublishInfo> publishInfos, List<ITaskItem> assemblyList)
386foreach (ITaskItem item in _managedAssemblies)
421foreach (ITaskItem item in _nativeAssemblies)
491private ITaskItem[] GetOutputAssembliesAndSatellites(List<PublishInfo> assemblyPublishInfos, List<PublishInfo> satellitePublishInfos)
493var assemblyList = new List<ITaskItem>();
499private ITaskItem[] GetOutputFiles(List<PublishInfo> publishInfos, IEnumerable<ITaskItem> outputAssemblies)
501var fileList = new List<ITaskItem>();
510foreach (ITaskItem item in Files)
518outputAssembliesMap.TryGetValue(key, out var assembly);
549foreach (ITaskItem item in ExtraFiles)
598private void GetOutputSatellites(List<PublishInfo> publishInfos, List<ITaskItem> assemblyList)
604foreach (ITaskItem item in _satelliteAssemblies)
661private ITaskItem GetOutputEntryPoint(ITaskItem entryPoint, List<PublishInfo> manifestEntryPointList)
711foreach (ITaskItem item in PublishFiles)
737private bool IsFiltered(ITaskItem item)
802public PublishInfo(ITaskItem item)
816public readonly ITaskItem item;
819public MapEntry(ITaskItem item, bool includedByDefault)
846public void Add(ITaskItem item)
906public bool ContainsItem(ITaskItem item)
916public void Add(ITaskItem item)
955public void Add(ITaskItem item, bool includedByDefault)
ResolveSDKReference.cs (23)
82private ITaskItem[] _sdkReferences = Array.Empty<ITaskItem>();
87private ITaskItem[] _installedSDKs = Array.Empty<ITaskItem>();
118public ITaskItem[] SDKReferences
134public ITaskItem[] InstalledSDKs
196public ITaskItem[] References { get; set; }
202public ITaskItem[] DisallowedSDKDependencies { get; set; }
208public ITaskItem[] RuntimeReferenceOnlySDKDependencies { get; set; }
245public ITaskItem[] ResolvedSDKReferences { get; private set; }
274ResolvedSDKReferences = Array.Empty<ITaskItem>();
286foreach (ITaskItem runtimeDependencyOnlyItem in RuntimeReferenceOnlySDKDependencies)
296var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase);
298foreach (ITaskItem installedsdk in InstalledSDKs)
314foreach (ITaskItem referenceItem in References)
338foreach (ITaskItem referenceItem in SDKReferences)
558internal SDKReference ParseSDKReference(ITaskItem referenceItem)
727public SDKReference(ITaskItem taskItem, string sdkName, string sdkVersion)
750public ITaskItem ReferenceItem { get; }
795public ITaskItem ResolvedItem { get; set; }
908public void Resolve(Dictionary<string, ITaskItem> sdks, string targetConfiguration, string targetArchitecture, HashSet<string> sdkNamesOnReferenceItems, bool treatErrorsAsWarnings, bool prefer32Bit, string identifierTargetPlatform, Version versionTargetPlatform, string projectName, bool enableMaxPlatformVersionEmptyWarning)
910if (sdks.TryGetValue(SDKName, out ITaskItem sdk))
996private static string GetItemMetadataTrimmed(ITaskItem item, string metadataName)
Microsoft.Build.Tasks.UnitTests (987)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (7)
2951protected static bool ContainsItem(ITaskItem[] items, string spec)
2953foreach (ITaskItem item in items)
3001t.InstalledAssemblyTables = new ITaskItem[] { new TaskItem(redistListPath) };
3034ITaskItem[] loadModeResolvedFiles = Array.Empty<TaskItem>();
3037loadModeResolvedFiles = (ITaskItem[])t.ResolvedFiles.Clone();
3130internal void ExecuteRAROnItemsAndRedist(ResolveAssemblyReference t, MockEngine e, ITaskItem[] items, string redistString, bool consistencyCheck)
3138internal void ExecuteRAROnItemsAndRedist(ResolveAssemblyReference t, MockEngine e, ITaskItem[] items, string redistString, bool consistencyCheck, List<string> additionalSearchPaths)
CombinePath_Tests.cs (12)
33t.Paths = new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) };
62? new ITaskItem[] { new TaskItem(path1), new TaskItem(path2), new TaskItem(path3) }
63: new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) };
83t.Paths = new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) };
111? new ITaskItem[] { new TaskItem(path1), new TaskItem(path2), new TaskItem(path3) }
112: new ITaskItem[] { new TaskItem(path1), new TaskItem(path2) };
131t.Paths = new ITaskItem[] { new TaskItem(@"jkl\mno.txt") };
139t.Paths = new ITaskItem[] { new TaskItem("jkl/mno.txt") };
160t.Paths = new ITaskItem[] { new TaskItem(@"jkl\mno.txt"), new TaskItem(@"c:\abc\def\ghi.txt") };
179t.Paths = System.Array.Empty<ITaskItem>();
196t.Paths = new ITaskItem[] { new TaskItem("") };
214t.Paths = new ITaskItem[] { new TaskItem("ghi.txt"), new TaskItem("|.txt"), new TaskItem("jkl.txt") };
Copy_Tests.cs (122)
42new object[] { Array.Empty<ITaskItem>() },
150SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
151DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") },
175SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
218SourceFolders = new ITaskItem[] { new TaskItem(s0Folder.Path), new TaskItem(s1Folder.Path) },
273SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
274SourceFolders = new ITaskItem[] { new TaskItem(sourceFolder.Path) },
288public void CopyWithEmptySourceFiles(ITaskItem[] sourceFiles)
312public void CopyWithEmptySourceFolders(ITaskItem[] sourceFolders)
336public void CopyWithNoDestination(ITaskItem[] destinationFiles)
346SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
370SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
371DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") },
394SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
395SourceFolders = new ITaskItem[] { new TaskItem(sourceFolder.Path) },
396DestinationFiles = new ITaskItem[] { new TaskItem("destination0.txt"), new TaskItem("destination1.txt") },
417SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
418DestinationFiles = new ITaskItem[] { new TaskItem("destination0.txt"), new TaskItem("destination1.txt") },
442SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
443DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") },
468SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) },
469DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") },
496ITaskItem f = new TaskItem(file);
497ITaskItem[] sourceFiles = { f };
498ITaskItem[] destinationFiles = { f };
543ITaskItem sourceItem = new TaskItem(source);
544ITaskItem destinationItem = new TaskItem(destination);
545ITaskItem[] sourceFiles = { sourceItem };
546ITaskItem[] destinationFiles = { destinationItem };
603ITaskItem sourceItem = new TaskItem(source);
604ITaskItem destinationItem = new TaskItem(destination);
605ITaskItem[] sourceFiles = { sourceItem };
606ITaskItem[] destinationFiles = { destinationItem };
655ITaskItem sourceItem = new TaskItem(source);
656ITaskItem destinationItem = new TaskItem(destination);
657ITaskItem[] sourceFiles = { sourceItem };
658ITaskItem[] destinationFiles = { destinationItem };
712ITaskItem sourceItem = new TaskItem(source);
713ITaskItem destinationItem = new TaskItem(destination);
714ITaskItem[] sourceFiles = { sourceItem };
715ITaskItem[] destinationFiles = { destinationItem };
779ITaskItem sourceItem = new TaskItem(source);
780ITaskItem destinationItem = new TaskItem(destination);
781ITaskItem[] sourceFiles = { sourceItem };
782ITaskItem[] destinationFiles = { destinationItem };
846ITaskItem sourceItem = new TaskItem(source);
847ITaskItem destinationItem = new TaskItem(destination);
848ITaskItem[] sourceFiles = { sourceItem };
849ITaskItem[] destinationFiles = { destinationItem };
913ITaskItem sourceItem = new TaskItem(source);
914ITaskItem destinationItem = new TaskItem(destination);
915ITaskItem[] sourceFiles = { sourceItem };
916ITaskItem[] destinationFiles = { destinationItem };
987ITaskItem sourceItem1 = new TaskItem(source1);
988ITaskItem sourceItem2 = new TaskItem(source2);
989ITaskItem[] sourceFiles = new ITaskItem[] { sourceItem1, sourceItem2 };
1054ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1055ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
1187ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1188ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
1227ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1228ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
1272ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1273ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
1319ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1320ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
1365ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1373DestinationFiles = new ITaskItem[] { new TaskItem(destinationFile) },
1491ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1537ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1538ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
1604ITaskItem i1 = new TaskItem(inFile1);
1609ITaskItem o1 = new TaskItem(validOutFile);
1682SourceFiles = new ITaskItem[] { new TaskItem(file) },
1683DestinationFiles = new ITaskItem[] { new TaskItem(file) },
1701SourceFiles = new ITaskItem[] { new TaskItem(file) },
1702DestinationFiles = new ITaskItem[] { new TaskItem(file) },
1753SourceFiles = new ITaskItem[] { new TaskItem(file) },
1754DestinationFiles = new ITaskItem[] { new TaskItem(filename.ToLowerInvariant()) },
1807SourceFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(invalidFile) },
1808DestinationFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(dest2) },
1861ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
1934ITaskItem[] sourceFiles = { new TaskItem(sourceFileEscaped) };
1983ITaskItem[] sourceFiles =
1991foreach (ITaskItem item in sourceFiles)
2040ITaskItem[] sourceFiles =
2049foreach (ITaskItem item in sourceFiles)
2057ITaskItem[] destFiles =
2141SourceFiles = new ITaskItem[] { new TaskItem(inFile1), new TaskItem(inFile2) },
2142DestinationFiles = new ITaskItem[] { new TaskItem(outFile1) },
2182ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
2183ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
2220ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
2221ITaskItem[] destinationFiles = { new TaskItem(destinationFile) };
2253SourceFiles = new ITaskItem[] { new TaskItem("foo | bar") },
2277SourceFiles = new ITaskItem[] { new TaskItem("foo") },
2301SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2302DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2322SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2323DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2347SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2348DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2414SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2415DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2441SourceFiles = new ITaskItem[] { new TaskItem("c:\\source"), new TaskItem("c:\\source2") },
2442DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination"), new TaskItem("c:\\destination2") },
2473SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2474DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2502SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2503DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2537SourceFiles = new ITaskItem[] { new TaskItem(source) },
2538DestinationFiles = new ITaskItem[] { new TaskItem(existing) },
2562ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
2648ITaskItem[] sourceFiles =
2738ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
2817ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
2881ITaskItem[] sourceFiles = { new TaskItem(sourceFile) };
2918SourceFiles = new ITaskItem[] { new TaskItem("c:\\source") },
2919DestinationFiles = new ITaskItem[] { new TaskItem("c:\\destination") },
2948ITaskItem[] sourceFiles = { new TaskItem(sourceFile1.Path) };
2949ITaskItem[] destinationFiles = { new TaskItem(destFile) };
FindAppConfigFile_Tests.cs (14)
21f.PrimaryList = new ITaskItem[] { new TaskItem("app.config"), new TaskItem("xxx") };
22f.SecondaryList = System.Array.Empty<ITaskItem>();
34f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") };
35f.SecondaryList = new ITaskItem[] { new TaskItem("app.config"), new TaskItem("xxx") };
47f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") };
48f.SecondaryList = new ITaskItem[] { new TaskItem("foo\\app.config"), new TaskItem("xxx") };
60f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") };
61f.SecondaryList = new ITaskItem[] { new TaskItem("iii"), new TaskItem("xxx") };
72f.PrimaryList = new ITaskItem[] { new TaskItem("yyy"), new TaskItem("xxx") };
73f.SecondaryList = new ITaskItem[] { new TaskItem("|||"), new TaskItem(@"foo\\app.config"), new TaskItem(@"!@#$@$%|"), new TaskItem("uuu") };
86ITaskItem item1 = new TaskItem("app.config");
88ITaskItem item2 = new TaskItem("app.config");
90f.PrimaryList = new ITaskItem[] { item1, item2 };
91f.SecondaryList = System.Array.Empty<ITaskItem>();
ResolveNonMSBuildProjectOutput_Tests.cs (10)
28internal static ITaskItem CreateReferenceItem(string itemSpec, string projectGuid, string package, string name)
53ITaskItem reference = CreateReferenceItem(itemSpec, projectGuid, package, name);
104ITaskItem reference = CreateReferenceItem(itemSpec, projectGuid, package, name);
106ITaskItem resolvedPath;
193rvpo.ProjectReferences = (ITaskItem[])projectRefs.ToArray(typeof(ITaskItem));
232Assert.Equal("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "managed.dll")]).GetMetadata("ManagedAssembly"));
233Assert.NotEqual("true", ((ITaskItem)resolvedOutputs[Path.Combine("obj", "unmanaged.dll")]).GetMetadata("ManagedAssembly"));
338ITaskItem[] taskItems = new ITaskItem[1];
ResolveSDKReference_Tests.cs (261)
184ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
185ITaskItem installLocation = new TaskItem(testDirectory);
197t1.SDKReferences = new ITaskItem[] { item };
198t1.InstalledSDKs = new ITaskItem[] { installLocation };
215t2.SDKReferences = new ITaskItem[] { item };
216t2.InstalledSDKs = new ITaskItem[] { installLocation };
233t3.SDKReferences = new ITaskItem[] { item };
234t3.InstalledSDKs = new ITaskItem[] { installLocation };
251t3a.SDKReferences = new ITaskItem[] { item };
252t3a.InstalledSDKs = new ITaskItem[] { installLocation };
272t4.SDKReferences = new ITaskItem[] { item };
273t4.InstalledSDKs = new ITaskItem[] { installLocation };
289t5.SDKReferences = new ITaskItem[] { item };
290t5.InstalledSDKs = new ITaskItem[] { installLocation };
436ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
438t.SDKReferences = new ITaskItem[] { item };
440ITaskItem installedSDK = new TaskItem(_sdkPath);
442t.InstalledSDKs = new ITaskItem[] { installedSDK };
499ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
500t.SDKReferences = new ITaskItem[] { item };
502ITaskItem installLocation = new TaskItem(testDirectory);
504t.InstalledSDKs = new ITaskItem[] { installLocation };
530ITaskItem dummyItem = new TaskItem();
544private static void TestGoodSDKReferenceIncludes(ITaskItem referenceInclude, string simpleName, string version)
558private static void TestBadSDKReferenceIncludes(ITaskItem referenceInclude)
603ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
604t.SDKReferences = new ITaskItem[] { item };
609ITaskItem installLocation = new TaskItem(testDirectory);
611t.InstalledSDKs = new ITaskItem[] { installLocation };
658ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
659t.SDKReferences = new ITaskItem[] { item };
664ITaskItem installLocation = new TaskItem(testDirectory);
666t.InstalledSDKs = new ITaskItem[] { installLocation };
716ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
717t.SDKReferences = new ITaskItem[] { item };
722ITaskItem installLocation = new TaskItem(testDirectory);
724t.InstalledSDKs = new ITaskItem[] { installLocation };
771ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
772t.SDKReferences = new ITaskItem[] { item };
777ITaskItem installLocation = new TaskItem(testDirectory);
779t.InstalledSDKs = new ITaskItem[] { installLocation };
826ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
827t.SDKReferences = new ITaskItem[] { item };
832ITaskItem installLocation = new TaskItem(testDirectory);
834t.InstalledSDKs = new ITaskItem[] { installLocation };
881ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
882t.SDKReferences = new ITaskItem[] { item };
887ITaskItem installLocation = new TaskItem(testDirectory);
889t.InstalledSDKs = new ITaskItem[] { installLocation };
938ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
939t.SDKReferences = new ITaskItem[] { item };
944ITaskItem installLocation = new TaskItem(testDirectory);
946t.InstalledSDKs = new ITaskItem[] { installLocation };
992ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
993t.SDKReferences = new ITaskItem[] { item };
998ITaskItem installLocation = new TaskItem(testDirectory);
1000t.InstalledSDKs = new ITaskItem[] { installLocation };
1047ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1048t.SDKReferences = new ITaskItem[] { item };
1053ITaskItem installLocation = new TaskItem(testDirectory);
1055t.InstalledSDKs = new ITaskItem[] { installLocation };
1082ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1083t.SDKReferences = new ITaskItem[] { item };
1085ITaskItem installedSDK = new TaskItem(_sdkPath);
1087t.InstalledSDKs = new ITaskItem[] { installedSDK };
1119ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1120t.SDKReferences = new ITaskItem[] { item };
1122ITaskItem installedSDK = new TaskItem(_sdkPath);
1124t.InstalledSDKs = new ITaskItem[] { installedSDK };
1157ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1161t.SDKReferences = new ITaskItem[] { item };
1163ITaskItem installedSDK = new TaskItem(_sdkPath);
1165t.InstalledSDKs = new ITaskItem[] { installedSDK };
1198ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1199ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0");
1200t.SDKReferences = new ITaskItem[] { item, item2 };
1202ITaskItem installedSDK = new TaskItem(_sdkPath);
1204t.InstalledSDKs = new ITaskItem[] { installedSDK };
1234ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1235t.SDKReferences = new ITaskItem[] { item };
1241ITaskItem installedSDK = new TaskItem(_sdkPath);
1243t.InstalledSDKs = new ITaskItem[] { installedSDK };
1269t.SDKReferences = new ITaskItem[] { item };
1277t.InstalledSDKs = new ITaskItem[] { installedSDK };
1306ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1307t.SDKReferences = new ITaskItem[] { item };
1309t.InstalledSDKs = Array.Empty<ITaskItem>();
1330ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1331t.SDKReferences = new ITaskItem[] { item };
1334ITaskItem installedSDK1 = new TaskItem(_sdkPath);
1337ITaskItem installedSDK2 = new TaskItem(_sdkPath);
1340ITaskItem installedSDK3 = new TaskItem(String.Empty);
1343ITaskItem installedSDK4 = new TaskItem(_sdkPath);
1346ITaskItem installedSDK5 = new TaskItem(_sdkPath);
1348t.InstalledSDKs = new ITaskItem[] { installedSDK1, installedSDK2, installedSDK3, installedSDK4, installedSDK5 };
1380ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1381ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0");
1382t.SDKReferences = new ITaskItem[] { item, item2 };
1384ITaskItem installedSDK = new TaskItem("DoesNotExist");
1386t.InstalledSDKs = new ITaskItem[] { installedSDK };
1408ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1409ITaskItem item2 = new TaskItem("RandomSDK, Version=2.0");
1410t.SDKReferences = new ITaskItem[] { item, item2 };
1412ITaskItem installedSDK = new TaskItem(_sdkPath);
1414t.InstalledSDKs = new ITaskItem[] { installedSDK };
1472ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1473t.SDKReferences = Array.Empty<ITaskItem>();
1474ITaskItem installedSDK = new TaskItem(_sdkPath);
1476t.InstalledSDKs = new ITaskItem[] { installedSDK };
1513ITaskItem item = new TaskItem("BadTestSDK, Version=2.0");
1514ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0");
1515t.SDKReferences = new ITaskItem[] { item, item2 };
1517ITaskItem installLocation = new TaskItem(testDirectory);
1521ITaskItem installLocation2 = new TaskItem(goodSDKLocation);
1523t.InstalledSDKs = new ITaskItem[] { installLocation, installLocation2 };
1572ITaskItem item = new TaskItem("BadTestSDK, Version=2.0");
1573ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0");
1574t.SDKReferences = new ITaskItem[] { item, item2 };
1576ITaskItem installLocation = new TaskItem(testDirectory);
1579ITaskItem installLocation2 = new TaskItem("C:\\GoodSDKLocation");
1581t.InstalledSDKs = new ITaskItem[] { installLocation, installLocation2 };
1662ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1663ITaskItem installLocation = new TaskItem(testDirectory);
1670t1.SDKReferences = new ITaskItem[] { item };
1671t1.InstalledSDKs = new ITaskItem[] { installLocation };
1683t2.SDKReferences = new ITaskItem[] { item };
1684t2.InstalledSDKs = new ITaskItem[] { installLocation };
1749ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1750t.SDKReferences = new ITaskItem[] { item };
1752ITaskItem installLocation = new TaskItem(testDirectory);
1754t.InstalledSDKs = new ITaskItem[] { installLocation };
1831ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1848t.SDKReferences = new ITaskItem[] { item };
1850ITaskItem installLocation = new TaskItem(testDirectory);
1852t.InstalledSDKs = new ITaskItem[] { installLocation };
1926ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1927t.SDKReferences = new ITaskItem[] { item };
1929ITaskItem installLocation = new TaskItem(testDirectory);
1931t.InstalledSDKs = new ITaskItem[] { installLocation };
1997ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
1998t.SDKReferences = new ITaskItem[] { item };
2000ITaskItem installLocation = new TaskItem(testDirectory);
2002t.InstalledSDKs = new ITaskItem[] { installLocation };
2062ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2063t.SDKReferences = new ITaskItem[] { item };
2065ITaskItem installLocation = new TaskItem(testDirectory);
2067t.InstalledSDKs = new ITaskItem[] { installLocation };
2135ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2136t.SDKReferences = new ITaskItem[] { item };
2138ITaskItem installLocation = new TaskItem(testDirectory);
2140t.InstalledSDKs = new ITaskItem[] { installLocation };
2204ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2205t.SDKReferences = new ITaskItem[] { item };
2207ITaskItem installLocation = new TaskItem(testDirectory);
2209t.InstalledSDKs = new ITaskItem[] { installLocation };
2274ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2275t.SDKReferences = new ITaskItem[] { item };
2277ITaskItem installLocation = new TaskItem(testDirectory);
2279t.InstalledSDKs = new ITaskItem[] { installLocation };
2345ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2346t.SDKReferences = new ITaskItem[] { item };
2348ITaskItem installLocation = new TaskItem(testDirectory);
2350t.InstalledSDKs = new ITaskItem[] { installLocation };
2417ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2418t.SDKReferences = new ITaskItem[] { item };
2420ITaskItem installLocation = new TaskItem(testDirectory);
2422t.InstalledSDKs = new ITaskItem[] { installLocation };
2487ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2488t.SDKReferences = new ITaskItem[] { item };
2492ITaskItem installLocation = new TaskItem(testDirectory);
2494t.InstalledSDKs = new ITaskItem[] { installLocation };
2561ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2562t.SDKReferences = new ITaskItem[] { item };
2566ITaskItem installLocation = new TaskItem(testDirectory);
2568t.InstalledSDKs = new ITaskItem[] { installLocation };
2626ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2629t.SDKReferences = new ITaskItem[] { item };
2633ITaskItem installLocation = new TaskItem(testDirectory);
2635t.InstalledSDKs = new ITaskItem[] { installLocation };
2693ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2694t.SDKReferences = new ITaskItem[] { item };
2698ITaskItem installLocation = new TaskItem(testDirectory);
2700t.InstalledSDKs = new ITaskItem[] { installLocation };
2758ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
2761t.SDKReferences = new ITaskItem[] { item };
2765ITaskItem installLocation = new TaskItem(testDirectory);
2767t.InstalledSDKs = new ITaskItem[] { installLocation };
2843ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0");
2844ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0");
2845ITaskItem item3 = new TaskItem("GoodTestSDK, Version=3.0");
2847t.SDKReferences = new ITaskItem[] { item, item2, item3 };
2851ITaskItem installLocation = new TaskItem(testDirectory);
2854ITaskItem installLocation2 = new TaskItem(testDirectory2);
2857ITaskItem installLocation3 = new TaskItem(testDirectory3);
2860t.InstalledSDKs = new ITaskItem[] { installLocation, installLocation2, installLocation3 };
2941ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0");
2942ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0");
2943ITaskItem item3 = new TaskItem("GoodTestSDK3, Version=3.0");
2945t.SDKReferences = new ITaskItem[] { item, item2, item3 };
2949ITaskItem installLocation = new TaskItem(testDirectory);
2952ITaskItem installLocation2 = new TaskItem(testDirectory2);
2955ITaskItem installLocation3 = new TaskItem(testDirectory3);
2958t.InstalledSDKs = new ITaskItem[] { installLocation, installLocation2, installLocation3 };
3049ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0");
3050ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0");
3051ITaskItem item3 = new TaskItem("GoodTestSDK3, Version=3.0");
3052ITaskItem item4 = new TaskItem("GoodTestSDK3, Version=4.0");
3054t.SDKReferences = new ITaskItem[] { item, item2, item3, item4 };
3058ITaskItem installLocation = new TaskItem(testDirectory);
3061ITaskItem installLocation2 = new TaskItem(testDirectory2);
3064ITaskItem installLocation3 = new TaskItem(testDirectory3);
3067ITaskItem installLocation4 = new TaskItem(testDirectory4);
3070t.InstalledSDKs = new ITaskItem[] { installLocation, installLocation2, installLocation3, installLocation4 };
3152ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0");
3153ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0");
3154ITaskItem item3 = new TaskItem("GoodTestSDK, Version=3.0");
3156t.SDKReferences = new ITaskItem[] { item, item2, item3 };
3160ITaskItem installLocation = new TaskItem(testDirectory);
3163ITaskItem installLocation2 = new TaskItem(testDirectory2);
3166ITaskItem installLocation3 = new TaskItem(testDirectory3);
3169t.InstalledSDKs = new ITaskItem[] { installLocation, installLocation2, installLocation3 };
3241ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3243t.SDKReferences = new ITaskItem[] { item };
3247ITaskItem installLocation = new TaskItem(testDirectory);
3249t.InstalledSDKs = new ITaskItem[] { installLocation };
3315ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3318t.SDKReferences = new ITaskItem[] { item };
3322ITaskItem installLocation = new TaskItem(testDirectory);
3324t.InstalledSDKs = new ITaskItem[] { installLocation };
3391ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3394t.SDKReferences = new ITaskItem[] { item };
3398ITaskItem installLocation = new TaskItem(testDirectory);
3400t.InstalledSDKs = new ITaskItem[] { installLocation };
3459ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3462t.SDKReferences = new ITaskItem[] { item };
3466ITaskItem installLocation = new TaskItem(testDirectory);
3468t.InstalledSDKs = new ITaskItem[] { installLocation };
3535ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3536t.SDKReferences = new ITaskItem[] { item };
3540ITaskItem installLocation = new TaskItem(testDirectory);
3542t.InstalledSDKs = new ITaskItem[] { installLocation };
3598ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3599t.SDKReferences = new ITaskItem[] { item };
3602ITaskItem installLocation = new TaskItem(testDirectory);
3604t.InstalledSDKs = new ITaskItem[] { installLocation };
3672ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0");
3673t.SDKReferences = new ITaskItem[] { item };
3676ITaskItem installLocation = new TaskItem(testDirectory);
3678t.InstalledSDKs = new ITaskItem[] { installLocation };
3821ITaskItem[] resolvedSDKReferences = result.Items;
3830ITaskItem[] SDkRedistFolders = result.Items;
3964ITaskItem[] resolvedSDKReferences = result.Items;
3973ITaskItem[] SDkRedistFolders = result.Items;
4073ITaskItem[] resolvedSDKReferences = result.Items;
4082ITaskItem[] SDkRedistFolders = result.Items;
4170ITaskItem[] resolvedSDKReferences = result.Items;
4181ITaskItem[] SDkRedistFolders = result.Items;
4201new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } },
4299ITaskItem[] resolvedSDKReferences1 = RunBuildAndReturnResolvedSDKReferences(logger, testProjectFile, testDirectoryRoot);
4308ITaskItem[] resolvedSDKReferences2 = RunBuildAndReturnResolvedSDKReferences(logger, testProjectFile, testDirectoryRoot);
4327private ITaskItem[] RunBuildAndReturnResolvedSDKReferences(ILogger logger, string testProjectFile, string testDirectoryRoot)
ResourceHandling\GenerateResource_Tests.cs (181)
68t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
93foreach (ITaskItem item in t.FilesWritten)
120t.Sources = new ITaskItem[] {
123t.OutputResources = new ITaskItem[] {
138foreach (ITaskItem item in t.FilesWritten)
156t.Sources = new ITaskItem[] { new TaskItem(textFile) };
176foreach (ITaskItem item in t.FilesWritten)
206t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
207t.References = new ITaskItem[] { new TaskItem(systemDll) };
247t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
248t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resourcesFile, ".resx")) };
254t2a.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
255t2a.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resourcesFile, ".txt")) };
261t2b.Sources = new ITaskItem[] { new TaskItem(t2a.FilesWritten[0].ItemSpec) };
262t2b.OutputResources = new ITaskItem[] { new TaskItem(Utilities.GetTempFileName(".resx")) };
276foreach (ITaskItem item in t2b.FilesWritten)
296t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
299t.OutputResources = new ITaskItem[] { new TaskItem(outputFile) };
310foreach (ITaskItem item in t.FilesWritten)
329t.Sources = new ITaskItem[] { new TaskItem(resxFileInput) };
355t2.Sources = new ITaskItem[] { new TaskItem(resxFileInput) };
375t.Sources = new ITaskItem[] { new TaskItem(resxFileInput) };
383t2.Sources = new ITaskItem[] { new TaskItem(resxFileInput) };
408t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
419t2.Sources = new ITaskItem[] { new TaskItem(resxFile) };
441foreach (ITaskItem item in t.FilesWritten)
457ITaskItem[] sources = new ITaskItem[] { new TaskItem(resxFileInput) };
458ITaskItem[] output;
528t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
571foreach (ITaskItem item in t.FilesWritten)
597t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
608foreach (ITaskItem item in t.FilesWritten)
629t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
640t2.Sources = new ITaskItem[] { new TaskItem(resxFile) };
659foreach (ITaskItem item in t.FilesWritten)
683createResources.Sources = new ITaskItem[] { new TaskItem(firstResx), new TaskItem(secondResx) };
695t2.Sources = new ITaskItem[] { new TaskItem(firstResx), new TaskItem(secondResx) };
743t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
758t2.Sources = new ITaskItem[] { new TaskItem(resxFile) };
771foreach (ITaskItem item in t.FilesWritten)
799t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(txtFile) };
815t2.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(txtFile) };
882initialCreator.Sources = new ITaskItem[] { new TaskItem(resxFile) };
883initialCreator.References = new ITaskItem[] { new TaskItem(localSystemDll) };
892incrementalUpToDate.Sources = new ITaskItem[] { new TaskItem(resxFile) };
893incrementalUpToDate.References = new ITaskItem[] { new TaskItem(localSystemDll) };
904incrementalOutOfDate.Sources = new ITaskItem[] { new TaskItem(resxFile) };
905incrementalOutOfDate.References = new ITaskItem[] { new TaskItem(localSystemDll) };
955ITaskItem[] additionalInputs = null;
960additionalInputs = new ITaskItem[] { new TaskItem(FileUtilities.GetTemporaryFile()), new TaskItem(FileUtilities.GetTemporaryFile()) };
962foreach (ITaskItem file in additionalInputs)
971t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
978t2.Sources = new ITaskItem[] { new TaskItem(resxFile) };
988t3.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1035t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1036t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(textFile, ".resx")) };
1048foreach (ITaskItem item in t.FilesWritten)
1068t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
1069t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resourcesFile, ".resx")) };
1075t2a.Sources = new ITaskItem[] { new TaskItem(t.FilesWritten[0].ItemSpec) };
1076t2a.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(t.FilesWritten[0].ItemSpec, ".resources")) };
1082t2b.Sources = new ITaskItem[] { new TaskItem(t2a.FilesWritten[0].ItemSpec) };
1083t2b.OutputResources = new ITaskItem[] { new TaskItem(Utilities.GetTempFileName(".resx")) };
1096foreach (ITaskItem item in t2b.FilesWritten)
1116t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1127t2.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
1129t2.OutputResources = new ITaskItem[] { new TaskItem(outputFile) };
1139foreach (ITaskItem item in t.FilesWritten)
1145foreach (ITaskItem item in t2.FilesWritten)
1161t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1202foreach (ITaskItem item in t.FilesWritten)
1224t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1264t2.Sources = new ITaskItem[] { new TaskItem(textFile) };
1280foreach (ITaskItem item in t.FilesWritten)
1287foreach (ITaskItem item in t2.FilesWritten)
1316t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1317t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) };
1337t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1338t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) };
1350t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1351t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) };
1367t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1368t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) };
1408t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
1469t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1509foreach (ITaskItem item in t.FilesWritten)
1529t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1562foreach (ITaskItem item in t.FilesWritten)
1587t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1628foreach (ITaskItem item in t.FilesWritten)
1713t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1719foreach (ITaskItem item in t.FilesWritten)
1729t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1738foreach (ITaskItem item in t.FilesWritten)
1764t.Sources = new ITaskItem[] { new TaskItem(resxFile1), new TaskItem(resxFile2) };
1841t.Sources = new ITaskItem[] { new TaskItem(resxFile1), new TaskItem(resxFile2) };
1846t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile1), new TaskItem(resourcesFile2) };
1913t.Sources = new ITaskItem[] { new TaskItem(textFile) };
1923foreach (ITaskItem item in t.FilesWritten)
1940t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
1941t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resxFile, ".txt")) };
1951foreach (ITaskItem item in t.FilesWritten)
1970t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
2031gr.Sources = new ITaskItem[] { new TaskItem(resource.Path) };
2053t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
2054t.OutputResources = new ITaskItem[] { new TaskItem(resxFile) };
2065foreach (ITaskItem item in t.FilesWritten)
2084t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
2085t.OutputResources = new ITaskItem[] { new TaskItem(env.GetTempFile(".resources").Path) };
2104t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2122foreach (ITaskItem item in t.FilesWritten)
2144t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
2188ITaskItem i = new TaskItem(resxFile);
2190t.Sources = new ITaskItem[] { i };
2192ITaskItem o = new TaskItem("MyAlternateResource.resources");
2195t.OutputResources = new ITaskItem[] { o };
2211foreach (ITaskItem item in t.FilesWritten)
2226ITaskItem i = new TaskItem(resxFile);
2228t.Sources = new ITaskItem[] { i };
2241foreach (ITaskItem item in t.FilesWritten)
2255t.Sources = new ITaskItem[] {
2272foreach (ITaskItem item in t.Sources)
2277foreach (ITaskItem item in t.FilesWritten)
2291t.Sources = new ITaskItem[] {
2315foreach (ITaskItem item in t.Sources)
2319foreach (ITaskItem item in t.FilesWritten)
2335t.Sources = new ITaskItem[] {
2342foreach (ITaskItem taskItem in t.Sources)
2393foreach (ITaskItem item in t.Sources)
2397foreach (ITaskItem item in t.FilesWritten)
2421t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2425t.OutputResources = new ITaskItem[] { new TaskItem("somefile.resources") };
2443foreach (ITaskItem item in t.FilesWritten)
2464t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2489foreach (ITaskItem item in t.FilesWritten)
2525foreach (ITaskItem item in t.FilesWritten)
2547t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2548t.References = new ITaskItem[] { new TaskItem("some non-existent DLL name goes here.dll") };
2579t.Sources = new ITaskItem[] { new TaskItem("non-existent.resx"), new TaskItem(txtFile) };
2616t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2633foreach (ITaskItem item in t.FilesWritten)
2655t.Sources = new ITaskItem[] { new TaskItem(newTextFile) };
2667foreach (ITaskItem item in t.FilesWritten)
2687t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2688t.OutputResources = new ITaskItem[] { new TaskItem(resxFile) };
2699foreach (ITaskItem item in t.FilesWritten)
2719t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2720t.OutputResources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem("someother.resources") };
2731foreach (ITaskItem item in t.FilesWritten)
2751t.Sources = new ITaskItem[] { new TaskItem(textFile) };
2763foreach (ITaskItem item in t.FilesWritten)
2788t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(resxFile2) };
2837t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
2841t.OutputResources = new ITaskItem[] { new TaskItem("somefile.resources") };
2877t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
2914t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
2951t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
2992t.Sources = new ITaskItem[] { new TaskItem(txtFile) };
3039t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) };
3040t.OutputResources = new ITaskItem[] { new TaskItem("||") };
3213t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) };
3216t.References = new ITaskItem[]
3362t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) };
3369t.References = new ITaskItem[] { reference };
3417t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
3453t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
3454t.References = new ITaskItem[] { new TaskItem("baz"), new TaskItem("jazz") };
3496t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
3497t.References = new ITaskItem[] { new TaskItem("baz"), new TaskItem("jazz") };
3542t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(resxFile1) };
3543t.OutputResources = new ITaskItem[]
3627t.Sources = new ITaskItem[] { new TaskItem(resxFile) };
3654foreach (ITaskItem item in t.FilesWritten)
3684task.Sources = new ITaskItem[] { new TaskItem(resxFile) };
3718t.Sources = new ITaskItem[] { new TaskItem("non-existent") };
3719t.OutputResources = new ITaskItem[] { new TaskItem("out") };
3861t.Sources = new ITaskItem[] { new TaskItem(sourceFile) };
3927t.References = new ITaskItem[] {
4214t.Sources = new ITaskItem[] { new TaskItem(textFile) };
4299foreach (ITaskItem item in t.FilesWritten)
RoslynCodeTaskFactory_Tests.cs (4)
238new TaskPropertyInfo("Parameter4", typeof(ITaskItem), output: false, required: false),
239new TaskPropertyInfo("Parameter5", typeof(ITaskItem[]), output: false, required: false),
347new TaskPropertyInfo("Parameter4", typeof(ITaskItem), output: false, required: false),
348new TaskPropertyInfo("Parameter5", typeof(ITaskItem[]), output: false, required: false),
Unzip_Tests.cs (16)
43SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }
71SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
84SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
99SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
128SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }
196SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }
218SourceFiles = new ITaskItem[] { new TaskItem(file.Path), }
238SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), }
265SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
294SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
327SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
360SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
388SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
416SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
444SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
478SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
Microsoft.Build.UnitTests.Shared (16)
Microsoft.Build.Utilities.Core (16)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (24)
Microsoft.DotNet.Arcade.Sdk (18)
Microsoft.DotNet.Build.Tasks.Feed (59)
src\BuildModelFactory.cs (13)
34ITaskItem[] artifacts,
35ITaskItem[] itemsToSign,
36ITaskItem[] strongNameSignInfo,
37ITaskItem[] fileSignInfo,
38ITaskItem[] fileExtensionSignInfo,
39ITaskItem[] certificatesSignInfo,
130ITaskItem[] artifacts,
131ITaskItem[] itemsToSign,
132ITaskItem[] strongNameSignInfo,
133ITaskItem[] fileSignInfo,
134ITaskItem[] fileExtensionSignInfo,
135ITaskItem[] certificatesSignInfo,
154foreach (var artifact in artifacts)
src\SigningInformationModelFactory.cs (15)
17ITaskItem[] itemsToSign,
18ITaskItem[] strongNameSignInfo,
19ITaskItem[] fileSignInfo,
20ITaskItem[] fileExtensionSignInfo,
21ITaskItem[] certificatesSignInfo,
36ITaskItem[] itemsToSign,
37ITaskItem[] strongNameSignInfo,
38ITaskItem[] fileSignInfo,
39ITaskItem[] fileExtensionSignInfo,
40ITaskItem[] certificatesSignInfo,
52foreach (var itemToSign in itemsToSign)
65foreach (var signInfo in strongNameSignInfo)
73foreach (var signInfo in fileSignInfo)
93foreach (var signInfo in fileExtensionSignInfo)
101foreach (var signInfo in certificatesSignInfo)
Microsoft.DotNet.Build.Tasks.Feed.Tests (34)
Microsoft.DotNet.Build.Tasks.Installers (37)
Microsoft.DotNet.Build.Tasks.Packaging (204)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (52)
GenerateNuSpecAndPackTests.cs (16)
64private ITaskItem CreateDependency(string id, string version, string targetFramework = null)
76ITaskItem[] nuspecs,
78ITaskItem[] additionalLibPackageExcludes = null,
79ITaskItem[] additionalSymbolPackageExcludes = null,
85ITaskItem[] nuspecProperties = null,
92AdditionalLibPackageExcludes = additionalLibPackageExcludes ?? Array.Empty<ITaskItem>(),
93AdditionalSymbolPackageExcludes = additionalSymbolPackageExcludes ?? Array.Empty<ITaskItem>(),
99NuspecProperties = nuspecProperties ?? Array.Empty<ITaskItem>(),
114ITaskItem[] dependencies = null,
116ITaskItem[] files = null,
117ITaskItem[] frameworkReferences = null,
127ITaskItem[] references = null,
145Dependencies = dependencies ?? Array.Empty<ITaskItem>(),
148Files = files ?? Array.Empty<ITaskItem>(),
149FrameworkReferences = frameworkReferences ?? Array.Empty<ITaskItem>(),
161References = references ?? Array.Empty<ITaskItem>(),
Microsoft.DotNet.Build.Tasks.TargetFramework (11)
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
Microsoft.DotNet.Build.Tasks.Workloads (70)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (30)
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.GenAPI (1)
Microsoft.DotNet.GenFacades (9)
Microsoft.DotNet.Helix.Sdk (54)
Microsoft.DotNet.Helix.Sdk.Tests (17)
Microsoft.DotNet.PackageTesting (12)
Microsoft.DotNet.SharedFramework.Sdk (29)
Microsoft.DotNet.SignCheck (1)
Microsoft.DotNet.SignTool (17)
Microsoft.DotNet.SignTool.Tests (65)
Microsoft.DotNet.SourceBuild.Tasks (9)
Microsoft.DotNet.SwaggerGenerator.MSBuild (2)
Microsoft.DotNet.VersionTools.Tasks (24)
Microsoft.DotNet.XliffTasks (40)
Microsoft.Extensions.ApiDescription.Client (14)
Microsoft.Extensions.ApiDescription.Client.Tests (14)
Microsoft.NETCore.Platforms (2)
MSBuild (27)
MSBuildTaskHost (28)
PortableTask (2)
PresentationBuildTasks (92)
SemanticSearch.BuildTask (2)