169 references to TaskItem
Microsoft.Build.Engine.UnitTests (6)
BackEnd\NullMetadataTask.cs (1)
29OutputItems[0] = new TaskItem("foo", (IDictionary)metadata);
ProjectCache\ProjectCacheTests.cs (2)
150new TaskItem( 996new TaskItem(
TaskParameter_Tests.cs (3)
374TaskParameter t = new TaskParameter(new TaskItem("foo", metadata)); 407TaskParameter t = new TaskParameter(new TaskItem("foo", metadata)); 454TaskParameter t = new TaskParameter(new TaskItem("foo", metadata));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (24)
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" } });
MapSourceRootTests.cs (17)
39new TaskItem(Utilities.FixFilePath(@"c:\MyProjects\MyProject\"), new Dictionary<string, string> 43new TaskItem(Utilities.FixFilePath(@"c:\MyProjects\MyProject\a\b\"), new Dictionary<string, string> 89new TaskItem(@"****/", new Dictionary<string, string> 93new TaskItem(@"****\|||:;\", new Dictionary<string, string> 161new TaskItem(Utilities.FixFilePath(@"c:\MyProjects\MyProject\a\a\"), new Dictionary<string, string> 166new TaskItem(Utilities.FixFilePath(@"c:\MyProjects\MyProject\a\b\"), new Dictionary<string, string> 171new TaskItem(Utilities.FixFilePath(@"c:\MyProjects\MyProject\a\c\"), new Dictionary<string, string> 250new TaskItem(path1, new Dictionary<string, string> 255new TaskItem(path2, new Dictionary<string, string> 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> 365new TaskItem(Utilities.FixFilePath(@"c:\MyProjects\MyProject\a\b\"), new Dictionary<string, string> 395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 427new TaskItem(path1, new Dictionary<string, string> 474new TaskItem(originalPath2, new Dictionary<string, string>
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\ResolveAssemblyReference.cs (1)
1188_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>()
Microsoft.Build.Tasks.UnitTests (16)
AssemblyDependency\Node\RarNodeExecuteResponse_Tests.cs (7)
23new TaskItem( 31new TaskItem( 62new TaskItem( 71new TaskItem( 78new TaskItem( 85new TaskItem( 97new TaskItem(
AssemblyDependency\SuggestedRedirects.cs (2)
359new TaskItem("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 360new TaskItem("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
AssignTargetPath_Tests.cs (1)
104new TaskItem(
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) };
ResolveSDKReference_Tests.cs (2)
4198SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2"); 4200new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } },
Microsoft.Build.Utilities.UnitTests (2)
TaskItem_Tests.cs (2)
120TaskItem t = new TaskItem("bamboo.baz", h); 310TaskItem item = new TaskItem("bar", (IDictionary)metadata);
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (2)
27new TaskItem(NormalizePath(@"C:\temp\A\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://A-git/commitsha/*" } }), 29new TaskItem(NormalizePath(@"C:\temp\A\B\C\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://C-git/commitsha/*?var=value" } }),
GetAssemblyFullNameTests.cs (2)
24new TaskItem("Item", new Dictionary<string, string> { { "SomePath", objectAssembly.Location } }), 25new TaskItem("Item", new Dictionary<string, string> { { "SomePath", 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.Manifest.Tests (20)
BuildModelFactoryTests.cs (20)
111new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 118new TaskItem(bopSnupkg, new Dictionary<string, string> 127new TaskItem(zipArtifact, new Dictionary<string, string> 133new TaskItem(localPackagePath, new Dictionary<string, string>() 141new TaskItem(pdbArtifact, new Dictionary<string, string> 232new TaskItem(localPackagePath, new Dictionary<string, string>() 285new TaskItem(zipArtifact, new Dictionary<string, string> 321new TaskItem(pdbArtifact, new Dictionary<string, string> 354new TaskItem(localPackagePath, new Dictionary<string, string> 391new TaskItem(localPackagePath, new Dictionary<string, string> 445new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 452new TaskItem(bopSnupkg, new Dictionary<string, string> 461new TaskItem(zipArtifact, new Dictionary<string, string> 467new TaskItem(localPackagePath, new Dictionary<string, string>() 475new TaskItem(pdbArtifact, new Dictionary<string, string> 592new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 603new TaskItem(zipArtifact, new Dictionary<string, string> 609new TaskItem(localPackagePath, new Dictionary<string, string>() 618new TaskItem(pdbArtifact, new Dictionary<string, string> 694new TaskItem("missingKindArtifact.nupkg", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Feed.Tests (18)
PushToBuildStorageTests.cs (18)
46new TaskItem(PACKAGE_A, new Dictionary<string, string> 53new TaskItem(PACKAGE_B, new Dictionary<string, string> 59new TaskItem(BLOB_A, new Dictionary<string, string> 291new TaskItem(PDB_A, new Dictionary<string, string> 296new TaskItem(PDB_B, new Dictionary<string, string> 346new TaskItem(PDB_A, new Dictionary<string, string> 351new TaskItem(PDB_B, new Dictionary<string, string> 477new TaskItem(PACKAGE_A, new Dictionary<string, string> 482new TaskItem(PACKAGE_B, new Dictionary<string, string> 486new TaskItem(BLOB_A, new Dictionary<string, string> 492new TaskItem(PDB_A, new Dictionary<string, string> 593new TaskItem(PACKAGE_A, new Dictionary<string, string> 598new TaskItem(PACKAGE_B, new Dictionary<string, string> 602new TaskItem(BLOB_A, new Dictionary<string, string> 608new TaskItem(PDB_A, new Dictionary<string, string> 766new TaskItem(PDB_A, new Dictionary<string, string> 807new TaskItem(PDB_A, new Dictionary<string, string> 812new TaskItem(PDB_B, new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
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
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
SwixComponentTests.cs (2)
105new TaskItem("Microsoft.NET.Runtime", new Dictionary<string, string> { { Metadata.Replacement, "MSFT" } }) 147new TaskItem("microsoft-net-sdk-blazorwebassembly-aot", new Dictionary<string, string> {
Microsoft.DotNet.Helix.Sdk (3)
CreateXUnitV3WorkItems.cs (1)
133var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
CreateXUnitWorkItems.cs (1)
148var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
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.SignTool (2)
src\ZipData.cs (2)
808scripts.Add(new TaskItem(file, new Dictionary<string, string> { { "Kind", kind } })); 825Requires = requireNames != null ? requireNames.Zip(requireVersions, (name, version) => new TaskItem($"{name}", new Dictionary<string, string> { { "Version", version } })).Where(t => !t.ItemSpec.StartsWith("rpmlib")).ToArray() : [],
Microsoft.DotNet.SignTool.Tests (41)
SignToolTests.cs (41)
82new TaskItem(".jar", new Dictionary<string, string> { 86new TaskItem(".ps1", new Dictionary<string, string> { 90new TaskItem(".psd1", new Dictionary<string, string> { 94new TaskItem(".psm1", new Dictionary<string, string> { 98new TaskItem(".psc1", new Dictionary<string, string> { 102new TaskItem(".dylib", new Dictionary<string, string> { 106new TaskItem(".deb", new Dictionary<string, string> { 110new TaskItem(".dll", new Dictionary<string, string> { 114new TaskItem(".exe", new Dictionary<string, string> { 118new TaskItem(".zip", new Dictionary<string, string> { 122new TaskItem(".tgz", new Dictionary<string, string> { 126new TaskItem(".pkg", new Dictionary<string, string> { 130new TaskItem(".app", new Dictionary<string, string> { 134new TaskItem(".nupkg", new Dictionary<string, string> { 138new TaskItem(".vsix", new Dictionary<string, string> { 142new TaskItem(".jar", new Dictionary<string, string> { 146new TaskItem(".ps1", new Dictionary<string, string> { 150new TaskItem(".psd1", new Dictionary<string, string> { 154new TaskItem(".dll", new Dictionary<string, string> { 158new TaskItem(".nupkg", new Dictionary<string, string> { 162new TaskItem(".vsix", new Dictionary<string, string> { 2748fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string> 2753fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string>{ 2767fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string> 2772fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string>{ 2775fileExtensionSignInfo.Add(new TaskItem(".ps1", new Dictionary<string, string> 2789fileExtensionSignInfo.Add(new TaskItem(".tar.gz", new Dictionary<string, string> 2841new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 2846new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 2851new TaskItem(GetResourcePath("test.zip"), new Dictionary<string, string> 2859new TaskItem("ArcadeStrongTest", new Dictionary<string, string> 2870new TaskItem("ProjectOne.dll", new Dictionary<string, string> 2877new TaskItem("SignedLibrary.dll", new Dictionary<string, string> 2884new TaskItem("test.zip", new Dictionary<string, string> 2894new TaskItem("DualSignCertificate", new Dictionary<string, string> 2899new TaskItem("MacDeveloperHardenWithNotarization", new Dictionary<string, string> 2905new TaskItem("DetachedArchiveCert", new Dictionary<string, string> 3645new TaskItem("dotnet.exe", new Dictionary<string, string>() 3650new TaskItem("dotnet", new Dictionary<string, string>() 3655new TaskItem("dotnet", new Dictionary<string, string>() 3680new TaskItem("test.exe", new Dictionary<string, string>()
Microsoft.DotNet.SourceBuild.Tasks (1)
src\ReadNuGetPackageInfos.cs (1)
32return new TaskItem(
Microsoft.Extensions.ApiDescription.Client.Tests (16)
GetOpenApiReferenceMetadataTest.cs (13)
30Inputs = new[] { new TaskItem(identity, inputMetadata) }, 90Inputs = new[] { new TaskItem(identity, inputMetadata) }, 150Inputs = new[] { new TaskItem(identity, inputMetadata) }, 210Inputs = new[] { new TaskItem(identity, inputMetadata) }, 280new TaskItem(identity1, inputMetadata1), 281new TaskItem(identity2, inputMetadata2), 326new TaskItem(identity, inputMetadata1), 327new TaskItem(identity, inputMetadata2), 363Inputs = new[] { new TaskItem(identity, inputMetadata) }, 427Inputs = new[] { new TaskItem(identity, inputMetadata) }, 492new TaskItem(identity12, inputMetadata1), 493new TaskItem(identity12, inputMetadata2), 494new TaskItem(identity3, inputMetadata3),
MetadataSerializerTest.cs (3)
187var input = new TaskItem(identity, metadata); 211var input = new TaskItem(identity, metadata); 227var input = new TaskItem(escapedValue, metadata);
Microsoft.Maui.Resizetizer (1)
ResizetizeImages.cs (1)
118 copiedResources.Add(new TaskItem(itemSpec, attr));