196 references to TaskItem
Microsoft.Build.Engine.UnitTests (6)
BackEnd\NullMetadataTask.cs (1)
29
OutputItems[0] = new
TaskItem
("foo", (IDictionary)metadata);
ProjectCache\ProjectCacheTests.cs (2)
133
new
TaskItem
(
979
new
TaskItem
(
TaskParameter_Tests.cs (3)
369
TaskParameter t = new TaskParameter(new
TaskItem
("foo", metadata));
402
TaskParameter t = new TaskParameter(new
TaskItem
("foo", metadata));
449
TaskParameter t = new TaskParameter(new
TaskItem
("foo", metadata));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (23)
GenerateMSBuildEditorConfigTests.cs (7)
233
TaskItem item1 = new
TaskItem
("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
234
TaskItem item2 = new
TaskItem
("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
235
TaskItem item3 = new
TaskItem
("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
267
TaskItem item1 = new
TaskItem
("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
268
TaskItem item2 = new
TaskItem
("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
310
TaskItem property1 = new
TaskItem
("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } });
311
TaskItem property2 = new
TaskItem
("Property2", new Dictionary<string, string> { { "Value", "def456" } });
MapSourceRootTests.cs (16)
39
new
TaskItem
(@"c:\MyProjects\MyProject\", new Dictionary<string, string>
43
new
TaskItem
(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
89
new
TaskItem
(@"****/", new Dictionary<string, string>
93
new
TaskItem
(@"****\|||:;\", new Dictionary<string, string>
161
new
TaskItem
(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string>
166
new
TaskItem
(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
171
new
TaskItem
(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string>
250
new
TaskItem
(path1, new Dictionary<string, string>
255
new
TaskItem
(path2, new Dictionary<string, string>
293
new
TaskItem
(path1, new Dictionary<string, string>
302
new
TaskItem
(path1, new Dictionary<string, string>
311
new
TaskItem
(path2, new Dictionary<string, string>
316
new
TaskItem
(path2, new Dictionary<string, string>
365
new
TaskItem
(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
395
new
TaskItem
(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
427
new
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)
361
new
TaskItem
("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
362
new
TaskItem
("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
AssignTargetPath_Tests.cs (1)
100
new
TaskItem
(
FindInvalidProjectReferences_Tests.cs (4)
40
t.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)
4199
SDKReference reference = new(new
TaskItem
("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2");
4201
new 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)
121
TaskItem t = new
TaskItem
("bamboo.baz", h);
311
TaskItem item = new
TaskItem
("bar", (IDictionary)metadata);
Microsoft.DotNet.Arcade.Sdk (1)
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
106
return new
TaskItem
(
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (2)
27
new
TaskItem
(NormalizePath(@"C:\temp\A\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://A-git/commitsha/*" } }),
29
new
TaskItem
(NormalizePath(@"C:\temp\A\B\C\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://C-git/commitsha/*?var=value" } }),
GetAssemblyFullNameTests.cs (2)
24
new
TaskItem
("Item", new Dictionary<string, string> { { "SomePath", objectAssembly.Location } }),
25
new
TaskItem
("Item", new Dictionary<string, string> { { "SomePath", thisAssembly.Location } }),
GroupItemsByTests.cs (5)
21
new
TaskItem
("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }),
22
new
TaskItem
("B", new Dictionary<string, string> { { "Z", "B1.Z" } }),
23
new
TaskItem
("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }),
24
new
TaskItem
("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }),
25
new
TaskItem
("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.Build.Tasks.Feed.Tests (41)
BuildModelFactoryTests.cs (29)
103
new
TaskItem
(bopSymbolsNupkg, new Dictionary<string, string>
108
new
TaskItem
(bopSnupkg, new Dictionary<string, string>
115
new
TaskItem
(zipArtifact, new Dictionary<string, string>
120
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
188
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
227
new
TaskItem
(zipArtifact, new Dictionary<string, string>
251
new
TaskItem
(localPackagePath, new Dictionary<string, string>
279
new
TaskItem
(localPackagePath, new Dictionary<string, string>
326
new
TaskItem
(bopSymbolsNupkg, new Dictionary<string, string>
331
new
TaskItem
(bopSnupkg, new Dictionary<string, string>
338
new
TaskItem
(zipArtifact, new Dictionary<string, string>
343
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
359
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
368
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
373
new
TaskItem
("Microsoft.DiaSymReader.dll", new Dictionary<string, string>()
379
new
TaskItem
("Microsoft.DiaSymReader.dll", new Dictionary<string, string>()
389
new
TaskItem
("MyCert", new Dictionary<string, string>()
393
new
TaskItem
("MyOtherCert", new Dictionary<string, string>()
401
new
TaskItem
(".dll", new Dictionary<string, string>()
562
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
593
new
TaskItem
(localPackagePath, new Dictionary<string, string>()),
594
new
TaskItem
(zipPath, new Dictionary<string, string>()
608
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
617
new
TaskItem
(localPackagePath, new Dictionary<string, string>()
625
new
TaskItem
("MyCert", new Dictionary<string, string>()
629
new
TaskItem
("MyOtherCert", new Dictionary<string, string>()
637
new
TaskItem
(".dll", new Dictionary<string, string>()
703
new
TaskItem
(localPackagePath, new Dictionary<string, string>()),
704
new
TaskItem
(zipPath, new Dictionary<string, string>()
PushToBuildStorageTests.cs (12)
33
new
TaskItem
(PACKAGE_A, new Dictionary<string, string>
39
new
TaskItem
(PACKAGE_B, new Dictionary<string, string>
45
new
TaskItem
(SAMPLE_MANIFEST, new Dictionary<string, string>
458
new
TaskItem
(".dll", new Dictionary<string, string>
462
new
TaskItem
(".nupkg", new Dictionary<string, string>
466
new
TaskItem
(".zip", new Dictionary<string, string>
473
new
TaskItem
("Best.dll", new Dictionary<string, string>
477
new
TaskItem
("Worst.dll", new Dictionary<string, string>
484
new
TaskItem
("BestCert", new Dictionary<string, string>
488
new
TaskItem
("WorstCert", new Dictionary<string, string>
495
new
TaskItem
("VeryCoolStrongName", new Dictionary<string, string>
500
new
TaskItem
("VeryTrashStrongName", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
21
new
TaskItem
("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }),
22
new
TaskItem
("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }),
23
new
TaskItem
("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character
24
new
TaskItem
("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character
25
new
TaskItem
("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
SwixComponentTests.cs (2)
105
new
TaskItem
("Microsoft.NET.Runtime", new Dictionary<string, string> { { Metadata.Replacement, "MSFT" } })
147
new
TaskItem
("microsoft-net-sdk-blazorwebassembly-aot", new Dictionary<string, string> {
Microsoft.DotNet.Helix.Sdk (2)
CreateXUnitWorkItems.cs (1)
148
var result = new Microsoft.Build.Utilities.
TaskItem
(assemblyName, new Dictionary<string, string>()
XharnessTaskBase.cs (1)
112
return
new
(workItemName, new Dictionary<string, string>()
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
92
new
TaskItem
("https://fakeazureaccount.blob.core.windows.net", metadata)
143
new
TaskItem
("https://fakeazureaccount.blob.core.windows.net", metadata)
Microsoft.DotNet.SignTool.Tests (75)
SignToolTests.cs (75)
75
new
TaskItem
(".js", new Dictionary<string, string> {
79
new
TaskItem
(".jar", new Dictionary<string, string> {
83
new
TaskItem
(".ps1", new Dictionary<string, string> {
87
new
TaskItem
(".psd1", new Dictionary<string, string> {
91
new
TaskItem
(".psm1", new Dictionary<string, string> {
95
new
TaskItem
(".psc1", new Dictionary<string, string> {
99
new
TaskItem
(".dylib", new Dictionary<string, string> {
103
new
TaskItem
(".deb", new Dictionary<string, string> {
107
new
TaskItem
(".dll", new Dictionary<string, string> {
111
new
TaskItem
(".exe", new Dictionary<string, string> {
115
new
TaskItem
(".zip", new Dictionary<string, string> {
119
new
TaskItem
(".tgz", new Dictionary<string, string> {
123
new
TaskItem
(".nupkg", new Dictionary<string, string> {
127
new
TaskItem
(".vsix", new Dictionary<string, string> {
131
new
TaskItem
(".js", new Dictionary<string, string> {
135
new
TaskItem
(".jar", new Dictionary<string, string> {
139
new
TaskItem
(".ps1", new Dictionary<string, string> {
143
new
TaskItem
(".psd1", new Dictionary<string, string> {
147
new
TaskItem
(".dll", new Dictionary<string, string> {
151
new
TaskItem
(".nupkg", new Dictionary<string, string> {
155
new
TaskItem
(".vsix", new Dictionary<string, string> {
447
new
TaskItem
(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string>
521
new
TaskItem
(GetResourcePath(fileToTest), new Dictionary<string, string>
599
new
TaskItem
(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string>
669
new
TaskItem
(GetResourcePath("CoreLibCrossARM.dll"), new Dictionary<string, string>
673
new
TaskItem
(GetResourcePath("AspNetCoreCrossLib.dll"), new Dictionary<string, string>
715
new
TaskItem
(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string>
740
new
TaskItem
(GetResourcePath("CustomTargetFrameworkAttribute.dll"), new Dictionary<string, string>
791
new
TaskItem
(GetResourcePath("PackageWithWix.nupkg"), new Dictionary<string, string>
795
new
TaskItem
(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), new Dictionary<string, string>
848
new
TaskItem
(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string>
929
new
TaskItem
(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string>
1369
new
TaskItem
(GetResourcePath("MsiSetup.msi"), new Dictionary<string, string>
1373
new
TaskItem
(GetResourcePath("MsiSetup.msi.wixpack.zip"), new Dictionary<string, string>
1476
new
TaskItem
(GetResourcePath("test.vsix"), new Dictionary<string, string>
1480
new
TaskItem
(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string>
1543
new
TaskItem
(GetResourcePath("TestSpaces.vsix"), new Dictionary<string, string>
1547
new
TaskItem
(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string>
1667
new
TaskItem
(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), new Dictionary<string, string>
1671
new
TaskItem
(GetResourcePath("test.vsix"), new Dictionary<string, string>
1675
new
TaskItem
(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), new Dictionary<string, string>
1795
new
TaskItem
(CreateTestResource("dynalib.dylib"), new Dictionary<string, string>
1799
new
TaskItem
(CreateTestResource("javascript.js"), new Dictionary<string, string>
1803
new
TaskItem
(CreateTestResource("javatest.jar"), new Dictionary<string, string>
1807
new
TaskItem
(CreateTestResource("power.ps1"), new Dictionary<string, string>
1811
new
TaskItem
(CreateTestResource("powerc.psc1"), new Dictionary<string, string>
1815
new
TaskItem
(CreateTestResource("powerd.psd1"), new Dictionary<string, string>
1819
new
TaskItem
(CreateTestResource("powerm.psm1"), new Dictionary<string, string>
1849
fileExtensionSignInfo.Add(new
TaskItem
(".js", new Dictionary<string, string>
1854
fileExtensionSignInfo.Add(new
TaskItem
(".js", new Dictionary<string, string>{
1868
fileExtensionSignInfo.Add(new
TaskItem
(".js", new Dictionary<string, string>
1873
fileExtensionSignInfo.Add(new
TaskItem
(".js", new Dictionary<string, string>{
1876
fileExtensionSignInfo.Add(new
TaskItem
(".js", new Dictionary<string, string>
1890
fileExtensionSignInfo.Add(new
TaskItem
(".tar.gz", new Dictionary<string, string>
1912
new
TaskItem
(GetResourcePath("SameFiles1.zip"), new Dictionary<string, string>
1916
new
TaskItem
(GetResourcePath("SameFiles2.zip"), new Dictionary<string, string>
1948
new
TaskItem
(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string>
1953
new
TaskItem
(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string>
1961
new
TaskItem
("ArcadeStrongTest", new Dictionary<string, string>
1972
new
TaskItem
("ProjectOne.dll", new Dictionary<string, string>
1979
new
TaskItem
("SignedLibrary.dll", new Dictionary<string, string>
1991
new
TaskItem
("DualSignCertificate", new Dictionary<string, string>
2086
new
TaskItem
( GetResourcePath("PackageWithZip.nupkg"), new Dictionary<string, string>
2156
new
TaskItem
(CreateTestResource("test.js"), new Dictionary<string, string>
2160
new
TaskItem
(CreateTestResource("test.jar"), new Dictionary<string, string>
2164
new
TaskItem
(CreateTestResource("test.ps1"), new Dictionary<string, string>
2168
new
TaskItem
(CreateTestResource("test.psd1"), new Dictionary<string, string>
2172
new
TaskItem
(CreateTestResource("test.psm1"), new Dictionary<string, string>
2176
new
TaskItem
(CreateTestResource("test.psc1"), new Dictionary<string, string>
2180
new
TaskItem
(CreateTestResource("test.dylib"), new Dictionary<string, string>
2184
new
TaskItem
(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string>
2188
new
TaskItem
(GetResourcePath("test.vsix"), new Dictionary<string, string>
2192
new
TaskItem
(GetResourcePath("Simple.nupkg"), new Dictionary<string, string>
2198
new
TaskItem
(GetResourcePath("Simple.symbols.nupkg"), new Dictionary<string, string>
2336
new
TaskItem
(GetResourcePath("SPCNoPKT.dll"), new Dictionary<string, string>
Microsoft.DotNet.SourceBuild.Tasks (1)
src\ReadNuGetPackageInfos.cs (1)
32
return new
TaskItem
(
Microsoft.Extensions.ApiDescription.Client.Tests (16)
GetOpenApiReferenceMetadataTest.cs (13)
25
Inputs = new[] { new
TaskItem
(identity, inputMetadata) },
83
Inputs = new[] { new
TaskItem
(identity, inputMetadata) },
141
Inputs = new[] { new
TaskItem
(identity, inputMetadata) },
199
Inputs = new[] { new
TaskItem
(identity, inputMetadata) },
266
new
TaskItem
(identity1, inputMetadata1),
267
new
TaskItem
(identity2, inputMetadata2),
312
new
TaskItem
(identity, inputMetadata1),
313
new
TaskItem
(identity, inputMetadata2),
349
Inputs = new[] { new
TaskItem
(identity, inputMetadata) },
412
Inputs = new[] { new
TaskItem
(identity, inputMetadata) },
476
new
TaskItem
(identity12, inputMetadata1),
477
new
TaskItem
(identity12, inputMetadata2),
478
new
TaskItem
(identity3, inputMetadata3),
MetadataSerializerTest.cs (3)
187
var input = new
TaskItem
(identity, metadata);
208
var input = new
TaskItem
(identity, metadata);
224
var input = new
TaskItem
(escapedValue, metadata);
Microsoft.Maui.Resizetizer (1)
ResizetizeImages.cs (1)
118
copiedResources.Add(new
TaskItem
(itemSpec, attr));