286 references to TaskItem
HelixTasks (1)
Microsoft.Build.Engine.UnitTests (6)
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)
Microsoft.Build.Tasks.UnitTests (17)
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 (3)
Microsoft.DotNet.Arcade.Sdk.Tests (9)
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)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SignTool.Tests (41)
Microsoft.DotNet.SourceBuild.Tasks (1)
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),
Microsoft.Maui.Resizetizer (1)
Microsoft.NET.Build.Containers.IntegrationTests (14)
FullFramework\CreateNewImageToolTaskTests.cs (14)
218new TaskItem("Valid1", new Dictionary<string, string>() {{ "Value", "Val1" }}),
219new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "Val2" }}),
220new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "" }}),
221new TaskItem("Valid3", new Dictionary<string, string>() {{ "Value", "has space" }}),
222new TaskItem("Valid4", new Dictionary<string, string>() {{ "Value", "has\"quotes\"" }})
264new TaskItem("Valid1", new Dictionary<string, string>() {{ "Value", "Val1" }}),
265new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "Val2" }}),
266new TaskItem("Valid12", new Dictionary<string, string>() {{ "Value", "" }}),
267new TaskItem("Valid3", new Dictionary<string, string>() {{ "Value", "has space" }}),
268new TaskItem("Valid4", new Dictionary<string, string>() {{ "Value", "has\"quotes\"" }})
496new TaskItem("1501", new Dictionary<string, string>() {{ "Type", "udp" }}),
497new TaskItem("1501", new Dictionary<string, string>() {{ "Type", "tcp" }}),
498new TaskItem("1502", new Dictionary<string, string>() {{ "Type", "tcp" }}),
499new TaskItem("1503", new Dictionary<string, string>() {{ "Type", "" }})
Microsoft.NET.Build.Tasks (1)
Microsoft.NET.Build.Tasks.UnitTests (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (2)
Microsoft.NET.Sdk.Publish.Tasks.Tests (9)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (4)
Microsoft.NET.Sdk.StaticWebAssets.Tests (82)
StaticWebAssets\ApplyCssScopesTest.cs (30)
27new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
28new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
56new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
57new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
86new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
87new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" })
115new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
116new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" })
143new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
144new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
145new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string> { ["CssScope"] = "profile-scope" }),
171new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
172new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
173new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "profile-scope" }),
198new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string>
227new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string>
257new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
258new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
259new TaskItem("TestFiles/Pages/Profile.razor.css", new Dictionary<string, string>
289new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
290new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
291new TaskItem("TestFiles/Pages/Profile.cshtml.css", new Dictionary<string, string>
325new TaskItem("TestFiles/Pages/Home.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "home-scope" }),
326new TaskItem("TestFiles/Pages/_Host.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "_host-scope" }),
327new TaskItem("TestFiles/Pages/Index.razor.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
328new TaskItem("TestFiles/Pages/Counter.razor.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
364new TaskItem("TestFiles/Pages/Home.razor.css", new Dictionary<string, string> { ["CssScope"] = "home-scope" }),
365new TaskItem("TestFiles/Pages/_Host.razor.css", new Dictionary<string, string> { ["CssScope"] = "_host-scope" }),
366new TaskItem("TestFiles/Pages/Index.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "index-scope" }),
367new TaskItem("TestFiles/Pages/Counter.cshtml.css", new Dictionary<string, string> { ["CssScope"] = "counter-scope" }),
StaticWebAssets\DiscoverStaticWebAssetsTest.cs (10)
92task.FingerprintPatterns = [new TaskItem("CssFile", new Dictionary<string, string> { ["Pattern"] = "*.css", ["Expression"] = expression })];
187FingerprintPatterns = [new TaskItem("JsModule", new Dictionary<string, string> { ["Pattern"] = "*.lib.module.js", ["Expression"] = expression })],
248new TaskItem(assetFullPath, new Dictionary<string, string>
254FingerprintPatterns = [ new TaskItem("Js", new Dictionary<string,string>{{"Pattern","*.js"},{"Expression","#[.{fingerprint}]!"}})],
770new TaskItem(Path.Combine(debugDir, "Microsoft.AspNetCore.Components.CustomElements.lib.module.js"),
772new TaskItem(Path.Combine(debugDir, "Microsoft.AspNetCore.Components.CustomElements.lib.module.js.map"),
810new TaskItem(Path.Combine("wwwroot", "Microsoft.AspNetCore.Components.CustomElements.lib.module.js"),
812new TaskItem(Path.Combine("wwwroot", "Microsoft.AspNetCore.Components.CustomElements.lib.module.js.map"),
849new TaskItem("/home/user/work/Repo/Project/Components/Dropdown/Dropdown.razor.js",
910return new TaskItem(itemSpec, new Dictionary<string, string>
StaticWebAssets\FilterStaticWebAssetEndpointsTest.cs (7)
76new TaskItem("Property", new Dictionary<string,string>{
112new TaskItem("Header", new Dictionary<string,string>{
146new TaskItem("Standalone", new Dictionary<string,string>{ })
182new TaskItem("Selector", new Dictionary<string,string>{
219new TaskItem("Header", new Dictionary<string,string>{
223new TaskItem("Property", new Dictionary<string,string>{
263return new TaskItem(contentType, new Dictionary<string, string>
StaticWebAssets\ResolveAllScopedCssAssetsTest.cs (8)
19new TaskItem("TestFiles/Pages/Counter.razor.rz.scp.css", new Dictionary<string,string>
23new TaskItem("site.css", new Dictionary<string,string>
47new TaskItem("TestFiles/Pages/Counter.razor.rz.scp.css", new Dictionary<string,string>
51new TaskItem("site.css", new Dictionary<string,string>
75new TaskItem("Folder/Project.bundle.scp.css", new Dictionary<string,string>
79new TaskItem("site.css", new Dictionary<string,string>
103new TaskItem("Folder/Project.styles.css", new Dictionary<string,string>
107new TaskItem("site.css", new Dictionary<string,string>