195 references to TaskItem
Microsoft.Build.Engine.UnitTests (6)
BackEnd\NullMetadataTask.cs (1)
29OutputItems[0] = new TaskItem("foo", (IDictionary)metadata);
ProjectCache\ProjectCacheTests.cs (2)
136new TaskItem( 982new TaskItem(
TaskParameter_Tests.cs (3)
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.UnitTests (23)
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 (16)
39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string> 43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 89new TaskItem(@"****/", new Dictionary<string, string> 93new TaskItem(@"****\|||:;\", new Dictionary<string, string> 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> 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(@"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>
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\ResolveAssemblyReference.cs (1)
1148_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>()
Microsoft.Build.Tasks.UnitTests (9)
AssemblyDependency\SuggestedRedirects.cs (2)
361new TaskItem("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 362new TaskItem("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
AssignTargetPath_Tests.cs (1)
100new 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)
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" } }) } },
Microsoft.Build.Utilities.UnitTests (2)
TaskItem_Tests.cs (2)
121TaskItem t = new TaskItem("bamboo.baz", h); 311TaskItem item = new TaskItem("bar", (IDictionary)metadata);
Microsoft.DotNet.Arcade.Sdk (1)
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
106return new TaskItem(
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.Tasks.Feed.Tests (41)
BuildModelFactoryTests.cs (29)
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>() 185new TaskItem(localPackagePath, new Dictionary<string, string>() 224new TaskItem(zipArtifact, new Dictionary<string, string> 249new TaskItem(localPackagePath, new Dictionary<string, string> 278new 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>() 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>() 558new TaskItem(localPackagePath, new Dictionary<string, string>() 589new TaskItem(localPackagePath, new Dictionary<string, string>()), 590new TaskItem(zipPath, new Dictionary<string, string>() 604new TaskItem(localPackagePath, new Dictionary<string, string>() 613new TaskItem(localPackagePath, new Dictionary<string, string>() 621new TaskItem("MyCert", new Dictionary<string, string>() 625new TaskItem("MyOtherCert", new Dictionary<string, string>() 633new TaskItem(".dll", new Dictionary<string, string>() 700new TaskItem(localPackagePath, new Dictionary<string, string>()), 701new TaskItem(zipPath, new Dictionary<string, string>()
PushToAzureDevOpsArtifactsTests.cs (12)
34new TaskItem(PACKAGE_A, new Dictionary<string, string> 40new TaskItem(PACKAGE_B, new Dictionary<string, string> 46new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string> 459new TaskItem(".dll", new Dictionary<string, string> 463new TaskItem(".nupkg", new Dictionary<string, string> 467new TaskItem(".zip", new Dictionary<string, string> 474new TaskItem("Best.dll", new Dictionary<string, string> 478new TaskItem("Worst.dll", new Dictionary<string, string> 485new TaskItem("BestCert", new Dictionary<string, string> 489new TaskItem("WorstCert", new Dictionary<string, string> 496new TaskItem("VeryCoolStrongName", new Dictionary<string, string> 501new TaskItem("VeryTrashStrongName", 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 (2)
CreateXUnitWorkItems.cs (1)
145var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
XharnessTaskBase.cs (1)
109return 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.Tests (74)
SignToolTests.cs (74)
72new TaskItem(".js", new Dictionary<string, string> { 76new TaskItem(".jar", new Dictionary<string, string> { 80new TaskItem(".ps1", new Dictionary<string, string> { 84new TaskItem(".psd1", new Dictionary<string, string> { 88new TaskItem(".psm1", new Dictionary<string, string> { 92new TaskItem(".psc1", new Dictionary<string, string> { 96new TaskItem(".dylib", new Dictionary<string, string> { 100new TaskItem(".dll", new Dictionary<string, string> { 104new TaskItem(".exe", new Dictionary<string, string> { 108new TaskItem(".zip", new Dictionary<string, string> { 112new TaskItem(".tgz", new Dictionary<string, string> { 116new TaskItem(".nupkg", new Dictionary<string, string> { 120new TaskItem(".vsix", new Dictionary<string, string> { 124new TaskItem(".js", new Dictionary<string, string> { 128new TaskItem(".jar", new Dictionary<string, string> { 132new TaskItem(".ps1", new Dictionary<string, string> { 136new TaskItem(".psd1", new Dictionary<string, string> { 140new TaskItem(".dll", new Dictionary<string, string> { 144new TaskItem(".nupkg", new Dictionary<string, string> { 148new TaskItem(".vsix", new Dictionary<string, string> { 436new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 510new TaskItem(GetResourcePath(fileToTest), new Dictionary<string, string> 588new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 658new TaskItem(GetResourcePath("CoreLibCrossARM.dll"), new Dictionary<string, string> 662new TaskItem(GetResourcePath("AspNetCoreCrossLib.dll"), new Dictionary<string, string> 704new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 729new TaskItem(GetResourcePath("CustomTargetFrameworkAttribute.dll"), new Dictionary<string, string> 780new TaskItem(GetResourcePath("PackageWithWix.nupkg"), new Dictionary<string, string> 784new TaskItem(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), new Dictionary<string, string> 837new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 918new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 1328new TaskItem(GetResourcePath("MsiSetup.msi"), new Dictionary<string, string> 1332new TaskItem(GetResourcePath("MsiSetup.msi.wixpack.zip"), new Dictionary<string, string> 1434new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1438new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1501new TaskItem(GetResourcePath("TestSpaces.vsix"), new Dictionary<string, string> 1505new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1625new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), new Dictionary<string, string> 1629new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1633new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), new Dictionary<string, string> 1735new TaskItem(CreateTestResource("dynalib.dylib"), new Dictionary<string, string> 1739new TaskItem(CreateTestResource("javascript.js"), new Dictionary<string, string> 1743new TaskItem(CreateTestResource("javatest.jar"), new Dictionary<string, string> 1747new TaskItem(CreateTestResource("power.ps1"), new Dictionary<string, string> 1751new TaskItem(CreateTestResource("powerc.psc1"), new Dictionary<string, string> 1755new TaskItem(CreateTestResource("powerd.psd1"), new Dictionary<string, string> 1759new TaskItem(CreateTestResource("powerm.psm1"), new Dictionary<string, string> 1789fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1794fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1808fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1813fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1816fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1830fileExtensionSignInfo.Add(new TaskItem(".tar.gz", new Dictionary<string, string> 1852new TaskItem(GetResourcePath("SameFiles1.zip"), new Dictionary<string, string> 1856new TaskItem(GetResourcePath("SameFiles2.zip"), new Dictionary<string, string> 1888new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 1893new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 1901new TaskItem("ArcadeStrongTest", new Dictionary<string, string> 1912new TaskItem("ProjectOne.dll", new Dictionary<string, string> 1919new TaskItem("SignedLibrary.dll", new Dictionary<string, string> 1931new TaskItem("DualSignCertificate", new Dictionary<string, string> 2024new TaskItem( GetResourcePath("PackageWithZip.nupkg"), new Dictionary<string, string> 2094new TaskItem(CreateTestResource("test.js"), new Dictionary<string, string> 2098new TaskItem(CreateTestResource("test.jar"), new Dictionary<string, string> 2102new TaskItem(CreateTestResource("test.ps1"), new Dictionary<string, string> 2106new TaskItem(CreateTestResource("test.psd1"), new Dictionary<string, string> 2110new TaskItem(CreateTestResource("test.psm1"), new Dictionary<string, string> 2114new TaskItem(CreateTestResource("test.psc1"), new Dictionary<string, string> 2118new TaskItem(CreateTestResource("test.dylib"), new Dictionary<string, string> 2122new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 2126new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 2130new TaskItem(GetResourcePath("Simple.nupkg"), new Dictionary<string, string> 2136new TaskItem(GetResourcePath("Simple.symbols.nupkg"), new Dictionary<string, string> 2274new TaskItem(GetResourcePath("SPCNoPKT.dll"), 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)
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 (3)
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)
118 copiedResources.Add(new TaskItem(itemSpec, attr));