1597 instantiations of TaskItem
Crossgen2Tasks (9)
PrepareForReadyToRunCompilation.cs (7)
177TaskItem r2rCompilationEntry = new TaskItem(file); 194TaskItem r2rFileToPublish = new TaskItem(file); 209TaskItem pdbCompilationEntry = new TaskItem(file); 218TaskItem r2rSymbolsFileToPublish = new TaskItem(file); 239TaskItem r2rCompilationEntry = new TaskItem(MainAssembly); 267TaskItem r2rSymbolsFileToPublish = new TaskItem(MainAssembly); 283TaskItem compositeR2RFileToPublish = new TaskItem(MainAssembly);
ResolveReadyToRunCompilers.cs (2)
124CrossgenTool = new TaskItem(_crossgenTool.ToolPath); 168Crossgen2Tool = new TaskItem(_crossgen2Tool.ToolPath);
Microsoft.Build.BuildCheck.UnitTests (2)
TaskInvocationAnalysisDataTests.cs (2)
167var item1 = new TaskItem("item1"); 177var item2 = new TaskItem("item2");
Microsoft.Build.Engine.OM.UnitTests (3)
Instance\ProjectItemInstance_Tests.cs (3)
168ITaskItem toItem = new Utilities.TaskItem(); 364ITaskItem2 taskItem2 = new Microsoft.Build.Utilities.TaskItem(taskItem); 520Microsoft.Build.Utilities.TaskItem taskItem = new Microsoft.Build.Utilities.TaskItem(item);
Microsoft.Build.Engine.UnitTests (34)
BackEnd\ItemCreationTask.cs (3)
61CopiedOutputItems[i] = new TaskItem(InputItemsToCopy[i]); 65CreatedOutputItems[0] = new TaskItem("Foo"); 66CreatedOutputItems[1] = new TaskItem("Bar");
BackEnd\MSBuild_Tests.cs (4)
1294new TaskItem(project1), new TaskItem(project2) 1616new TaskItem(project1) 1798new TaskItem(projectFile2)
BackEnd\NullMetadataTask.cs (1)
29OutputItems[0] = new TaskItem("foo", (IDictionary)metadata);
BackEnd\TaskHostConfiguration_Tests.cs (7)
266parameters2.Add("MyITaskItem", new TaskItem("ABC")); 267parameters2.Add("ItemArray", new ITaskItem[] { new TaskItem("DEF"), new TaskItem("GHI"), new TaskItem("JKL") }); 536parameters.Add("TaskItemValue", new TaskItem("Foo")); 584parameters.Add("TaskItemArrayValue", new ITaskItem[] { new TaskItem("Foo"), new TaskItem("Baz") });
BackEnd\TaskHostTaskComplete_Tests.cs (7)
84parameters2.Add("MyITaskItem", new TaskItem("ABC")); 85parameters2.Add("ItemArray", new ITaskItem[] { new TaskItem("DEF"), new TaskItem("GHI"), new TaskItem("JKL") }); 187parameters.Add("TaskItemValue", new TaskItem("Foo")); 213parameters.Add("TaskItemArrayValue", new ITaskItem[] { new TaskItem("Foo"), new TaskItem("Baz") });
ProjectCache\ProjectCacheTests.cs (2)
133new TaskItem( 979new TaskItem(
TaskParameter_Tests.cs (10)
192TaskParameter t = new TaskParameter(new TaskItem("foo")); 216TaskItem baseItem = new TaskItem("foo"); 248TaskParameter t = new TaskParameter(new ITaskItem[] { new TaskItem("foo"), new TaskItem("bar") }); 277TaskParameter t = new TaskParameter(new TaskItem("foo%3bbar")); 302TaskParameter t = new TaskParameter(new TaskItem("foo%253bbar")); 338TaskParameter t = new TaskParameter(new TaskItem("foo;bar")); 369TaskParameter t = new TaskParameter(new TaskItem("foo", metadata)); 402TaskParameter t = new TaskParameter(new TaskItem("foo", metadata)); 449TaskParameter t = new TaskParameter(new TaskItem("foo", metadata));
Microsoft.Build.Tasks.CodeAnalysis (3)
GenerateMSBuildEditorConfig.cs (1)
62FileName = new TaskItem();
ManagedCompiler.cs (1)
844OutputAssembly = new TaskItem(Path.GetFileNameWithoutExtension(Sources[0].ItemSpec));
ManagedToolTask.cs (1)
162items[i] = new TaskItem(commandLineArgs[i]);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (39)
GenerateMSBuildEditorConfigTests.cs (8)
233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } }); 311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 367FileName = new TaskItem(fileName)
MapSourceRootTests.cs (31)
37new TaskItem(@"c:\packages\SourcePackage1\"), 38new TaskItem(@"/packages/SourcePackage2/"), 39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string> 43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 88new TaskItem(@"!@#:;$%^&*()_+|{}\"), 89new TaskItem(@"****/", new Dictionary<string, string> 93new TaskItem(@"****\|||:;\", new Dictionary<string, string> 133new TaskItem(@"C:\"), 134new TaskItem(@"C:/"), 135new TaskItem(@"C:"), 136new TaskItem(@"C"), 160new TaskItem(@"c:\MyProjects\MyProject\"), 161new TaskItem(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string> 166new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 171new TaskItem(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string> 211new TaskItem(@"c:\packages\SourcePackage1\"), 212new TaskItem(@"C:\packages\SourcePackage1\"), 213new TaskItem(@"c:\packages\SourcePackage2\"), 250new TaskItem(path1, new Dictionary<string, string> 255new TaskItem(path2, new Dictionary<string, string> 260new TaskItem(path3), 293new TaskItem(path1, new Dictionary<string, string> 302new TaskItem(path1, new Dictionary<string, string> 311new TaskItem(path2, new Dictionary<string, string> 316new TaskItem(path2, new Dictionary<string, string> 321new TaskItem(path3), 364new TaskItem(@"c:\MyProjects\MYPROJECT\"), 365new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 394new TaskItem(@"c:\MyProjects\MyProject\"), 395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 427new TaskItem(path1, new Dictionary<string, string>
Microsoft.Build.Tasks.Core (71)
AssemblyDependency\ReferenceTable.cs (6)
2675TaskItem referenceItem = new TaskItem(); 2747ITaskItem item = new TaskItem(reference.FullPathWithoutExtension + relatedFileExtension); 2758ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, satelliteFile)); 2771ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, serializationAssemblyFile)); 2782ITaskItem item = new TaskItem(Path.Combine(reference.DirectoryName, scatterFile)); 2812ITaskItem item = new TaskItem(reference.ImplementationAssembly);
AssemblyDependency\ResolveAssemblyReference.cs (3)
1148_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>() 2584_filesWritten.Add(new TaskItem(_stateFile)); 3003ITaskItem suggestedRedirect = new TaskItem();
AssignCulture.cs (3)
141AssignedFiles[i] = new TaskItem(Files[i]); 151CultureNeutralAssignedFiles[i] = new TaskItem(AssignedFiles[i]); 189new TaskItem(AssignedFiles[i]) { ItemSpec = info.cultureNeutralFilename };
AssignLinkMetadata.cs (1)
57ITaskItem outputItem = new TaskItem(item);
AssignTargetPath.cs (1)
76AssignedFiles[i] = new TaskItem(Files[i]);
CombinePath.cs (1)
66var combinedPath = new TaskItem(path);
ComReferenceInfo.cs (1)
103this.taskItem = new TaskItem(copyFrom.taskItem);
Copy.cs (3)
740DestinationFiles[i] = new TaskItem(EscapingUtilities.Escape(destinationFile)); 782var item = new TaskItem(EscapingUtilities.Escape(sourceFile)); 786item = new TaskItem(EscapingUtilities.Escape(destinationFile));
CreateItem.cs (1)
185TaskItem newItem = new TaskItem(i) { ItemSpec = file };
CreateManifestResourceName.cs (2)
225ManifestResourceNames[i] = new TaskItem(resourceFile) { ItemSpec = manifestName }; 228ResourceFilesWithManifestResourceNames[i] = new TaskItem(resourceFile);
Delete.cs (1)
142ITaskItem deletedFile = new TaskItem(file);
DownloadFile.cs (2)
187DownloadedFile = new TaskItem(destinationFile.FullName); 215DownloadedFile = new TaskItem(destinationFile.FullName);
Exec.cs (1)
401_nonEmptyOutput.Add(new TaskItem(EscapingUtilities.Escape(trimmedTextLine)));
FileIO\ReadLinesFromFile.cs (1)
61nonEmptyLines.Add(new TaskItem(EscapingUtilities.Escape(trimmedTextLine)));
GenerateLauncher.cs (1)
101OutputEntryPoint = new TaskItem(Path.Combine(Path.GetDirectoryName(EntryPoint.ItemSpec), results.KeyFile));
GenerateManifestBase.cs (1)
607OutputManifest = new TaskItem(GetDefaultFileName());
GenerateResource.cs (4)
1030clonedOutput[i] = new TaskItem(remoteValues[i]); 1448ITaskItem item = new TaskItem(outputFileName); 2068OutputResources[i] = new TaskItem(Path.ChangeExtension(Sources[i].ItemSpec, ".resources")); 2707ITaskItem newOutputFile = new TaskItem(escapedOutputFile);
GetAssembliesMetadata.cs (1)
96TaskItem referenceItem = new()
GetAssemblyIdentity.cs (1)
77ITaskItem newItem = new TaskItem(an.FullName);
GetCompatiblePlatform.cs (1)
57AssignedProjectsWithPlatform[i] = new TaskItem(AnnotatedProjects[i]);
GetInstalledSDKLocations.cs (1)
167var item = new TaskItem(sdk.Value.Item1);
GetSDKReferenceFiles.cs (3)
455var outputItem = new TaskItem(reference.AssemblyLocation); 518var item = new TaskItem(xmlFile); 538var outputItem = new TaskItem(file.RedistFile);
LC.cs (1)
173OutputLicense = new TaskItem(outputPath);
Move.cs (1)
145DestinationFiles[i] = new TaskItem(destinationFile);
RegisterAssembly.cs (1)
106TypeLibFiles[i] = new TaskItem(tlbPath);
RemoveDir.cs (2)
97removedDirectoriesList.Add(new TaskItem(directory)); 105removedDirectoriesList.Add(new TaskItem(directory));
ResGen.cs (2)
484outputFiles[i] = new TaskItem(Path.ChangeExtension(inputFileAsITaskItem2.EvaluatedIncludeEscaped, ".resources")); 488outputFiles[i] = new TaskItem(Path.ChangeExtension(EscapingUtilities.Escape(inputFiles[i].ItemSpec), ".resources"));
ResolveComReference.cs (2)
864ITaskItem moduleItem = new TaskItem(modulePath); 900referencePathItem = new TaskItem();
ResolveManifestFiles.cs (4)
259ITaskItem outputItem = new TaskItem(item.ItemSpec); 282ITaskItem outputItem = new TaskItem(item.ItemSpec); 323ITaskItem outputItem = new TaskItem(item.ItemSpec); 667var outputEntryPoint = new TaskItem(entryPoint.ItemSpec);
ResolveNativeReference.cs (6)
238ITaskItem itemNativeReferenceFile = new TaskItem(); 269ITaskItem item = new TaskItem(); 290ITaskItem itemLooseEtcFile = new TaskItem(); 307ITaskItem itemComClass = new TaskItem(); 321ITaskItem itemTypeLib = new TaskItem(); 337ITaskItem itemLooseTlbFile = new TaskItem();
ResolveNonMSBuildProjectOutput.cs (1)
171resolvedPath = new TaskItem(projectOutputPath);
ResolveProjectBase.cs (1)
180var item = new TaskItem(path);
ResolveSDKReference.cs (1)
1170ResolvedItem = new TaskItem(ResolvedPath);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
586items = hasInvalidReference ? null : resolvedAssemblyReferences.Select(i => (ITaskItem)new TaskItem(i)).ToArray(); 738managedCompiler.OutputAssembly = new TaskItem(assemblyPath); 740managedCompiler.Sources = [new TaskItem(sourceCodePath)];
SetRidAgnosticValueForProjects.cs (1)
30var updatedItem = new TaskItem(p);
SGen.cs (1)
368SerializationAssembly = [new TaskItem(SerializationAssemblyPath)];
WriteCodeFragment.cs (2)
111OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, OutputFile.ItemSpec)); 114OutputFile ??= new TaskItem(FileUtilities.GetTemporaryFile(OutputDirectory.ItemSpec, null, extension));
XmlPeek.cs (1)
153Result[i++] = new TaskItem(EscapingUtilities.Escape(item));
XmlPoke.cs (1)
58Value = new TaskItem(string.Empty);
Microsoft.Build.Tasks.UnitTests (1103)
AddToWin32Manifest_Tests.cs (1)
49task.ApplicationManifest = new TaskItem(Path.Combine(TestAssetsRootPath, manifestName));
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
3001t.InstalledAssemblyTables = new ITaskItem[] { new TaskItem(redistListPath) }; 3157t.InstalledAssemblyTables = new TaskItem[] { new TaskItem(redistFile) };
AssemblyDependency\SuggestedRedirects.cs (22)
53new TaskItem("A"), 54new TaskItem("B") 97new TaskItem("A"), new TaskItem("B") 147new TaskItem("A"), new TaskItem("B") 187new TaskItem("B"), 188new TaskItem("A"), 189new TaskItem("D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa") 230new TaskItem("B"), 231new TaskItem("A"), 232new TaskItem("D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa") 283new TaskItem("Microsoft.Office.Interop.Excel"), 284new TaskItem("MS.Internal.Test.Automation.Office.Excel") 322new TaskItem("A"), 323new TaskItem("B") 361new TaskItem("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 362new TaskItem("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 401new TaskItem("A"), 402new TaskItem("B") 444new TaskItem("A"), 445new TaskItem("B")
AssignCulture_Tests.cs (14)
26ITaskItem i = new TaskItem("MyResource.fr.resx"); 45ITaskItem i = new TaskItem("MyResource.fr.resx"); 67ITaskItem i = new TaskItem("MyResource.fr.resx"); 88ITaskItem i = new TaskItem("MyResource.fr.resx"); 111ITaskItem i = new TaskItem("MyResource.resx"); 130ITaskItem i = new TaskItem("MyResource"); 150ITaskItem i = new TaskItem("MyResource..resx"); 171ITaskItem i = new TaskItem("MyResource.fr.resx"); 196ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 218ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 236ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 253ITaskItem i = new TaskItem($"MyResource.{culture}.resx"); 273ITaskItem i = new TaskItem("MyResource.fr.resx"); 294ITaskItem i = new TaskItem("MyResource.fr.resx");
AssignLinkMetadata_Tests.cs (7)
52Items = new ITaskItem[] { new TaskItem(item) } 71Items = new ITaskItem[] { new TaskItem(item) } 98Items = new ITaskItem[] { new TaskItem(item1), new TaskItem(item2) } 122Items = new ITaskItem[] { new TaskItem(item) } 144Items = new ITaskItem[] { new TaskItem(item) } 159ITaskItem item = new TaskItem(Path.Combine("SubFolder", "a.cs"));
AssignTargetPath_Tests.cs (5)
24{ new TaskItem(NativeMethodsShared.IsWindows ? @"c:\bin2\abc.efg" : "/bin2/abc.efg") }; 39{ new TaskItem(NativeMethodsShared.IsWindows ? @"c:\f1\f2\file.txt" : "/f1/f2/file.txt") }; 54new TaskItem( 75new TaskItem( 100new TaskItem(
CallTarget_Tests.cs (1)
186targetOutputsTaskItems.Add(new TaskItem(item.EvaluatedInclude));
CombinePath_Tests.cs (22)
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") }; 196t.Paths = new ITaskItem[] { new TaskItem("") }; 214t.Paths = new ITaskItem[] { new TaskItem("ghi.txt"), new TaskItem("|.txt"), new TaskItem("jkl.txt") };
CommandLineBuilderExtension_Tests.cs (3)
31TaskItem i = new TaskItem(); 72TaskItem i = new TaskItem(); 77TaskItem j = new TaskItem();
ConvertToAbsolutePath_Tests.cs (4)
35t.Paths = new ITaskItem[] { new TaskItem(@"file.temp") }; 67t.Paths = new ITaskItem[] { new TaskItem(@"file%253A.temp") }; 97t.Paths = new ITaskItem[] { new TaskItem(fileName) }; 120t.Paths = new ITaskItem[] { new TaskItem("RandomFileThatDoesntExist.txt") };
Copy_Tests.cs (143)
150SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 151DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") }, 175SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 176DestinationFolder = new TaskItem(destinationFolder.Path), 218SourceFolders = new ITaskItem[] { new TaskItem(s0Folder.Path), new TaskItem(s1Folder.Path) }, 219DestinationFolder = new TaskItem(destinationFolder.Path), 244DestinationFolder = new TaskItem(destinationFolder.Path), 273SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 274SourceFolders = new ITaskItem[] { new TaskItem(sourceFolder.Path) }, 275DestinationFolder = new TaskItem(destinationFolder.Path), 299DestinationFolder = new TaskItem(destinationFolder.Path), 323DestinationFolder = new TaskItem(destinationFolder.Path), 346SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 370SourceFiles = new ITaskItem[] { new TaskItem(sourceFile.Path) }, 371DestinationFiles = new ITaskItem[] { new TaskItem("destination.txt") }, 372DestinationFolder = new TaskItem(destinationFolder.Path), 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); 543ITaskItem sourceItem = new TaskItem(source); 544ITaskItem destinationItem = new TaskItem(destination); 603ITaskItem sourceItem = new TaskItem(source); 604ITaskItem destinationItem = new TaskItem(destination); 655ITaskItem sourceItem = new TaskItem(source); 656ITaskItem destinationItem = new TaskItem(destination); 712ITaskItem sourceItem = new TaskItem(source); 713ITaskItem destinationItem = new TaskItem(destination); 779ITaskItem sourceItem = new TaskItem(source); 780ITaskItem destinationItem = new TaskItem(destination); 846ITaskItem sourceItem = new TaskItem(source); 847ITaskItem destinationItem = new TaskItem(destination); 913ITaskItem sourceItem = new TaskItem(source); 914ITaskItem destinationItem = new TaskItem(destination); 987ITaskItem sourceItem1 = new TaskItem(source1); 988ITaskItem sourceItem2 = new TaskItem(source2); 996DestinationFolder = new TaskItem(destinationFolder), 1054ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1055ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1117SourceFiles = new[] { new TaskItem(sourceFile) }, 1118DestinationFiles = new[] { 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) }; 1499DestinationFolder = new TaskItem(destinationFile), 1537ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 1538ITaskItem[] destinationFiles = { new TaskItem(destinationFile) }; 1604ITaskItem i1 = new TaskItem(inFile1); 1607t.SourceFiles = new[] { new TaskItem(inFile2), i1 }; 1609ITaskItem o1 = new TaskItem(validOutFile); 1612t.DestinationFiles = new[] { new TaskItem(invalidFile), o1 }; 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) }; 1869DestinationFolder = new TaskItem(destFolder), 1934ITaskItem[] sourceFiles = { new TaskItem(sourceFileEscaped) }; 1941DestinationFolder = new TaskItem(destFolder), 1985new TaskItem(Path.Combine(tempPath, "a.cs")), 1986new TaskItem(Path.Combine(tempPath, "b.cs")), 1987new TaskItem(Path.Combine(tempPath, "a.cs")), 1988new TaskItem(Path.Combine(tempPath, "a.cs")), 2006DestinationFolder = new TaskItem(Path.Combine(tempPath, "foo")), 2042new TaskItem(Path.Combine(tempPath, "a.cs")), 2043new TaskItem(Path.Combine(tempPath, "b.cs")), 2044new TaskItem(Path.Combine(tempPath, "a.cs")), 2045new TaskItem(Path.Combine(tempPath, "a.cs")), 2046new TaskItem(Path.Combine(tempPath, "a.cs")), 2059new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs 2060new TaskItem(Path.Combine(tempPath, @"xa.cs")), // b.cs -> xa.cs should copy because it's a different source 2061new TaskItem(Path.Combine(tempPath, @"xb.cs")), // a.cs -> xb.cs should copy because it's a different destination 2062new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should copy because it's a different source from the b.cs copy done previously 2063new TaskItem(Path.Combine(tempPath, @"xa.cs")), // a.cs -> xa.cs should not copy because it's the same source 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") }, 2254DestinationFolder = new TaskItem("dest"), 2277SourceFiles = new ITaskItem[] { new TaskItem("foo") }, 2278DestinationFolder = new TaskItem("here | there"), 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) }; 2570DestinationFolder = new TaskItem(destFolder), 2650new TaskItem(sourceFile1), 2651new TaskItem(sourceFile2) 2661DestinationFolder = new TaskItem(destFolder), 2738ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2747DestinationFolder = new TaskItem(destFolder), 2817ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2825DestinationFolder = new TaskItem(destFolder), 2881ITaskItem[] sourceFiles = { new TaskItem(sourceFile) }; 2891DestinationFolder = new TaskItem(destFolder), 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) }; 2967sourceFiles = new TaskItem[] { new TaskItem(sourceFile2.Path) }; 2988destinationFiles = new TaskItem[] { new TaskItem(
CreateCSharpManifestResourceName_Tests.cs (12)
362ITaskItem i = new TaskItem("SR1.resx"); 389ITaskItem i = new TaskItem(resXFile.Path); 425ITaskItem i = new TaskItem(ResourceFileName); 462ITaskItem i = new TaskItem(@"SR1\SR1.resx"); 492ITaskItem i = new TaskItem(Path.GetFileName(resXFile.Path)); 527ITaskItem i = new TaskItem(resXFile.Path); 557ITaskItem i = new TaskItem(Path.GetFileName(resXFile.Path)); 591ITaskItem i = new TaskItem(resXFile.Path); 797ITaskItem i = new TaskItem("strings.resx"); 822ITaskItem i = new TaskItem("pic.bmp"); 847ITaskItem i = new TaskItem("pic.bmp"); 873ITaskItem i = new TaskItem("strings.resx");
CreateItem_Tests.cs (13)
58t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 59t.Exclude = new ITaskItem[] { new TaskItem("MyFile.txt") }; 76t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 77t.Exclude = new ITaskItem[] { new TaskItem("MyFileOther.txt") }; 95t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 114t.Exclude = new ITaskItem[] { new TaskItem("MyFile.txt") }; 147t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 148t.Exclude = new ITaskItem[] { new TaskItem("myfile.tXt") }; 230t.Include = new ITaskItem[] { new TaskItem("MyFile.txt") }; 248TaskItem item = new TaskItem("MyFile.txt"); 271TaskItem item = new TaskItem("MyFile.txt"); 306Include = new ITaskItem[] { new TaskItem(itemSpec) }, 358Include = new ITaskItem[] { new TaskItem(itemSpec) },
Delete_Tests.cs (2)
29ITaskItem i = new TaskItem("MyFiles.nonexistent"); 58ITaskItem sourceItem = new TaskItem(source);
DownloadFile_Tests.cs (8)
37DestinationFolder = new TaskItem(folder.Path), 66DestinationFolder = new TaskItem(folder.Path), 114DestinationFolder = new TaskItem(folder.Path), 115DestinationFileName = new TaskItem(filename), 144DestinationFolder = new TaskItem(folder.Path), 145DestinationFileName = new TaskItem(filename), 209DestinationFolder = new TaskItem(folder.Path), 322DestinationFolder = new TaskItem(folder.Path),
Exec_Tests.cs (2)
830ITaskItem[] items = { new TaskItem("hi"), new TaskItem("ho") };
FindAppConfigFile_Tests.cs (22)
21f.PrimaryList = new ITaskItem[] { new TaskItem("app.config"), new TaskItem("xxx") }; 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");
FindInList_Tests.cs (17)
23f.List = new ITaskItem[] { new TaskItem("A.CS"), new TaskItem("b.cs") }; 35f.List = new ITaskItem[] { new TaskItem("A.CS"), new TaskItem("a.cs") }; 47f.List = new ITaskItem[] { new TaskItem("A.CS"), new TaskItem("b.cs") }; 58ITaskItem item1 = new TaskItem("a.cs"); 60ITaskItem item2 = new TaskItem("a.cs"); 78ITaskItem item1 = new TaskItem("a.cs"); 80ITaskItem item2 = new TaskItem("a.cs"); 106f.List = new ITaskItem[] { new TaskItem("foo\a.cs"), new TaskItem("b.cs") }; 118f.List = new ITaskItem[] { new TaskItem(@"c:\foo\a.cs"), new TaskItem("b.cs") }; 131f.List = new ITaskItem[] { new TaskItem(@"!@#$@$%|"), new TaskItem(@"foo\a.cs"), new TaskItem("b.cs") };
FindInvalidProjectReferences_Tests.cs (4)
40t.ProjectReferences = new TaskItem[] { new TaskItem("proj1.proj", proj1), new TaskItem("proj2.proj", proj2), new TaskItem("proj3.proj", proj3), new TaskItem("proj4.proj", proj4) };
FindUnderPath_Tests.cs (10)
27t.Path = new TaskItem(@"C:\MyProject"); 28t.Files = new ITaskItem[] { new TaskItem(@"C:\MyProject\File1.txt"), new TaskItem(@"C:\SomeoneElsesProject\File2.txt") }; 45t.Path = new TaskItem(@"C:\MyProject"); 46t.Files = new ITaskItem[] { new TaskItem(@":::") }; 61t.Path = new TaskItem(@"||::||"); 62t.Files = new ITaskItem[] { new TaskItem(@"foo") }; 77t.Path = new TaskItem(ObjectModelHelpers.TempProjectDir); 78t.Files = new ITaskItem[] { new TaskItem(EscapingUtilities.Escape(testFile.Name)), 79new TaskItem(NativeMethodsShared.IsWindows ? @"C:\SomeoneElsesProject\File2.txt" : "/SomeoneElsesProject/File2.txt") };
GenerateBindingRedirects_Tests.cs (2)
326AppConfigFile = new TaskItem(appConfigFile), 327OutputAppConfigFile = new TaskItem(outputAppConfig)
GetCompatiblePlatform_Tests.cs (12)
27TaskItem projectReference = new TaskItem("foo.bar"); 48TaskItem projectReference = new TaskItem("foo.bar"); 71TaskItem projectReference = new TaskItem("foo.bar"); 95TaskItem projectReference = new TaskItem("foo.bar"); 116TaskItem projectReference = new TaskItem("foo.bar"); 138TaskItem projectReference = new TaskItem("foo.bar"); 160TaskItem projectReference = new TaskItem("foo.bar"); 182TaskItem projectReference = new TaskItem("foo.bar"); 206TaskItem projectReference = new TaskItem("foo.bar"); 231TaskItem projectReference = new TaskItem("foo.bar"); 258TaskItem projectReference = new TaskItem("foo.bar"); 280TaskItem projectReference = new TaskItem("foo.bar");
GetFileHash_Tests.cs (6)
31Files = new[] { new TaskItem(TestBinary.LoremFilePath) }, 44Files = new[] { new TaskItem(TestBinary.LoremFilePath) }, 57Files = new[] { new TaskItem(Path.Combine(AppContext.BaseDirectory, "this_does_not_exist.txt")) }, 70Files = new[] { new TaskItem(testBinary.FilePath) }, 87new TaskItem(testBinary.FilePath), 88new TaskItem(testBinary.FilePath),
GetSDKReference_Tests.cs (32)
230ITaskItem item = new TaskItem("C:\\SDKDoesNotExist"); 372ITaskItem item = new TaskItem(_sdkDirectory); 397ITaskItem item = new TaskItem(_sdkDirectory); 422ITaskItem item = new TaskItem(_sdkDirectory); 488ITaskItem item1 = new TaskItem(_sdkDirectory); 495ITaskItem item2 = new TaskItem(_sdkDirectory); 546ITaskItem item = new TaskItem(_sdkDirectory); 599ITaskItem item = new TaskItem(_sdkDirectory); 623ITaskItem item2 = new TaskItem(_sdkDirectory2); 665ITaskItem item = new TaskItem(_sdkDirectory); 713ITaskItem item = new TaskItem(_sdkDirectory); 758ITaskItem item = new TaskItem(_sdkDirectory); 781ITaskItem item = new TaskItem(_sdkDirectory); 806ITaskItem item = new TaskItem(_sdkDirectory); 857ITaskItem item = new TaskItem(_sdkDirectory); 908ITaskItem item = new TaskItem(_sdkDirectory); 943ITaskItem item = new TaskItem(_sdkDirectory); 1008ITaskItem item = new TaskItem(_sdkDirectory); 1039ITaskItem item = new TaskItem(_sdkDirectory); 1071ITaskItem item = new TaskItem(_sdkDirectory); 1102ITaskItem item = new TaskItem(_sdkDirectory); 1130ITaskItem item = new TaskItem(_sdkDirectory); 1159ITaskItem item = new TaskItem(_sdkDirectory); 1186ITaskItem item = new TaskItem(_sdkDirectory); 1214ITaskItem item = new TaskItem(_sdkDirectory); 1221ITaskItem item2 = new TaskItem(_sdkDirectory2); 1259ITaskItem item = new TaskItem(_sdkDirectory); 1266ITaskItem item2 = new TaskItem(_sdkDirectory2); 1301ITaskItem item = new TaskItem(_sdkDirectory); 1308ITaskItem item2 = new TaskItem(_sdkDirectory2); 1347ITaskItem item = new TaskItem(_sdkDirectory); 1355ITaskItem item2 = new TaskItem(_sdkDirectory2);
Hash_Tests.cs (19)
24new TaskItem("Item1"), new TaskItem("Item2"), new TaskItem("Item3") 31new TaskItem("Item1"), new TaskItem("Item2"), new TaskItem("Item3") 40var emptyItemHash = ExecuteHashTask(new ITaskItem[] { new TaskItem("") }); 61itemsToHash[i] = new TaskItem($"Item{i}"); 79ITaskItem[] itemsToHash = new ITaskItem[] { new TaskItem(string.Join("", array)) }; 108ItemsToHash = new ITaskItem[] { new TaskItem(input) }, 122new TaskItem("ITEM1"), 123new TaskItem("ITEM2"), 124new TaskItem("ITEM3") 130new TaskItem("Item1"), 131new TaskItem("iTEm2"), 132new TaskItem("iteM3") 138new TaskItem("item1"), 139new TaskItem("item2"), 140new TaskItem("item3")
MakeDir_Tests.cs (8)
36new TaskItem(dir) 83new TaskItem(dir), 84new TaskItem(file), 85new TaskItem(invalid), 86new TaskItem(dir2) 140new TaskItem(dir) 182new TaskItem(dir) 248new TaskItem(file)
Move_Tests.cs (51)
37ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 38ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 82ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 83ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 133ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 134ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 178ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 179ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 219ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 220ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 274ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 275ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 326ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 327ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 380ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 381ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 446ITaskItem i1 = new TaskItem(inFile1); 449t.SourceFiles = new ITaskItem[] { new TaskItem(inFile2), i1 }; 451ITaskItem o1 = new TaskItem(validOutFile); 454t.DestinationFiles = new ITaskItem[] { new TaskItem(invalidFile), o1 }; 511move.SourceFiles = new ITaskItem[] { new TaskItem(file) }; 512move.DestinationFiles = new ITaskItem[] { new TaskItem(file + "2") }; 534move.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 548move.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 549move.DestinationFiles = new ITaskItem[] { new TaskItem("x") }; 550move.DestinationFolder = new TaskItem(Directory.GetCurrentDirectory()); 564move.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 565move.DestinationFiles = new ITaskItem[] { new TaskItem(Directory.GetCurrentDirectory()) }; 579move.DestinationFiles = new ITaskItem[] { new TaskItem("destination") }; 580move.SourceFiles = new ITaskItem[] { new TaskItem(Directory.GetCurrentDirectory()) }; 613t.SourceFiles = new ITaskItem[] { new TaskItem(file) }; 614t.DestinationFiles = new ITaskItem[] { new TaskItem(filename.ToLowerInvariant()) }; 657t.SourceFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(invalidFile) }; 658t.DestinationFiles = new ITaskItem[] { new TaskItem(file), new TaskItem(dest2) }; 693ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 698t.DestinationFolder = new TaskItem(destFolder); 760t.SourceFiles = new ITaskItem[] { new TaskItem(inFile1), new TaskItem(inFile2) }; 761t.DestinationFiles = new ITaskItem[] { new TaskItem(outFile1) }; 795ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 796ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 824ITaskItem[] sourceFiles = new ITaskItem[] { new TaskItem(sourceFile) }; 825ITaskItem[] destinationFiles = new ITaskItem[] { new TaskItem(destinationFile) }; 847t.SourceFiles = new ITaskItem[] { new TaskItem("foo | bar") }; 848t.DestinationFolder = new TaskItem("dest"); 865t.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 866t.DestinationFiles = new ITaskItem[] { new TaskItem("foo | bar") }; 883t.SourceFiles = new ITaskItem[] { new TaskItem("source") }; 884t.DestinationFolder = new TaskItem("foo | bar");
MSBuild_Tests.cs (33)
80Projects = new ITaskItem[] { new TaskItem(projectFile1) } 128msbuildTask.Projects = new ITaskItem[] { new TaskItem(projectFile1), new TaskItem(projectFile2) }; 513new TaskItem(projectFile1), 514new TaskItem(projectFile1), 515new TaskItem(projectFile2), 516new TaskItem(projectFile2) 571new TaskItem(projectFile1), 572new TaskItem(projectFile1), 573new TaskItem(projectFile2), 574new TaskItem(projectFile2) 627new TaskItem(projectFile1), 628new TaskItem(projectFile1), 629new TaskItem(projectFile2), 630new TaskItem(projectFile2) 682new TaskItem(projectFile1), 683new TaskItem(projectFile1), 684new TaskItem(projectFile2), 685new TaskItem(projectFile2) 731new TaskItem(projectFile1), 732new TaskItem(projectFile2) 786new TaskItem(projectFile1), 787new TaskItem(projectFile2) 844new TaskItem(projectFile1), 845new TaskItem(projectFile2) 906new TaskItem(projectFile2) 952new TaskItem(project1), new TaskItem(project2) 1156new TaskItem(project1) 1173new TaskItem(project2), new TaskItem(project1) 1218new TaskItem(project1) 1337new TaskItem(projectFile2)
RARPrecomputedCache_Tests.cs (2)
94new TaskItem(precomputedCachePath) 138new TaskItem(precomputedCache.Path)
ReadLinesFromFile_Tests.cs (22)
34File = new TaskItem(file), 35Lines = new ITaskItem[] { new TaskItem("Line1") } 42File = new TaskItem(file) 50a.Lines = new ITaskItem[] { new TaskItem("Line2"), new TaskItem("Line3") }; 81File = new TaskItem(file), 82Lines = new ITaskItem[] { new TaskItem("Line1_%253b_") } 89File = new TaskItem(file) 97a.Lines = new ITaskItem[] { new TaskItem("Line2"), new TaskItem("Line3") }; 126File = new TaskItem(file), 127Lines = new ITaskItem[] { new TaskItem("My special character is \u00C3") } 134File = new TaskItem(file) 158File = new TaskItem(file) 178File = new TaskItem(file), 181new TaskItem("Line1"), 182new TaskItem(" "), 183new TaskItem("Line2"), 184new TaskItem(""), 185new TaskItem("Line3"), 186new TaskItem("\0\0\0\0\0\0\0\0\0") 194File = new TaskItem(file)
RemoveDir_Tests.cs (3)
35ITaskItem i = new TaskItem("MyNonExistentDirectory"); 56list.Add(new TaskItem(env.CreateFolder().Path)); 105list.Add(new TaskItem(""));
RemoveDuplicates_Tests.cs (15)
23t.Inputs = new[] { new TaskItem("MyFile.txt") }; 41t.Inputs = new[] { new TaskItem("MyFile.txt"), new TaskItem("MyFile.txt") }; 63new TaskItem("MyFile2.txt"), 64new TaskItem("MyFile1.txt"), 65new TaskItem("MyFile3.txt") 87new TaskItem("MyFile2.txt"), 88new TaskItem("MyFile1.txt"), 89new TaskItem("MyFile2.txt"), 90new TaskItem("MyFile3.txt"), 91new TaskItem("MyFile1.txt") 111t.Inputs = new[] { new TaskItem("MyFile1.txt"), new TaskItem("MyFile2.txt") }; 130t.Inputs = new[] { new TaskItem("MyFile.txt"), new TaskItem("MyFIle.tXt") };
ResolveNonMSBuildProjectOutput_Tests.cs (2)
30TaskItem reference = new TaskItem(itemSpec); 340taskItems[0] = new TaskItem("projectReference");
ResolveSDKReference_Tests.cs (175)
38TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0"), "Cat", "8.0"); 39TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version= 8.0"), "Cat", "8.0"); 40TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0 "), "Cat", "8.0"); 41TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0.255"), "Cat", "8.0.255"); 42TestGoodSDKReferenceIncludes(new TaskItem(" Cat, Version=8.0.255"), "Cat", "8.0.255"); 43TestGoodSDKReferenceIncludes(new TaskItem("Cat , Version=8.0.255"), "Cat", "8.0.255"); 44TestGoodSDKReferenceIncludes(new TaskItem("Cat,Version=8.0.255"), "Cat", "8.0.255"); 45TestGoodSDKReferenceIncludes(new TaskItem("Cat, Version=8.0.255"), "Cat", "8.0.255"); 55TestBadSDKReferenceIncludes(new TaskItem("")); 56TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=8")); 57TestBadSDKReferenceIncludes(new TaskItem("Cat 8.0")); 58TestBadSDKReferenceIncludes(new TaskItem("Cat Version=8.0")); 59TestBadSDKReferenceIncludes(new TaskItem("Dog, Cat, Version=8.0")); 60TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=8.0, Moose")); 61TestBadSDKReferenceIncludes(new TaskItem("Cat Version=v8.0")); 62TestBadSDKReferenceIncludes(new TaskItem(" , Version=8.0")); 63TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=v8.0")); 64TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=8.0.344.555.666.777.666.555.444")); 65TestBadSDKReferenceIncludes(new TaskItem("Cat,")); 66TestBadSDKReferenceIncludes(new TaskItem("Cat, Version=")); 99HashSet<SDKReference> resolvedSDKs = new HashSet<SDKReference>() { new SDKReference(new TaskItem(), "bar", "1.0"), new SDKReference(new TaskItem(), "foo", "1.0"), new SDKReference(new TaskItem(), "Newt", "1.0") }; 184ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 185ITaskItem installLocation = new TaskItem(testDirectory); 320SDKReference reference1 = new SDKReference(new TaskItem(), "Microsoft.VCLibs", "12.0"); 321reference1.ResolvedItem = new TaskItem(); 324SDKReference reference2 = new SDKReference(new TaskItem(), "Microsoft.VCLibs", "11.0"); 325reference2.ResolvedItem = new TaskItem(); 328SDKReference reference3 = new SDKReference(new TaskItem(), "Foo", "11.0"); 329reference3.ResolvedItem = new TaskItem(); 363SDKReference reference1 = new SDKReference(new TaskItem(), "reference1", "1.0"); 366SDKReference reference2 = new SDKReference(new TaskItem(), "reference2", "1.0"); 370SDKReference reference3 = new SDKReference(new TaskItem(), "reference3", "1.0"); 374SDKReference reference4 = new SDKReference(new TaskItem(), "reference4", "1.0"); 378SDKReference reference5 = new SDKReference(new TaskItem(), "reference5", "1.0"); 393reference1 = new SDKReference(new TaskItem(), "reference1", "1.0"); 397reference2 = new SDKReference(new TaskItem(), "reference2", "1.0"); 401reference3 = new SDKReference(new TaskItem(), "reference3", "1.0"); 405reference4 = new SDKReference(new TaskItem(), "reference4", "1.0"); 436ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 440ITaskItem installedSDK = new TaskItem(_sdkPath); 499ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 502ITaskItem installLocation = new TaskItem(testDirectory); 530ITaskItem dummyItem = new TaskItem(); 603ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 609ITaskItem installLocation = new TaskItem(testDirectory); 658ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 664ITaskItem installLocation = new TaskItem(testDirectory); 716ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 722ITaskItem installLocation = new TaskItem(testDirectory); 771ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 777ITaskItem installLocation = new TaskItem(testDirectory); 826ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 832ITaskItem installLocation = new TaskItem(testDirectory); 881ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 887ITaskItem installLocation = new TaskItem(testDirectory); 938ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 944ITaskItem installLocation = new TaskItem(testDirectory); 992ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 998ITaskItem installLocation = new TaskItem(testDirectory); 1047ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1053ITaskItem installLocation = new TaskItem(testDirectory); 1082ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1085ITaskItem installedSDK = new TaskItem(_sdkPath); 1119ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1122ITaskItem installedSDK = new TaskItem(_sdkPath); 1157ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1163ITaskItem installedSDK = new TaskItem(_sdkPath); 1198ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1199ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 1202ITaskItem installedSDK = new TaskItem(_sdkPath); 1234ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1237TaskItem referenceItem = new TaskItem("RandomWinMD"); 1241ITaskItem installedSDK = new TaskItem(_sdkPath); 1268item = new TaskItem("GoodTestSDK, Version=2.0"); 1271referenceItem = new TaskItem("RandomWinMD"); 1275installedSDK = new TaskItem(_sdkPath); 1306ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1330ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 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); 1380ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1381ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0"); 1384ITaskItem installedSDK = new TaskItem("DoesNotExist"); 1408ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1409ITaskItem item2 = new TaskItem("RandomSDK, Version=2.0"); 1412ITaskItem installedSDK = new TaskItem(_sdkPath); 1472ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1474ITaskItem installedSDK = new TaskItem(_sdkPath); 1513ITaskItem item = new TaskItem("BadTestSDK, Version=2.0"); 1514ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 1517ITaskItem installLocation = new TaskItem(testDirectory); 1521ITaskItem installLocation2 = new TaskItem(goodSDKLocation); 1572ITaskItem item = new TaskItem("BadTestSDK, Version=2.0"); 1573ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 1576ITaskItem installLocation = new TaskItem(testDirectory); 1579ITaskItem installLocation2 = new TaskItem("C:\\GoodSDKLocation"); 1662ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1663ITaskItem installLocation = new TaskItem(testDirectory); 1749ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1752ITaskItem installLocation = new TaskItem(testDirectory); 1831ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1850ITaskItem installLocation = new TaskItem(testDirectory); 1926ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 1929ITaskItem installLocation = new TaskItem(testDirectory); 1997ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2000ITaskItem installLocation = new TaskItem(testDirectory); 2062ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2065ITaskItem installLocation = new TaskItem(testDirectory); 2135ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2138ITaskItem installLocation = new TaskItem(testDirectory); 2204ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2207ITaskItem installLocation = new TaskItem(testDirectory); 2274ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2277ITaskItem installLocation = new TaskItem(testDirectory); 2345ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2348ITaskItem installLocation = new TaskItem(testDirectory); 2417ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2420ITaskItem installLocation = new TaskItem(testDirectory); 2487ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2492ITaskItem installLocation = new TaskItem(testDirectory); 2561ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2566ITaskItem installLocation = new TaskItem(testDirectory); 2626ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2633ITaskItem installLocation = new TaskItem(testDirectory); 2693ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2698ITaskItem installLocation = new TaskItem(testDirectory); 2758ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 2765ITaskItem installLocation = new TaskItem(testDirectory); 2843ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 2844ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 2845ITaskItem item3 = new TaskItem("GoodTestSDK, Version=3.0"); 2851ITaskItem installLocation = new TaskItem(testDirectory); 2854ITaskItem installLocation2 = new TaskItem(testDirectory2); 2857ITaskItem installLocation3 = new TaskItem(testDirectory3); 2941ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 2942ITaskItem item2 = new TaskItem("GoodTestSDK2, Version=2.0"); 2943ITaskItem item3 = new TaskItem("GoodTestSDK3, Version=3.0"); 2949ITaskItem installLocation = new TaskItem(testDirectory); 2952ITaskItem installLocation2 = new TaskItem(testDirectory2); 2955ITaskItem installLocation3 = new TaskItem(testDirectory3); 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"); 3058ITaskItem installLocation = new TaskItem(testDirectory); 3061ITaskItem installLocation2 = new TaskItem(testDirectory2); 3064ITaskItem installLocation3 = new TaskItem(testDirectory3); 3067ITaskItem installLocation4 = new TaskItem(testDirectory4); 3152ITaskItem item = new TaskItem("GoodTestSDK, Version=1.0"); 3153ITaskItem item2 = new TaskItem("GoodTestSDK, Version=2.0"); 3154ITaskItem item3 = new TaskItem("GoodTestSDK, Version=3.0"); 3160ITaskItem installLocation = new TaskItem(testDirectory); 3163ITaskItem installLocation2 = new TaskItem(testDirectory2); 3166ITaskItem installLocation3 = new TaskItem(testDirectory3); 3241ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3247ITaskItem installLocation = new TaskItem(testDirectory); 3315ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3322ITaskItem installLocation = new TaskItem(testDirectory); 3391ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3398ITaskItem installLocation = new TaskItem(testDirectory); 3459ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3466ITaskItem installLocation = new TaskItem(testDirectory); 3535ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3540ITaskItem installLocation = new TaskItem(testDirectory); 3598ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3602ITaskItem installLocation = new TaskItem(testDirectory); 3672ITaskItem item = new TaskItem("GoodTestSDK, Version=2.0"); 3676ITaskItem installLocation = new TaskItem(testDirectory); 4199SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2"); 4201new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } },
ResourceHandling\GenerateResource_Tests.cs (209)
57t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 68t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 121new TaskItem(resxFile0), new TaskItem(resxFile1), new TaskItem(resxFile2), new TaskItem(resxFile3) }; 124new TaskItem(expectedOutFile0), new TaskItem(expectedOutFile1), new TaskItem(expectedOutFile2), new TaskItem(expectedOutFile3) }; 151t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 156t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 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")) }; 296t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 299t.OutputResources = new ITaskItem[] { new TaskItem(outputFile) }; 328t.StateFile = new TaskItem(_env.GetTempFile(".cache").Path); 329t.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 354t2.StateFile = new TaskItem(t.StateFile); 355t2.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 374t.StateFile = new TaskItem(_env.GetTempFile(".cache").Path); 375t.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 382t2.StateFile = new TaskItem(t.StateFile); 383t2.Sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 404t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 408t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 418t2.StateFile = new TaskItem(t.StateFile); 419t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 456TaskItem stateFile = new TaskItem(_env.GetTempFile(".cache").Path); 457ITaskItem[] sources = new ITaskItem[] { new TaskItem(resxFileInput) }; 528t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 597t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 623t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 629t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 639t2.StateFile = new TaskItem(t.StateFile); 640t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 682createResources.StateFile = new TaskItem(cache); 683createResources.Sources = new ITaskItem[] { new TaskItem(firstResx), new TaskItem(secondResx) }; 694t2.StateFile = new TaskItem(createResources.StateFile.ItemSpec); 695t2.Sources = new ITaskItem[] { new TaskItem(firstResx), new TaskItem(secondResx) }; 737t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 743t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 757t2.StateFile = new TaskItem(t.StateFile); 758t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 798t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 799t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(txtFile) }; 814t2.StateFile = new TaskItem(t.StateFile); 815t2.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(txtFile) }; 882initialCreator.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 883initialCreator.References = new ITaskItem[] { new TaskItem(localSystemDll) }; 884initialCreator.StateFile = new TaskItem(stateFile); 892incrementalUpToDate.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 893incrementalUpToDate.References = new ITaskItem[] { new TaskItem(localSystemDll) }; 894incrementalUpToDate.StateFile = new TaskItem(stateFile); 904incrementalOutOfDate.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 905incrementalOutOfDate.References = new ITaskItem[] { new TaskItem(localSystemDll) }; 906incrementalOutOfDate.StateFile = new TaskItem(stateFile); 960additionalInputs = new ITaskItem[] { new TaskItem(FileUtilities.GetTemporaryFile()), new TaskItem(FileUtilities.GetTemporaryFile()) }; 971t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 973t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 978t2.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 980t2.StateFile = new TaskItem(t.StateFile); 988t3.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 990t3.StateFile = new TaskItem(t.StateFile); 1032t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1035t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1036t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(textFile, ".resx")) }; 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")) }; 1116t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1127t2.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1129t2.OutputResources = new ITaskItem[] { new TaskItem(outputFile) }; 1161t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1163t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1224t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1226t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1262t2.StateFile = new TaskItem(t.StateFile); 1264t2.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1316t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1317t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1319t.StateFile = new TaskItem(stateFile); 1337t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1338t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1340t.StateFile = new TaskItem(stateFile); 1350t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1351t.OutputResources = new ITaskItem[] { new TaskItem(resourcesFile) }; 1353t.StateFile = new TaskItem(stateFile); 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) }; 1471t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1529t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1531t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1587t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1589t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1713t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1729t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 1758t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1764t.Sources = new ITaskItem[] { new TaskItem(resxFile1), new TaskItem(resxFile2) }; 1835t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 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) }; 1939t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 1940t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1941t.OutputResources = new ITaskItem[] { new TaskItem(Path.ChangeExtension(resxFile, ".txt")) }; 1970t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 1971t.StateFile = new TaskItem("||//invalid filename||"); 2031gr.Sources = new ITaskItem[] { new TaskItem(resource.Path) }; 2046t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2053t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 2054t.OutputResources = new ITaskItem[] { new TaskItem(resxFile) }; 2079t.StateFile = new TaskItem(env.GetTempFile(".cache").Path); 2084t.Sources = new ITaskItem[] { new TaskItem(resourcesFile) }; 2085t.OutputResources = new ITaskItem[] { new TaskItem(env.GetTempFile(".resources").Path) }; 2099t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2104t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2144t.Sources = new ITaskItem[] { new TaskItem(txtFile) }; 2145t.References = new TaskItem[] { new TaskItem("INVALID") }; 2188ITaskItem i = new TaskItem(resxFile); 2192ITaskItem o = new TaskItem("MyAlternateResource.resources"); 2226ITaskItem i = new TaskItem(resxFile); 2256new TaskItem( Utilities.WriteTestResX(false, null, null)), 2257new TaskItem( Utilities.WriteTestResX(false, null, null)), 2258new TaskItem( Utilities.WriteTestResX(false, null, null)), 2259new TaskItem( Utilities.WriteTestResX(false, null, null)), 2292new TaskItem( Utilities.WriteTestResX(false, null, null)), 2293new TaskItem( Utilities.WriteTestResX(false, null, null)), 2294new TaskItem( Utilities.WriteTestResX(false, null, null)), 2295new TaskItem( Utilities.WriteTestResX(false, null, null)), 2298t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2336new TaskItem( Utilities.WriteTestText(null, null)), 2337new TaskItem( Utilities.WriteTestText(null, null)), 2338new TaskItem( Utilities.WriteTestText("goober", null)), 2339new TaskItem( Utilities.WriteTestText(null, null)), 2347t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2418t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2421t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2425t.OutputResources = new ITaskItem[] { new TaskItem("somefile.resources") }; 2464t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2467t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 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) }; 2617t.StateFile = new TaskItem(FileUtilities.GetTemporaryFile()); 2655t.Sources = new ITaskItem[] { new TaskItem(newTextFile) }; 2687t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2688t.OutputResources = new ITaskItem[] { new TaskItem(resxFile) }; 2719t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2720t.OutputResources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem("someother.resources") }; 2748t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 2751t.Sources = new ITaskItem[] { new TaskItem(textFile) }; 2788t.Sources = new ITaskItem[] { new TaskItem(resxFile), new TaskItem(resxFile2) }; 2834t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 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")) }; 3218new TaskItem(p2pReference), 3362t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.TempProjectDir, "MyStrings.resx")) }; 3366TaskItem reference = new TaskItem(@"bin\debug\ClassLibrary20.dll"); 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) }; 3545new TaskItem(resourcesFile), 3546new TaskItem(resourcesFile1) 3622t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 3627t.Sources = new ITaskItem[] { new TaskItem(resxFile) }; 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) }; 3924var referenceItem = new TaskItem(dll.Path); 4210t.StateFile = new TaskItem(Utilities.GetTempFileName(".cache")); 4214t.Sources = new ITaskItem[] { new TaskItem(textFile) };
Touch_Tests.cs (10)
193new TaskItem(myexisting_txt) 216new TaskItem(mynonexisting_txt) 239new TaskItem(mynonexisting_txt) 264new TaskItem(mynonexisting_txt) 285new TaskItem(myreadonly_txt) 308new TaskItem(myreadonly_txt) 324new TaskItem(nonexisting_txt) 349new TaskItem(mynonexisting_txt) 375new TaskItem(mynonexisting_txt) 399new TaskItem(myexisting_txt)
Unzip_Tests.cs (33)
40DestinationFolder = new TaskItem(source.Path), 43SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) } 68DestinationFolder = new TaskItem(destination.Path), 71SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 81DestinationFolder = new TaskItem(destination.Path), 84SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 96DestinationFolder = new TaskItem(destination.Path), 99SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 125DestinationFolder = new TaskItem(destination.Path), 128SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) } 147DestinationFolder = new TaskItem(String.Empty) 193DestinationFolder = new TaskItem(source.Path), 196SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) } 217DestinationFolder = new TaskItem(folder.Path), 218SourceFiles = new ITaskItem[] { new TaskItem(file.Path), } 237DestinationFolder = new TaskItem(folder.Path), 238SourceFiles = new ITaskItem[] { new TaskItem(Path.Combine(testEnvironment.DefaultTestDirectory.Path, "foo.zip")), } 262DestinationFolder = new TaskItem(destination.Path), 265SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 291DestinationFolder = new TaskItem(destination.Path), 294SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 324DestinationFolder = new TaskItem(destination.Path), 327SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 357DestinationFolder = new TaskItem(destination.Path), 360SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 385DestinationFolder = new TaskItem(destination.Path), 388SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 413DestinationFolder = new TaskItem(destination.Path), 416SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 441DestinationFolder = new TaskItem(destination.Path), 444SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) }, 475DestinationFolder = new TaskItem(destination.Path), 478SourceFiles = new ITaskItem[] { new TaskItem(zipArchive.Path) },
WriteCodeFragment_Tests.cs (76)
34task.OutputFile = new TaskItem("foo"); 50task.OutputFile = new TaskItem("foo"); 83task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 84task.OutputFile = new TaskItem("CombineFileDirectory.tmp"); 85task.OutputDirectory = new TaskItem(Path.GetTempPath()); 105TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 107TaskItem file = new TaskItem("CombineFileDirectory.tmp"); 110WriteCodeFragment task = CreateTask("c#", folder, file, new TaskItem[] { new TaskItem("aa") }); 128TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp")); 130WriteCodeFragment task = CreateTask("c#", null, file, new TaskItem[] { new TaskItem("aa") }); 152task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 155task.OutputFile = new TaskItem(fileName); 174task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 179task.OutputFile = new TaskItem(file); 180task.OutputDirectory = new TaskItem("c:\\"); 210task.OutputFile = new TaskItem(file); 237task.OutputFile = new TaskItem(file); 255task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 256task.OutputFile = new TaskItem("||//invalid||"); 273task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 274task.OutputDirectory = new TaskItem("||invalid||"); 294TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 297task.OutputFile = new TaskItem(file); 323TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 326task.OutputDirectory = new TaskItem(Path.GetTempPath()); 346TaskItem attribute1 = new TaskItem("AssemblyTrademarkAttribute"); 348TaskItem attribute2 = new TaskItem("System.AssemblyCultureAttribute"); 352task.OutputDirectory = new TaskItem(Path.GetTempPath()); 375TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 378task.OutputDirectory = new TaskItem(Path.GetTempPath()); 397TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 399WriteCodeFragment task = CreateTask("c#", folder, null, new TaskItem[] { new TaskItem("System.AssemblyTrademarkAttribute") }); 423TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 428task.OutputFile = new TaskItem(file); 454TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 459task.OutputDirectory = new TaskItem(Path.GetTempPath()); 477TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 481task.OutputDirectory = new TaskItem(Path.GetTempPath()); 500TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 505task.OutputDirectory = new TaskItem(Path.GetTempPath()); 524TaskItem attribute = new TaskItem("AssemblyMetadataAttribute"); 529task.OutputDirectory = new TaskItem(Path.GetTempPath()); 556TaskItem attribute = new TaskItem("System.Reflection.AssemblyDescriptionAttribute"); 561task.OutputDirectory = new TaskItem(Path.GetTempPath()); 592TaskItem attribute = new TaskItem("System.Reflection.AssemblyDescriptionAttribute"); 597task.OutputDirectory = new TaskItem(Path.GetTempPath()); 625TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 629task.OutputDirectory = new TaskItem(Path.GetTempPath()); 648TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 652task.OutputDirectory = new TaskItem(Path.GetTempPath()); 671TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 675task.OutputDirectory = new TaskItem(Path.GetTempPath()); 694TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 700task.OutputDirectory = new TaskItem(Path.GetTempPath()); 727TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 733task.OutputDirectory = new TaskItem(Path.GetTempPath()); 753TaskItem attribute = new("CLSCompliantAttribute"); 769TaskItem attribute = new TaskItem("TestAttribute"); 787TaskItem attribute = new TaskItem("TestAttribute"); 803TaskItem attribute = new("TestAttribute"); 818TaskItem attribute = new("TestAttribute"); 833TaskItem attribute = new("TestAttribute"); 848TaskItem attribute = new("TestAttribute"); 863TaskItem attribute = new("TestAttribute"); 878TaskItem attribute = new("TestAttribute"); 894TaskItem attribute = new("TestAttribute"); 910TaskItem attribute = new("TestAttribute"); 926TaskItem attribute = new("TestAttribute"); 942TaskItem attribute = new("CLSCompliantAttribute"); 957TaskItem attribute = new("System.Runtime.CompilerServices.InternalsVisibleToAttribute"); 974TaskItem attribute = new("System.Diagnostics.Contracts.ContractOptionAttribute"); 1002TaskItem attribute = new("System.Reflection.AssemblyFlagsAttribute"); 1034TaskItem attribute = new("System.ComponentModel.TypeConverterAttribute"); 1049TaskItem attribute = new("System.Diagnostics.DebuggableAttribute"); 1064TaskItem attribute = new("System.Diagnostics.Contracts.ContractOptionAttribute"); 1078return CreateTask(language, new TaskItem(Path.GetTempPath()), null, attributes);
WriteLinesToFile_Tests.cs (30)
37File = new TaskItem("c:\\" + Guid.NewGuid().ToString()), 38Lines = new TaskItem[] { new TaskItem("x") } 59File = new TaskItem(file), 60Lines = new ITaskItem[] { new TaskItem("\uBDEA") } 66File = new TaskItem(file) 78File = new TaskItem(file), 79Lines = new ITaskItem[] { new TaskItem("\uBDEA") }, 87File = new TaskItem(file) 110File = new TaskItem(file), 112Lines = new ITaskItem[] { new TaskItem("File contents1") } 118var r = new ReadLinesFromFile { File = new TaskItem(file) }; 131File = new TaskItem(file), 133Lines = new ITaskItem[] { new TaskItem("File contents1") } 143File = new TaskItem(file), 145Lines = new ITaskItem[] { new TaskItem("File contents2") } 169File = new TaskItem(file), 170Lines = new ITaskItem[] { new TaskItem($"{nameof(RedundantParametersAreLogged)} Test") }, 193File = new TaskItem(file), 195Lines = new ITaskItem[] { new TaskItem("File contents1") } 201var r = new ReadLinesFromFile { File = new TaskItem(file) }; 214File = new TaskItem(file), 216Lines = new ITaskItem[] { new TaskItem("File contents1") }, 227File = new TaskItem(file), 229Lines = new ITaskItem[] { new TaskItem("File contents2") }, 272File = new TaskItem(fileExists), 283File = new TaskItem(fileNotExists), 306File = new TaskItem(file), 307Lines = new ITaskItem[] { new TaskItem("WriteLinesToFileDoesCreateDirectory Test") } 337File = new TaskItem(file.Path), 363File = new TaskItem(file.Path),
XmlPeek_Tests.cs (10)
72p.XmlInputPath = new TaskItem(xmlInputPath); 95p.XmlInputPath = new TaskItem(xmlInputPath); 124p.XmlInputPath = new TaskItem(xmlInputPath); 153p.XmlInputPath = new TaskItem(xmlInputPath); 196p.XmlInputPath = new TaskItem(xmlInputPath); 235p.XmlInputPath = new TaskItem(xmlInputPath); 253p.XmlInputPath = new TaskItem(xmlInputPath); 269p.XmlInputPath = new TaskItem(xmlInputPath); 298p.XmlInputPath = new TaskItem(xmlInputPath); 354p.XmlInputPath = new TaskItem(xmlInputPath);
XmlPoke_Tests.cs (9)
186XmlInputPath = new TaskItem(xmlInputPath), 229p.XmlInputPath = new TaskItem(xmlInputPath); 233p.Value = new TaskItem("Nur"); 249p.XmlInputPath = new TaskItem(xmlInputPath); 251p.Value = new TaskItem("Nur"); 276p.XmlInputPath = new TaskItem(xmlInputPath); 279p.Value = new TaskItem("Nur"); 356XmlInputPath = new TaskItem(xmlInputPath), 359Value = value == null ? null : new TaskItem(value)
XslTransformation_Tests.cs (23)
769t.OutputPaths = new TaskItem[] { new TaskItem("k:\\folder\\file.xml") }; 865xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(testingDocsDir, "sila.xml")) }; 866xslPath = new TaskItem(Path.Combine(testingDocsDir, "fdl2proto.xsl")); 950var otherXmlPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString())); 960TaskItem[] outputMultiPaths = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 961new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), new TaskItem(outputPaths[0].ItemSpec + ".3.xml"), new TaskItem(outputPaths[0].ItemSpec + ".4.xml") }; 1003TaskItem[] outputMultiPathsShort = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1004new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), 1005new TaskItem(outputPaths[0].ItemSpec + ".3.xml") }; 1007TaskItem[] outputMultiPathsLong = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1008new TaskItem(outputPaths[0].ItemSpec + ".2.xml"), 1009new TaskItem(outputPaths[0].ItemSpec + ".3.xml"), 1010new TaskItem(outputPaths[0].ItemSpec + ".4.xml"), 1011new TaskItem(outputPaths[0].ItemSpec + ".5.xml") }; 1051var otherXslPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString() + ".xslt")); 1058var myXmlPath1 = new TaskItem(Path.Combine(dir, "a.xml")); 1065var myXmlPath2 = new TaskItem(Path.Combine(dir, "b.xml")); 1111xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "doc.xml")) }; 1112xslPath = new TaskItem(Path.Combine(dir, "doc.xslt")); 1113xslCompiledPath = new TaskItem(Path.Combine(dir, "doc.dll")); 1114outputPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "testout.xml")) };
ZipDirectory_Tests.cs (7)
37DestinationFile = new TaskItem(zipFilePath), 38SourceDirectory = new TaskItem(sourceFolder.Path) 78DestinationFile = new TaskItem(file.Path), 80SourceDirectory = new TaskItem(sourceFolder.Path) 117DestinationFile = new TaskItem(file.Path), 118SourceDirectory = new TaskItem(folder.Path) 133SourceDirectory = new TaskItem(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")))
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
93Utilities.TaskItem dummyTaskItem = new Utilities.TaskItem(); 522expectedItems.Add(new Utilities.TaskItem(singleExpectedItemStringTrimmed)); 534ITaskItem expectedItem = new Utilities.TaskItem(itemSpec);
Microsoft.Build.Utilities.Core (2)
TaskItem.cs (1)
67/// This constructor exists only so that the type is COM-creatable. Prefer <see cref="TaskItem(string, bool)"/>.
TrackedDependencies\TrackedDependencies.cs (1)
57expanded.Add(new TaskItem(item) { ItemSpec = file });
Microsoft.Build.Utilities.UnitTests (40)
CommandLineBuilder_Tests.cs (15)
84c.AppendSwitchIfNotNull("/animal:", new TaskItem("dog and pony")); 154c.AppendFileNamesIfNotNull(new[] { new TaskItem("-Mercury.cs"), null, new TaskItem("Venus.cs"), new TaskItem("-Earth.cs") }, " "); 212c.AppendSwitchIfNotNull("/switch:", new[] { new TaskItem("Mer cury.cs"), null, new TaskItem("Ve nus.cs"), new TaskItem("Ear th.cs") }, ","); 240c.AppendSwitchUnquotedIfNotNull("/switch:", new[] { new TaskItem("Mer cury.cs"), null, new TaskItem("Ve nus.cs"), new TaskItem("Ear th.cs") }, ","); 270c.AppendFileNameIfNotNull(new TaskItem("-Mercury.cs")); 271c.AppendFileNameIfNotNull(new TaskItem("Mercury.cs")); 272c.AppendFileNameIfNotNull(new TaskItem("Mer cury.cs")); 411c.AppendSwitchIfNotNull("/D", new TaskItem(@"foo-bar")); 422c.AppendSwitchUnquotedIfNotNull("/D", new TaskItem(@"foo-bar"));
TaskItem_Tests.cs (25)
28TaskItem from = new TaskItem(); 33TaskItem to = new TaskItem((ITaskItem)from); 54TaskItem from = new TaskItem(); 60TaskItem to = new TaskItem(); 80TaskItem taskItem = new TaskItem(item); 89TaskItem taskItem = new TaskItem("x"); 121TaskItem t = new TaskItem("bamboo.baz", h); 134TaskItem t = new TaskItem("foo"); 154TaskItem t = new TaskItem("foor"); 171TaskItem t = new TaskItem("foo"); 183TaskItem from = new TaskItem(); 194TaskItem from = new TaskItem(); 202TaskItem from = new TaskItem(); 210TaskItem from = new TaskItem(); 218TaskItem from = new TaskItem(); 226TaskItem from = new TaskItem(); 234TaskItem from = new TaskItem(); 242TaskItem from = new TaskItem(); 251TaskItem from = new TaskItem(); 259TaskItem from = new TaskItem(); 285TaskItem item = new TaskItem("foo"); 297TaskItem item = new TaskItem("foo"); 311TaskItem item = new TaskItem("bar", (IDictionary)metadata); 322TaskItem item = new TaskItem("bar"); 336TaskItem item = new TaskItem("foo");
Microsoft.DotNet.Arcade.Sdk (1)
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
106return new TaskItem(
Microsoft.DotNet.Arcade.Sdk.Tests (13)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (4)
27new TaskItem(NormalizePath(@"C:\temp\A\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://A-git/commitsha/*" } }), 28new TaskItem(NormalizePath(@"C:\temp\A\B\")), 29new TaskItem(NormalizePath(@"C:\temp\A\B\C\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://C-git/commitsha/*?var=value" } }), 30new TaskItem(NormalizePath(@"C:\temp\A\B\C\D\")),
GetAssemblyFullNameTests.cs (4)
24new TaskItem("Item", new Dictionary<string, string> { { "SomePath", objectAssembly.Location } }), 25new TaskItem("Item", new Dictionary<string, string> { { "SomePath", thisAssembly.Location } }), 52new TaskItem(objectAssembly.Location), 53new TaskItem(thisAssembly.Location),
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }), 22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }), 23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }), 24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }), 25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
248PushToLocalStorageOrAzDO(ItemType.AssetManifest, new TaskItem(AssetManifestPath));
Microsoft.DotNet.Build.Tasks.Feed.Tests (53)
BuildModelFactoryTests.cs (36)
103new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 108new TaskItem(bopSnupkg, new Dictionary<string, string> 115new TaskItem(zipArtifact, new Dictionary<string, string> 120new TaskItem(localPackagePath, new Dictionary<string, string>() 188new TaskItem(localPackagePath, new Dictionary<string, string>() 227new TaskItem(zipArtifact, new Dictionary<string, string> 251new TaskItem(localPackagePath, new Dictionary<string, string> 279new TaskItem(localPackagePath, new Dictionary<string, string> 326new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 331new TaskItem(bopSnupkg, new Dictionary<string, string> 338new TaskItem(zipArtifact, new Dictionary<string, string> 343new TaskItem(localPackagePath, new Dictionary<string, string>() 353new TaskItem(localPackagePath), 354new TaskItem(zipArtifact) 359new TaskItem(localPackagePath, new Dictionary<string, string>() 368new TaskItem(localPackagePath, new Dictionary<string, string>() 373new TaskItem("Microsoft.DiaSymReader.dll", new Dictionary<string, string>() 379new TaskItem("Microsoft.DiaSymReader.dll", new Dictionary<string, string>() 389new TaskItem("MyCert", new Dictionary<string, string>() 393new TaskItem("MyOtherCert", new Dictionary<string, string>() 401new TaskItem(".dll", new Dictionary<string, string>() 562new TaskItem(localPackagePath, new Dictionary<string, string>() 593new TaskItem(localPackagePath, new Dictionary<string, string>()), 594new TaskItem(zipPath, new Dictionary<string, string>() 602new TaskItem(localPackagePath), 603new TaskItem(zipPath) 608new TaskItem(localPackagePath, new Dictionary<string, string>() 617new TaskItem(localPackagePath, new Dictionary<string, string>() 625new TaskItem("MyCert", new Dictionary<string, string>() 629new TaskItem("MyOtherCert", new Dictionary<string, string>() 637new TaskItem(".dll", new Dictionary<string, string>() 703new TaskItem(localPackagePath, new Dictionary<string, string>()), 704new TaskItem(zipPath, new Dictionary<string, string>() 712new TaskItem(bogusNupkgToSign), 713new TaskItem(Path.GetFileName(zipPath)), 714new TaskItem(Path.GetFileName(localPackagePath)),
PushToBuildStorageTests.cs (14)
33new TaskItem(PACKAGE_A, new Dictionary<string, string> 39new TaskItem(PACKAGE_B, new Dictionary<string, string> 45new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string> 458new TaskItem(".dll", new Dictionary<string, string> 462new TaskItem(".nupkg", new Dictionary<string, string> 466new TaskItem(".zip", new Dictionary<string, string> 473new TaskItem("Best.dll", new Dictionary<string, string> 477new TaskItem("Worst.dll", new Dictionary<string, string> 484new TaskItem("BestCert", new Dictionary<string, string> 488new TaskItem("WorstCert", new Dictionary<string, string> 495new TaskItem("VeryCoolStrongName", new Dictionary<string, string> 500new TaskItem("VeryTrashStrongName", new Dictionary<string, string> 508new TaskItem(PACKAGE_A), 509new TaskItem(PACKAGE_B),
SetupTargetFeedConfigV3Tests.cs (3)
60var installersKey = new TaskItem(PublishingConstants.FeedStagingForInstallers); 62var checksumsKey = new TaskItem(PublishingConstants.FeedStagingForChecksums); 64var azureDevops = new TaskItem("https://pkgs.dev.azure.com/dnceng");
Microsoft.DotNet.Build.Tasks.Packaging (22)
ApplyMetaPackages.cs (1)
132var item = new TaskItem(id);
ApplyPreReleaseSuffix.cs (1)
93TaskItem updatedPackage = new TaskItem(originalPackage);
CreateTrimDependencyGroups.cs (2)
131var item = new TaskItem(PlaceHolderDependency); 139var item = new TaskItem(dependency.Item);
GetApplicableAssetsFromPackageReports.cs (1)
100var item = new TaskItem(asset.LocalPath);
GetApplicableAssetsFromPackages.cs (2)
200return SetPackageMetadata(new TaskItem(packageItem.OriginalItem), packageItem); 210var pdbItem = new TaskItem(Path.ChangeExtension(packageItem.OriginalItem.ItemSpec, ".pdb"));
GetAssemblyReferences.cs (2)
62TaskItem referenceItem = new TaskItem(reader.GetString(reference.Name)); 74TaskItem nativeLib = new TaskItem(moduleName);
GetLastStablePackage.cs (1)
164var item = new TaskItem(originalItem);
GetLayoutFiles.cs (2)
127var item = new TaskItem(source); 141var symbolItem = new TaskItem(symbolSource);
GetPackageDestination.cs (1)
167var item = new TaskItem(path);
GetPackageFromModule.cs (1)
67var packageReferenced = new TaskItem(packageId);
GetSupportedPackagesFromPackageReports.cs (1)
40var supportedPackage = new TaskItem(packageId);
HarvestPackage.cs (2)
233var supportedFramework = new TaskItem(framework.ItemSpec); 416var item = new TaskItem(packageFile);
PackageReport.cs (1)
167var item = new TaskItem(Project);
PromoteDependencies.cs (1)
97var copiedDepenedency = new TaskItem(dependency.OriginalItem);
SplitDependenciesBySupport.cs (1)
97var newItem = new TaskItem(OriginalItem);
SplitReferences.cs (1)
93var emptyItem = new TaskItem("_._");
ValidatePackage.cs (1)
658ITaskItem item = new TaskItem(Framework.ToString());
Microsoft.DotNet.Build.Tasks.Packaging.Tests (12)
ApplyBaseLineTests.cs (2)
22_packageIndexes = new[] { new TaskItem("packageIndex.json") }; 141TaskItem item = new TaskItem(name);
CreateTrimDependencyGroupsTests.cs (3)
33packageIndexes = new[] { new TaskItem(packageIndexPath) }; 407TaskItem item = new TaskItem(sourcePath); 414TaskItem item = new TaskItem(sourcePath);
GenerateNuSpecAndPackTests.cs (2)
47var nuspecs = new[] { new TaskItem(nuspec) }; 66var item = new TaskItem(id);
GetLastStablePackageTests.cs (2)
22_packageIndexes = new[] { new TaskItem("packageIndex.json") }; 214TaskItem item = new TaskItem(name);
HarvestPackageTests.cs (2)
55var item = new TaskItem(tfm); 173var item = new TaskItem(packageId);
ValidateHarvestVersionIsLatestForReleaseTests.cs (1)
18private ITaskItem[] _testPackageReportPaths = new [] { new TaskItem("dummyReport.json") };
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
82TaskItem itemWithProperties = new(project);
ChooseBestTargetFrameworksTask.cs (1)
40TaskItem item = new(bestTargetFramework);
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (6)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (6)
21new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }), 22new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }), 23new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character 24new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character 25new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped 52new TaskItem("SomeValue"),
Microsoft.DotNet.Build.Tasks.Workloads (7)
CreateVisualStudioWorkload.wix.cs (4)
366ITaskItem swixProjectItem = new TaskItem(swixProj); 415ITaskItem swixProjectItem = new TaskItem(swixProj); 444ITaskItem swixProjectItem = new TaskItem(swixProject.Create()); 471ITaskItem swixProjectItem = new TaskItem(swixComponentProject.Create());
CreateVisualStudioWorkloadSet.wix.cs (1)
87ITaskItem swixProjectItem = new TaskItem(swixProj);
Msi\MsiBase.wix.cs (1)
230TaskItem msiItem = new TaskItem(light.OutputFile);
Swix\PackageGroupSwixProject.wix.cs (1)
81ITaskItem swixProjectItem = new TaskItem(swixPackageGroupProject.Create());
Microsoft.DotNet.Build.Tasks.Workloads.Tests (26)
CreateVisualStudioWorkloadSetTests.cs (1)
31new TaskItem(Path.Combine(TestAssetsPath, "microsoft.net.workloads.9.0.100.9.0.100-baseline.1.23464.1.nupkg"))
CreateVisualStudioWorkloadTests.cs (14)
35new TaskItem(Path.Combine(TestBase.TestAssetsPath, "microsoft.net.workload.emscripten.manifest-6.0.200.6.0.4.nupkg")) 41new TaskItem("microsoft-net-sdk-emscripten") 49new TaskItem("Microsoft.NET.Workload.Emscripten").WithMetadata("Replacement", "Emscripten"), 50new TaskItem("microsoft.netcore.app.runtime").WithMetadata("Replacement", "Microsoft"), 51new TaskItem("Microsoft.NETCore.App.Runtime").WithMetadata("Replacement", "Microsoft"), 52new TaskItem("microsoft.net.runtime").WithMetadata("Replacement", "Microsoft"), 53new TaskItem("Microsoft.NET.Runtime").WithMetadata("Replacement", "Microsoft") 171new TaskItem(Path.Combine(TestBase.TestAssetsPath, "microsoft.net.workload.emscripten.manifest-6.0.200.6.0.4.nupkg")) 178new TaskItem("microsoft-net-sdk-emscripten") 186new TaskItem("Microsoft.NET.Workload.Emscripten").WithMetadata("Replacement", "Emscripten"), 187new TaskItem("microsoft.netcore.app.runtime").WithMetadata("Replacement", "Microsoft"), 188new TaskItem("Microsoft.NETCore.App.Runtime").WithMetadata("Replacement", "Microsoft"), 189new TaskItem("microsoft.net.runtime").WithMetadata("Replacement", "Microsoft"), 190new TaskItem("Microsoft.NET.Runtime").WithMetadata("Replacement", "Microsoft")
MsiTests.cs (2)
23TaskItem packageItem = new(path); 84TaskItem packageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg"));
PackageTests.cs (2)
22TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.300.6.0.22.nupkg")); 48ITaskItem workloadSetPackageItem = new TaskItem(Path.Combine(TestAssetsPath, "microsoft.net.workloads.9.0.100.9.0.100-baseline.1.23464.1.nupkg"));
SwixComponentTests.cs (4)
46new TaskItem("microsoft-net-sdk-blazorwebassembly-aot").WithMetadata(Metadata.Version, "4.5.6") 76new TaskItem("microsoft-net-sdk-blazorwebassembly-aot").WithMetadata(Metadata.Version, "4.5.6") 105new TaskItem("Microsoft.NET.Runtime", new Dictionary<string, string> { { Metadata.Replacement, "MSFT" } }) 147new TaskItem("microsoft-net-sdk-blazorwebassembly-aot", new Dictionary<string, string> {
SwixPackageGroupTests.cs (2)
18new TaskItem("Microsoft.NET.Workload.").WithMetadata("Replacement", ""), 26TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, manifestPackageFilename));
SwixPackageTests.cs (1)
23TaskItem msiItem = new TaskItem("Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100.6.0.0-preview.7.21377.12-x64.msi");
Microsoft.DotNet.Helix.Sdk (5)
CreateXUnitWorkItems.cs (1)
148var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
FindDotNetCliPackage.cs (2)
84feeds.Add(new MSBuild.TaskItem("https://dotnetcli.blob.core.windows.net/dotnet")); 85feeds.Add(new MSBuild.TaskItem("https://dotnetbuilds.blob.core.windows.net/public"));
GetHelixWorkItems.cs (1)
68ITaskItem2 workItem = new TaskItem(workItemName);
XharnessTaskBase.cs (1)
112return new(workItemName, new Dictionary<string, string>()
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
92new TaskItem("https://fakeazureaccount.blob.core.windows.net", metadata) 143new TaskItem("https://fakeazureaccount.blob.core.windows.net", metadata)
Microsoft.DotNet.PackageTesting (1)
GetCompatiblePackageTargetFrameworks.cs (1)
113TaskItem supportedPackage = new(packageId);
Microsoft.DotNet.SharedFramework.Sdk (3)
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
38var item = new TaskItem(entry.Name);
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
85var item = new TaskItem(entry.Name);
src\GenerateSharedFrameworkDepsFile.cs (1)
120GeneratedDepsFile = new TaskItem(depsFilePath);
Microsoft.DotNet.SignTool.Tests (98)
SignToolTests.cs (98)
75new TaskItem(".js", new Dictionary<string, string> { 79new TaskItem(".jar", new Dictionary<string, string> { 83new TaskItem(".ps1", new Dictionary<string, string> { 87new TaskItem(".psd1", new Dictionary<string, string> { 91new TaskItem(".psm1", new Dictionary<string, string> { 95new TaskItem(".psc1", new Dictionary<string, string> { 99new TaskItem(".dylib", new Dictionary<string, string> { 103new TaskItem(".deb", new Dictionary<string, string> { 107new TaskItem(".dll", new Dictionary<string, string> { 111new TaskItem(".exe", new Dictionary<string, string> { 115new TaskItem(".zip", new Dictionary<string, string> { 119new TaskItem(".tgz", new Dictionary<string, string> { 123new TaskItem(".nupkg", new Dictionary<string, string> { 127new TaskItem(".vsix", new Dictionary<string, string> { 131new TaskItem(".js", new Dictionary<string, string> { 135new TaskItem(".jar", new Dictionary<string, string> { 139new TaskItem(".ps1", new Dictionary<string, string> { 143new TaskItem(".psd1", new Dictionary<string, string> { 147new TaskItem(".dll", new Dictionary<string, string> { 151new TaskItem(".nupkg", new Dictionary<string, string> { 155new TaskItem(".vsix", new Dictionary<string, string> { 447new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 485new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg")) 521new TaskItem(GetResourcePath(fileToTest), new Dictionary<string, string> 557new TaskItem(GetResourcePath(GetResourcePath("ContainerOne.1.0.0.nupkg"))) 599new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 642new TaskItem(GetResourcePath("EmptyPKT.dll")) 669new TaskItem(GetResourcePath("CoreLibCrossARM.dll"), new Dictionary<string, string> 673new TaskItem(GetResourcePath("AspNetCoreCrossLib.dll"), new Dictionary<string, string> 715new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 740new TaskItem(GetResourcePath("CustomTargetFrameworkAttribute.dll"), new Dictionary<string, string> 768new TaskItem(GetResourcePath("EmptyPKT.dll")) 791new TaskItem(GetResourcePath("PackageWithWix.nupkg"), new Dictionary<string, string> 795new TaskItem(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), new Dictionary<string, string> 848new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 929new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 1015new TaskItem(GetResourcePath("test.zip")) 1067new TaskItem(GetResourcePath("test.tgz")) 1119new TaskItem(GetResourcePath("test.symbols.nupkg")) 1171new TaskItem(GetResourcePath("test.symbols.nupkg")) 1224new TaskItem(GetResourcePath("test.deb")) 1254new TaskItem(GetResourcePath("SignedScript.ps1")), 1255new TaskItem(GetResourcePath("UnsignedScript.ps1")) 1322new TaskItem(GetResourcePath("MsiBootstrapper.exe")), 1323new TaskItem(GetResourcePath("MsiBootstrapper.exe.wixpack.zip")) 1369new TaskItem(GetResourcePath("MsiSetup.msi"), new Dictionary<string, string> 1373new TaskItem(GetResourcePath("MsiSetup.msi.wixpack.zip"), new Dictionary<string, string> 1442new TaskItem(GetResourcePath("test.mpack")) 1476new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1480new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1543new TaskItem(GetResourcePath("TestSpaces.vsix"), new Dictionary<string, string> 1547new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1610new TaskItem(GetResourcePath("PackageWithRelationships.vsix")), 1611new TaskItem(GetResourcePath("test.vsix")) 1667new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), new Dictionary<string, string> 1671new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1675new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), new Dictionary<string, string> 1738new TaskItem(GetResourcePath("PackageWithRelationships.vsix")) 1777new TaskItem(GetResourcePath("ZeroLengthPythonFile.py")) 1795new TaskItem(CreateTestResource("dynalib.dylib"), new Dictionary<string, string> 1799new TaskItem(CreateTestResource("javascript.js"), new Dictionary<string, string> 1803new TaskItem(CreateTestResource("javatest.jar"), new Dictionary<string, string> 1807new TaskItem(CreateTestResource("power.ps1"), new Dictionary<string, string> 1811new TaskItem(CreateTestResource("powerc.psc1"), new Dictionary<string, string> 1815new TaskItem(CreateTestResource("powerd.psd1"), new Dictionary<string, string> 1819new TaskItem(CreateTestResource("powerm.psm1"), new Dictionary<string, string> 1849fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1854fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1868fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1873fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1876fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1890fileExtensionSignInfo.Add(new TaskItem(".tar.gz", new Dictionary<string, string> 1912new TaskItem(GetResourcePath("SameFiles1.zip"), new Dictionary<string, string> 1916new TaskItem(GetResourcePath("SameFiles2.zip"), new Dictionary<string, string> 1948new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 1953new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 1961new TaskItem("ArcadeStrongTest", new Dictionary<string, string> 1972new TaskItem("ProjectOne.dll", new Dictionary<string, string> 1979new TaskItem("SignedLibrary.dll", new Dictionary<string, string> 1991new TaskItem("DualSignCertificate", new Dictionary<string, string> 2058new TaskItem(GetResourcePath("SignedLibrary.dll")), 2063new TaskItem("DualCertificateName"), 2086new TaskItem( GetResourcePath("PackageWithZip.nupkg"), new Dictionary<string, string> 2121new TaskItem( GetResourcePath("NestedZip.zip")) 2156new TaskItem(CreateTestResource("test.js"), new Dictionary<string, string> 2160new TaskItem(CreateTestResource("test.jar"), new Dictionary<string, string> 2164new TaskItem(CreateTestResource("test.ps1"), new Dictionary<string, string> 2168new TaskItem(CreateTestResource("test.psd1"), new Dictionary<string, string> 2172new TaskItem(CreateTestResource("test.psm1"), new Dictionary<string, string> 2176new TaskItem(CreateTestResource("test.psc1"), new Dictionary<string, string> 2180new TaskItem(CreateTestResource("test.dylib"), new Dictionary<string, string> 2184new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 2188new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 2192new TaskItem(GetResourcePath("Simple.nupkg"), new Dictionary<string, string> 2198new TaskItem(GetResourcePath("Simple.symbols.nupkg"), new Dictionary<string, string> 2279new TaskItem(inputFilePath) 2315new TaskItem(inputFilePath) 2336new TaskItem(GetResourcePath("SPCNoPKT.dll"), new Dictionary<string, string>
Microsoft.DotNet.SourceBuild.Tasks (1)
src\ReadNuGetPackageInfos.cs (1)
32return new TaskItem(
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
90generatedFiles.Add(new TaskItem(file.FullName));
Microsoft.DotNet.XliffTasks (3)
Tasks\GatherTranslatedSource.cs (1)
30TaskItem output = new(xlf) { ItemSpec = translatedFullPath };
Tasks\GatherXlf.cs (1)
39TaskItem xlf = new(source) { ItemSpec = xlfPath };
Tasks\TransformTemplates.cs (1)
118TaskItem item = new(cultureSpecificTemplateFile);
Microsoft.Extensions.ApiDescription.Client (2)
GetOpenApiReferenceMetadata.cs (1)
70var newItem = new TaskItem(item);
MetadataSerializer.cs (1)
95var item = new TaskItem();
Microsoft.Extensions.ApiDescription.Client.Tests (17)
GetOpenApiReferenceMetadataTest.cs (13)
25Inputs = new[] { new TaskItem(identity, inputMetadata) }, 83Inputs = new[] { new TaskItem(identity, inputMetadata) }, 141Inputs = new[] { new TaskItem(identity, inputMetadata) }, 199Inputs = new[] { new TaskItem(identity, inputMetadata) }, 266new TaskItem(identity1, inputMetadata1), 267new TaskItem(identity2, inputMetadata2), 312new TaskItem(identity, inputMetadata1), 313new TaskItem(identity, inputMetadata2), 349Inputs = new[] { new TaskItem(identity, inputMetadata) }, 412Inputs = new[] { new TaskItem(identity, inputMetadata) }, 476new TaskItem(identity12, inputMetadata1), 477new TaskItem(identity12, inputMetadata2), 478new TaskItem(identity3, inputMetadata3),
MetadataSerializerTest.cs (4)
75var item = new TaskItem("My Identity"); 187var input = new TaskItem(identity, metadata); 208var input = new TaskItem(identity, metadata); 224var input = new TaskItem(escapedValue, metadata);
Microsoft.Maui.Resizetizer (3)
GeneratePackageAppxManifest.cs (1)
59 GeneratedAppxManifest = new TaskItem(filename);
GenerateTizenManifest.cs (1)
71 GeneratedTizenManifest = new TaskItem(targetFilename);
ResizetizeImages.cs (1)
118 copiedResources.Add(new TaskItem(itemSpec, attr));
PresentationBuildTasks (9)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (1)
301ITaskItem outputItem = new TaskItem
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (7)
1334csFileList.Add(new TaskItem(ContentCodeFile)); 1389csFileList.Add(new TaskItem(InternalTypeHelperFile)); 1429allGeneratedFiles.Add(new TaskItem(CompilerState.CacheFilePath)); 1433allGeneratedFiles.Add(new TaskItem(CompilerLocalReference.CacheFilePath)); 1475codeItem = new TaskItem(); 1580bamlItem = new TaskItem(); 1693tiLoc = new TaskItem(locFile);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
793bamlItem = new TaskItem();
372 references to TaskItem
Crossgen2Tasks (7)
PrepareForReadyToRunCompilation.cs (7)
177TaskItem r2rCompilationEntry = new TaskItem(file); 194TaskItem r2rFileToPublish = new TaskItem(file); 209TaskItem pdbCompilationEntry = new TaskItem(file); 218TaskItem r2rSymbolsFileToPublish = new TaskItem(file); 239TaskItem r2rCompilationEntry = new TaskItem(MainAssembly); 267TaskItem r2rSymbolsFileToPublish = new TaskItem(MainAssembly); 283TaskItem compositeR2RFileToPublish = new TaskItem(MainAssembly);
Microsoft.Build.BuildCheck.UnitTests (2)
TaskInvocationAnalysisDataTests.cs (2)
167var item1 = new TaskItem("item1"); 177var item2 = new TaskItem("item2");
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectItemInstance_Tests.cs (1)
520Microsoft.Build.Utilities.TaskItem taskItem = new Microsoft.Build.Utilities.TaskItem(item);
Microsoft.Build.Engine.UnitTests (1)
TaskParameter_Tests.cs (1)
216TaskItem baseItem = new TaskItem("foo");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (7)
GenerateMSBuildEditorConfigTests.cs (7)
233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } }); 311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
Microsoft.Build.Tasks.Core (27)
AssemblyDependency\ReferenceTable.cs (1)
2675TaskItem referenceItem = new TaskItem();
AssemblyDependency\ResolveAssemblyReference.cs (14)
170private ITaskItem[] _assemblyFiles = Array.Empty<TaskItem>(); 171private ITaskItem[] _assemblyNames = Array.Empty<TaskItem>(); 172private ITaskItem[] _installedAssemblyTables = Array.Empty<TaskItem>(); 173private ITaskItem[] _installedAssemblySubsetTables = Array.Empty<TaskItem>(); 174private ITaskItem[] _fullFrameworkAssemblyTables = Array.Empty<TaskItem>(); 175private ITaskItem[] _resolvedSDKReferences = Array.Empty<TaskItem>(); 188private ITaskItem[] _resolvedFiles = Array.Empty<TaskItem>(); 189private ITaskItem[] _resolvedDependencyFiles = Array.Empty<TaskItem>(); 190private ITaskItem[] _relatedFiles = Array.Empty<TaskItem>(); 191private ITaskItem[] _satelliteFiles = Array.Empty<TaskItem>(); 192private ITaskItem[] _serializationAssemblyFiles = Array.Empty<TaskItem>(); 193private ITaskItem[] _scatterFiles = Array.Empty<TaskItem>(); 194private ITaskItem[] _copyLocalFiles = Array.Empty<TaskItem>(); 195private ITaskItem[] _suggestedRedirects = Array.Empty<TaskItem>();
CombinePath.cs (1)
66var combinedPath = new TaskItem(path);
Copy.cs (1)
782var item = new TaskItem(EscapingUtilities.Escape(sourceFile));
CreateItem.cs (1)
185TaskItem newItem = new TaskItem(i) { ItemSpec = file };
GetAssembliesMetadata.cs (2)
94private TaskItem CreateItemWithMetadata(AssemblyAttributes attributes) 96TaskItem referenceItem = new()
GetInstalledSDKLocations.cs (1)
167var item = new TaskItem(sdk.Value.Item1);
GetSDKReferenceFiles.cs (3)
455var outputItem = new TaskItem(reference.AssemblyLocation); 518var item = new TaskItem(xmlFile); 538var outputItem = new TaskItem(file.RedistFile);
ResolveManifestFiles.cs (1)
667var outputEntryPoint = new TaskItem(entryPoint.ItemSpec);
ResolveProjectBase.cs (1)
180var item = new TaskItem(path);
SetRidAgnosticValueForProjects.cs (1)
30var updatedItem = new TaskItem(p);
Microsoft.Build.Tasks.UnitTests (214)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
3034ITaskItem[] loadModeResolvedFiles = Array.Empty<TaskItem>(); 3157t.InstalledAssemblyTables = new TaskItem[] { new TaskItem(redistFile) };
CommandLineBuilderExtension_Tests.cs (3)
31TaskItem i = new TaskItem(); 72TaskItem i = new TaskItem(); 77TaskItem j = new TaskItem();
Copy_Tests.cs (2)
2967sourceFiles = new TaskItem[] { new TaskItem(sourceFile2.Path) }; 2988destinationFiles = new TaskItem[] { new TaskItem(
CreateItem_Tests.cs (2)
248TaskItem item = new TaskItem("MyFile.txt"); 271TaskItem item = new TaskItem("MyFile.txt");
FindInvalidProjectReferences_Tests.cs (1)
40t.ProjectReferences = new TaskItem[] { new TaskItem("proj1.proj", proj1), new TaskItem("proj2.proj", proj2), new TaskItem("proj3.proj", proj3), new TaskItem("proj4.proj", proj4) };
GetCompatiblePlatform_Tests.cs (24)
27TaskItem projectReference = new TaskItem("foo.bar"); 35AnnotatedProjects = new TaskItem[] { projectReference } 48TaskItem projectReference = new TaskItem("foo.bar"); 58AnnotatedProjects = new TaskItem[] { projectReference } 71TaskItem projectReference = new TaskItem("foo.bar"); 82AnnotatedProjects = new TaskItem[] { projectReference } 95TaskItem projectReference = new TaskItem("foo.bar"); 103AnnotatedProjects = new TaskItem[] { projectReference } 116TaskItem projectReference = new TaskItem("foo.bar"); 125AnnotatedProjects = new TaskItem[] { projectReference } 138TaskItem projectReference = new TaskItem("foo.bar"); 147AnnotatedProjects = new TaskItem[] { projectReference } 160TaskItem projectReference = new TaskItem("foo.bar"); 168AnnotatedProjects = new TaskItem[] { projectReference }, 182TaskItem projectReference = new TaskItem("foo.bar"); 191AnnotatedProjects = new TaskItem[] { projectReference }, 206TaskItem projectReference = new TaskItem("foo.bar"); 214AnnotatedProjects = new TaskItem[] { projectReference }, 231TaskItem projectReference = new TaskItem("foo.bar"); 240AnnotatedProjects = new TaskItem[] { projectReference }, 258TaskItem projectReference = new TaskItem("foo.bar"); 266AnnotatedProjects = new TaskItem[] { projectReference } 280TaskItem projectReference = new TaskItem("foo.bar"); 289AnnotatedProjects = new TaskItem[] { projectReference },
RemoveDir_Tests.cs (4)
52List<TaskItem> list = new List<TaskItem>(); 101List<TaskItem> list = new List<TaskItem>();
ResolveNonMSBuildProjectOutput_Tests.cs (1)
30TaskItem reference = new TaskItem(itemSpec);
ResolveSDKReference_Tests.cs (5)
1201t.References = Array.Empty<TaskItem>(); 1237TaskItem referenceItem = new TaskItem("RandomWinMD"); 1239t.References = new TaskItem[] { referenceItem }; 1273t.References = new TaskItem[] { referenceItem }; 1332t.References = Array.Empty<TaskItem>();
ResourceHandling\GenerateResource_Tests.cs (4)
456TaskItem stateFile = new TaskItem(_env.GetTempFile(".cache").Path); 2145t.References = new TaskItem[] { new TaskItem("INVALID") }; 3366TaskItem reference = new TaskItem(@"bin\debug\ClassLibrary20.dll"); 3924var referenceItem = new TaskItem(dll.Path);
WriteCodeFragment_Tests.cs (69)
83task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 105TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 107TaskItem file = new TaskItem("CombineFileDirectory.tmp"); 110WriteCodeFragment task = CreateTask("c#", folder, file, new TaskItem[] { new TaskItem("aa") }); 128TaskItem file = new TaskItem(Path.Combine(env.CreateFolder(folderPath: null, createFolder: false).Path, "File.tmp")); 130WriteCodeFragment task = CreateTask("c#", null, file, new TaskItem[] { new TaskItem("aa") }); 152task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 174task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 209task.AssemblyAttributes = Array.Empty<TaskItem>(); // MSBuild sets an empty array 255task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 273task.AssemblyAttributes = new TaskItem[] { new TaskItem("aa") }; 294TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 295task.AssemblyAttributes = new TaskItem[] { attribute }; 323TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 324task.AssemblyAttributes = new TaskItem[] { attribute }; 346TaskItem attribute1 = new TaskItem("AssemblyTrademarkAttribute"); 348TaskItem attribute2 = new TaskItem("System.AssemblyCultureAttribute"); 350task.AssemblyAttributes = new TaskItem[] { attribute1, attribute2 }; 375TaskItem attribute = new TaskItem("System.AssemblyTrademarkAttribute"); 376task.AssemblyAttributes = new TaskItem[] { attribute }; 397TaskItem folder = new TaskItem(env.CreateFolder(folderPath: null, createFolder: false).Path); 399WriteCodeFragment task = CreateTask("c#", folder, null, new TaskItem[] { new TaskItem("System.AssemblyTrademarkAttribute") }); 423TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 426task.AssemblyAttributes = new TaskItem[] { attribute }; 454TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 457task.AssemblyAttributes = new TaskItem[] { attribute }; 477TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 479task.AssemblyAttributes = new TaskItem[] { attribute }; 500TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 503task.AssemblyAttributes = new TaskItem[] { attribute }; 524TaskItem attribute = new TaskItem("AssemblyMetadataAttribute"); 527task.AssemblyAttributes = new TaskItem[] { attribute }; 556TaskItem attribute = new TaskItem("System.Reflection.AssemblyDescriptionAttribute"); 559task.AssemblyAttributes = new TaskItem[] { attribute }; 592TaskItem attribute = new TaskItem("System.Reflection.AssemblyDescriptionAttribute"); 595task.AssemblyAttributes = new TaskItem[] { attribute }; 625TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 627task.AssemblyAttributes = new TaskItem[] { attribute }; 648TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 650task.AssemblyAttributes = new TaskItem[] { attribute }; 671TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 673task.AssemblyAttributes = new TaskItem[] { attribute }; 694TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 698task.AssemblyAttributes = new TaskItem[] { attribute }; 727TaskItem attribute = new TaskItem("AssemblyTrademarkAttribute"); 731task.AssemblyAttributes = new TaskItem[] { attribute }; 753TaskItem attribute = new("CLSCompliantAttribute"); 769TaskItem attribute = new TaskItem("TestAttribute"); 787TaskItem attribute = new TaskItem("TestAttribute"); 803TaskItem attribute = new("TestAttribute"); 818TaskItem attribute = new("TestAttribute"); 833TaskItem attribute = new("TestAttribute"); 848TaskItem attribute = new("TestAttribute"); 863TaskItem attribute = new("TestAttribute"); 878TaskItem attribute = new("TestAttribute"); 894TaskItem attribute = new("TestAttribute"); 910TaskItem attribute = new("TestAttribute"); 926TaskItem attribute = new("TestAttribute"); 942TaskItem attribute = new("CLSCompliantAttribute"); 957TaskItem attribute = new("System.Runtime.CompilerServices.InternalsVisibleToAttribute"); 974TaskItem attribute = new("System.Diagnostics.Contracts.ContractOptionAttribute"); 1002TaskItem attribute = new("System.Reflection.AssemblyFlagsAttribute"); 1034TaskItem attribute = new("System.ComponentModel.TypeConverterAttribute"); 1049TaskItem attribute = new("System.Diagnostics.DebuggableAttribute"); 1064TaskItem attribute = new("System.Diagnostics.Contracts.ContractOptionAttribute"); 1076private WriteCodeFragment CreateTask(string language, params TaskItem[] attributes) 1081private WriteCodeFragment CreateTask(string language, TaskItem outputDirectory, TaskItem outputFile, params TaskItem[] attributes)
WriteLinesToFile_Tests.cs (1)
38Lines = new TaskItem[] { new TaskItem("x") }
XmlPeek_Tests.cs (1)
359Assert.Equal(["abcdefg", "a%24%28d%29fg", "a%24%28d.f%29"], p.Result.Cast<TaskItem>().Select(x => x.ToString()));
XslTransformation_Tests.cs (95)
101TaskItem[] outputPaths; 126t.XmlInputPaths = (TaskItem[])xmlValue; 139t.XslInputPath = (TaskItem)xslValue; 142t.XslCompiledDllPath = (TaskItem)xslValue; 163TaskItem[] xmlPaths; 164TaskItem xslPath; 165TaskItem xslCompiledPath; 166TaskItem[] outputPaths; 187t.XmlInputPaths = (TaskItem[])xmlValue; 209TaskItem[] xmlPaths; 210TaskItem xslPath; 211TaskItem xslCompiledPath; 212TaskItem[] outputPaths; 233t.XslInputPath = (TaskItem)xslValue; 236t.XslCompiledDllPath = (TaskItem)xslValue; 259TaskItem[] xmlPaths; 260TaskItem xslPath; 261TaskItem xslCompiledPath; 262TaskItem[] outputPaths; 289TaskItem[] xmlPaths; 290TaskItem xslPath; 291TaskItem xslCompiledPath; 292TaskItem[] outputPaths; 323TaskItem[] xmlPaths; 324TaskItem xslPath; 325TaskItem xslCompiledPath; 326TaskItem[] outputPaths; 357TaskItem[] xmlPaths; 358TaskItem xslPath; 359TaskItem xslCompiledPath; 360TaskItem[] outputPaths; 394TaskItem[] xmlPaths; 395TaskItem xslPath; 396TaskItem xslCompiledPath; 397TaskItem[] outputPaths; 430TaskItem[] xmlPaths; 431TaskItem xslPath; 432TaskItem xslCompiledPath; 433TaskItem[] outputPaths; 484TaskItem[] xmlPaths; 485TaskItem xslPath; 486TaskItem xslCompiledPath; 487TaskItem[] outputPaths; 575TaskItem[] outputPaths; 609TaskItem[] xmlPaths; 610TaskItem xslPath; 611TaskItem xslCompiledPath; 612TaskItem[] outputPaths; 638TaskItem[] xmlPaths; 639TaskItem xslPath; 640TaskItem[] outputPaths; 667TaskItem[] xmlPaths; 668TaskItem xslPath; 669TaskItem[] outputPaths; 725TaskItem[] outputPaths; 758TaskItem[] outputPaths; 769t.OutputPaths = new TaskItem[] { new TaskItem("k:\\folder\\file.xml") }; 791TaskItem[] xmlPaths; 792TaskItem xslPath; 793TaskItem[] outputPaths; 824TaskItem[] outputPaths; 856TaskItem[] xmlPaths; 857TaskItem xslPath; 858TaskItem[] outputPaths; 865xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(testingDocsDir, "sila.xml")) }; 944TaskItem[] xmlPaths; 945TaskItem xslPath; 946TaskItem[] outputPaths; 950var otherXmlPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString())); 957TaskItem[] xmlMultiPaths = new TaskItem[] { xmlPaths[0], otherXmlPath, xmlPaths[0], xmlPaths[0] }; 960TaskItem[] outputMultiPaths = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 970foreach (TaskItem tsk in t.OutputPaths) 993TaskItem[] xmlPaths; 994TaskItem xslPath; 995TaskItem[] outputPaths; 1000TaskItem[] xmlMultiPaths = new TaskItem[] { xmlPaths[0], xmlPaths[0], xmlPaths[0], xmlPaths[0] }; 1003TaskItem[] outputMultiPathsShort = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1007TaskItem[] outputMultiPathsLong = new TaskItem[] { new TaskItem(outputPaths[0].ItemSpec + ".1.xml"), 1047TaskItem[] outputPaths; 1051var otherXslPath = new TaskItem(Path.Combine(dir, Guid.NewGuid().ToString() + ".xslt")); 1058var myXmlPath1 = new TaskItem(Path.Combine(dir, "a.xml")); 1065var myXmlPath2 = new TaskItem(Path.Combine(dir, "b.xml")); 1075t.XmlInputPaths = new TaskItem[] { myXmlPath1 }; 1085t.XmlInputPaths = new TaskItem[] { myXmlPath1 }; 1105private void Prepare(out string dir, out TaskItem[] xmlPaths, out TaskItem xslPath, out TaskItem xslCompiledPath, out TaskItem[] outputPaths, out List<KeyValuePair<XslTransformation.XmlInput.XmlModes, object>> xmlInputs, out List<KeyValuePair<XslTransformation.XsltInput.XslModes, object>> xslInputs, out MockEngine engine) 1111xmlPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "doc.xml")) }; 1114outputPaths = new TaskItem[] { new TaskItem(Path.Combine(dir, "testout.xml")) };
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
93Utilities.TaskItem dummyTaskItem = new Utilities.TaskItem();
Microsoft.Build.Utilities.Core (2)
TaskItem.cs (2)
325if (destinationItem is TaskItem destinationAsTaskItem) 437public static explicit operator string(TaskItem taskItemToCast)
Microsoft.Build.Utilities.UnitTests (26)
TaskItem_Tests.cs (26)
28TaskItem from = new TaskItem(); 33TaskItem to = new TaskItem((ITaskItem)from); 54TaskItem from = new TaskItem(); 60TaskItem to = new TaskItem(); 80TaskItem taskItem = new TaskItem(item); 89TaskItem taskItem = new TaskItem("x"); 107TaskItem item = null; 121TaskItem t = new TaskItem("bamboo.baz", h); 134TaskItem t = new TaskItem("foo"); 154TaskItem t = new TaskItem("foor"); 171TaskItem t = new TaskItem("foo"); 183TaskItem from = new TaskItem(); 194TaskItem from = new TaskItem(); 202TaskItem from = new TaskItem(); 210TaskItem from = new TaskItem(); 218TaskItem from = new TaskItem(); 226TaskItem from = new TaskItem(); 234TaskItem from = new TaskItem(); 242TaskItem from = new TaskItem(); 251TaskItem from = new TaskItem(); 259TaskItem from = new TaskItem(); 285TaskItem item = new TaskItem("foo"); 297TaskItem item = new TaskItem("foo"); 311TaskItem item = new TaskItem("bar", (IDictionary)metadata); 322TaskItem item = new TaskItem("bar"); 336TaskItem item = new TaskItem("foo");
Microsoft.DotNet.Arcade.Sdk.Tests (4)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (1)
25SourceRoots = new TaskItem[]
GetAssemblyFullNameTests.cs (2)
22Items = new TaskItem[] 50Items = new TaskItem[]
GroupItemsByTests.cs (1)
19Items = new TaskItem[]
Microsoft.DotNet.Build.Tasks.Feed.Tests (8)
GenerateBuildManifestTests.cs (1)
48Artifacts = new TaskItem[0],
PushToBuildStorageTests.cs (4)
31private TaskItem[] TaskItems = new TaskItem[] 203task.ItemsToPush = new TaskItem[0]; 233task.ItemsToPush = new TaskItem[0];
SetupTargetFeedConfigV3Tests.cs (3)
60var installersKey = new TaskItem(PublishingConstants.FeedStagingForInstallers); 62var checksumsKey = new TaskItem(PublishingConstants.FeedStagingForChecksums); 64var azureDevops = new TaskItem("https://pkgs.dev.azure.com/dnceng");
Microsoft.DotNet.Build.Tasks.Packaging (20)
ApplyMetaPackages.cs (1)
132var item = new TaskItem(id);
ApplyPreReleaseSuffix.cs (1)
93TaskItem updatedPackage = new TaskItem(originalPackage);
CreateTrimDependencyGroups.cs (2)
131var item = new TaskItem(PlaceHolderDependency); 139var item = new TaskItem(dependency.Item);
GetApplicableAssetsFromPackageReports.cs (1)
100var item = new TaskItem(asset.LocalPath);
GetApplicableAssetsFromPackages.cs (1)
210var pdbItem = new TaskItem(Path.ChangeExtension(packageItem.OriginalItem.ItemSpec, ".pdb"));
GetAssemblyReferences.cs (2)
62TaskItem referenceItem = new TaskItem(reader.GetString(reference.Name)); 74TaskItem nativeLib = new TaskItem(moduleName);
GetLastStablePackage.cs (1)
164var item = new TaskItem(originalItem);
GetLayoutFiles.cs (2)
127var item = new TaskItem(source); 141var symbolItem = new TaskItem(symbolSource);
GetPackageDestination.cs (1)
167var item = new TaskItem(path);
GetPackageFromModule.cs (1)
67var packageReferenced = new TaskItem(packageId);
GetSupportedPackagesFromPackageReports.cs (1)
40var supportedPackage = new TaskItem(packageId);
HarvestPackage.cs (2)
233var supportedFramework = new TaskItem(framework.ItemSpec); 416var item = new TaskItem(packageFile);
PackageReport.cs (1)
167var item = new TaskItem(Project);
PromoteDependencies.cs (1)
97var copiedDepenedency = new TaskItem(dependency.OriginalItem);
SplitDependenciesBySupport.cs (1)
97var newItem = new TaskItem(OriginalItem);
SplitReferences.cs (1)
93var emptyItem = new TaskItem("_._");
Microsoft.DotNet.Build.Tasks.Packaging.Tests (7)
ApplyBaseLineTests.cs (1)
141TaskItem item = new TaskItem(name);
CreateTrimDependencyGroupsTests.cs (2)
407TaskItem item = new TaskItem(sourcePath); 414TaskItem item = new TaskItem(sourcePath);
GenerateNuSpecAndPackTests.cs (1)
66var item = new TaskItem(id);
GetLastStablePackageTests.cs (1)
214TaskItem item = new TaskItem(name);
HarvestPackageTests.cs (2)
55var item = new TaskItem(tfm); 173var item = new TaskItem(packageId);
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
82TaskItem itemWithProperties = new(project);
ChooseBestTargetFrameworksTask.cs (1)
40TaskItem item = new(bestTargetFramework);
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (2)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (2)
19Items = new TaskItem[] 50Items = new TaskItem[]
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\MsiBase.wix.cs (1)
230TaskItem msiItem = new TaskItem(light.OutputFile);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (8)
Extensions.cs (2)
10public static TaskItem WithMetadata(this TaskItem item, string metadataName, string metadataValue)
MsiTests.cs (2)
23TaskItem packageItem = new(path); 84TaskItem packageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.200.6.0.3.nupkg"));
PackageTests.cs (1)
22TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, "microsoft.net.workload.mono.toolchain.manifest-6.0.300.6.0.22.nupkg"));
SwixComponentTests.cs (1)
103ITaskItem[] shortNames = new TaskItem[]
SwixPackageGroupTests.cs (1)
26TaskItem manifestPackageItem = new(Path.Combine(TestAssetsPath, manifestPackageFilename));
SwixPackageTests.cs (1)
23TaskItem msiItem = new TaskItem("Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100.6.0.0-preview.7.21377.12-x64.msi");
Microsoft.DotNet.Helix.Sdk (2)
CreateXUnitWorkItems.cs (1)
148var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
XharnessTaskBase.cs (1)
105protected Build.Utilities.TaskItem CreateTaskItem(string workItemName, string payloadArchivePath, string command, TimeSpan timeout)
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
90ITaskItem[] additionalFeed = new TaskItem[] 141ITaskItem[] additionalFeed = new TaskItem[]
Microsoft.DotNet.PackageTesting (1)
GetCompatiblePackageTargetFrameworks.cs (1)
113TaskItem supportedPackage = new(packageId);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
38var item = new TaskItem(entry.Name);
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
85var item = new TaskItem(entry.Name);
Microsoft.DotNet.XliffTasks (3)
Tasks\GatherTranslatedSource.cs (1)
30TaskItem output = new(xlf) { ItemSpec = translatedFullPath };
Tasks\GatherXlf.cs (1)
39TaskItem xlf = new(source) { ItemSpec = xlfPath };
Tasks\TransformTemplates.cs (1)
118TaskItem item = new(cultureSpecificTemplateFile);
Microsoft.Extensions.ApiDescription.Client (2)
GetOpenApiReferenceMetadata.cs (1)
70var newItem = new TaskItem(item);
MetadataSerializer.cs (1)
95var item = new TaskItem();
Microsoft.Extensions.ApiDescription.Client.Tests (4)
MetadataSerializerTest.cs (4)
75var item = new TaskItem("My Identity"); 187var input = new TaskItem(identity, metadata); 208var input = new TaskItem(identity, metadata); 224var input = new TaskItem(escapedValue, metadata);
Microsoft.Maui.Resizetizer (1)
ResizetizeImages.cs (1)
103 var copiedResources = new List<TaskItem>();
PresentationBuildTasks (15)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (10)
600_generatedCodeFiles = Array.Empty<TaskItem>(); 619_generatedBamlFiles = Array.Empty<TaskItem>(); 638_generatedLocalizationFiles = Array.Empty<TaskItem>(); 1473TaskItem codeItem; 1485TaskItem bamlItem = GenerateBamlItem(bamlFile, inputXamlItemList[i]); 1576private TaskItem GenerateBamlItem(string bamlFile, ITaskItem SourceItem) 1578TaskItem bamlItem; 1621TaskItem tiLoc; 1664private TaskItem ProcessLocFileForXamlItem(ITaskItem xamlItem) 1666TaskItem tiLoc = null;
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (5)
373_generatedBaml = Array.Empty<TaskItem>(); 722TaskItem bamlItem; 746TaskItem bamlItem = GenerateBamlItem(relativeFile, localRefFile.Localizable, localRefFile.LinkAlias, localRefFile.LogicalName); 769private TaskItem GenerateBamlItem(string resolvedXamlfile, bool localizable, string linkAlias, string logicalName) 771TaskItem bamlItem = null;