[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-item-management":3,"mdc--xnyanj-key":31,"related-repo-dotnet-item-management":1022,"related-org-dotnet-item-management":1131},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":19,"repoUrl":20,"updatedAt":21,"license":22,"forks":23,"topics":24,"repo":26,"sourceUrl":29,"mdContent":30},"item-management","manage MSBuild item groups and metadata","Patterns for managing MSBuild item groups: Include\u002FRemove\u002FUpdate semantics, item metadata, batching with %(Metadata), transforms, per-item filtering, and cross-product batching pitfalls. USE FOR: diagnosing and fixing item group anti-patterns in .csproj files, reviewing item management for correctness, fixing CS2002 duplicate file warnings from SDK globbing, fixing targets that run more times than expected due to cross-product batching, fixing Include vs Update misuse on SDK-globbed items, fixing FileWrites registration for generated file clean support, moving generated files to IntermediateOutputPath. DO NOT USE FOR: target chain architecture (use target-authoring), property patterns (use property-patterns), incrementality (use incremental-build), general anti-patterns (use msbuild-antipatterns), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16],{"name":13,"slug":14,"type":15},"Build","build","tag",{"name":17,"slug":18,"type":15},"Engineering","engineering",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:21:26.033623","MIT",332,[25],"agent-skills",{"repoUrl":20,"stars":19,"forks":23,"topics":27,"description":28},[25],"Repository for skills to assist AI coding agents with .NET and C#","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-msbuild\u002Fskills\u002Fitem-management","---\nname: item-management\ndescription: \"Patterns for managing MSBuild item groups: Include\u002FRemove\u002FUpdate semantics, item metadata, batching with %(Metadata), transforms, per-item filtering, and cross-product batching pitfalls. USE FOR: diagnosing and fixing item group anti-patterns in .csproj files, reviewing item management for correctness, fixing CS2002 duplicate file warnings from SDK globbing, fixing targets that run more times than expected due to cross-product batching, fixing Include vs Update misuse on SDK-globbed items, fixing FileWrites registration for generated file clean support, moving generated files to IntermediateOutputPath. DO NOT USE FOR: target chain architecture (use target-authoring), property patterns (use property-patterns), incrementality (use incremental-build), general anti-patterns (use msbuild-antipatterns), non-MSBuild build systems.\"\nlicense: MIT\n---\n\n# MSBuild Item Management Patterns\n\nCanonical patterns for working with item groups, from `Microsoft.Common.CurrentVersion.targets`.\n\n## Include \u002F Remove \u002F Update — Three Operations\n\n| Operation | Purpose | When to use |\n|---|---|---|\n| `Include` | Add new items to the group | Creating items with identity + metadata |\n| `Remove` | Remove items matching a pattern | Excluding files or clearing a group |\n| `Update` | Modify metadata on existing items | Adding\u002Fchanging metadata without re-adding |\n\n### Include — Add Items\n\n```xml\n\u003CItemGroup>\n  \u003CCompile Include=\"Generated\\*.cs\">\n    \u003CAutoGen>true\u003C\u002FAutoGen>\n  \u003C\u002FCompile>\n\u003C\u002FItemGroup>\n```\n\n### Remove — Subtract Items\n\n```xml\n\u003CItemGroup>\n  \u003C!-- Remove specific items -->\n  \u003CReference Remove=\"$(AdditionalExplicitAssemblyReferences)\" \u002F>\n\n  \u003C!-- Set subtraction: prior minus current -->\n  \u003C_CleanOrphanFileWrites Include=\"@(_CleanPriorFileWrites)\"\n      Exclude=\"@(_CleanCurrentFileWrites)\" \u002F>\n\n  \u003C!-- Clear an entire group -->\n  \u003C_Temporary Remove=\"@(_Temporary)\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n### Update — Modify Existing Items\n\n```xml\n\u003CItemGroup>\n  \u003CEmbeddedResource Update=\"@(EmbeddedResource)\"\n      Condition=\"'%(NuGetPackageId)' == 'Microsoft.CodeAnalysis.Collections'\">\n    \u003CGenerateSource>true\u003C\u002FGenerateSource>\n    \u003CClassName>Microsoft.CodeAnalysis.Collections.SR\u003C\u002FClassName>\n  \u003C\u002FEmbeddedResource>\n\u003C\u002FItemGroup>\n```\n\n`Update` does not add items — it only modifies items already in the group.\n\n## Item Batching — %(Metadata)\n\nWhen `%(Metadata)` appears in target attributes or task parameters, MSBuild **batches** execution per unique metadata value.\n\n### Target-level batching (Outputs)\n\n```xml\n\u003CTarget Name=\"GenerateSatelliteAssemblies\"\n    Inputs=\"$(MSBuildAllProjects);@(_SatelliteAssemblyResourceInputs)\"\n    Outputs=\"$(IntermediateOutputPath)%(Culture)\\$(TargetName).resources.dll\">\n  \u003C!-- Runs once per unique Culture value -->\n\u003C\u002FTarget>\n```\n\n### Task-level batching\n\n```xml\n\u003CCopy SourceFiles=\"@(_SourceItems)\"\n    DestinationFiles=\"@(_SourceItems->'$(OutDir)%(TargetPath)')\">\n\u003C\u002FCopy>\n```\n\n### Per-item filtering with Condition\n\n```xml\n\u003CItemGroup>\n  \u003C_ResxOutput Include=\"@(EmbeddedResource->'%(OutputResource)')\"\n      Condition=\"'%(EmbeddedResource.WithCulture)' == 'false'\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n### Batching rules\n\n- `%(Metadata)` in `Condition` or `Outputs` → target batches per unique value.\n- `%(Metadata)` in task parameters → task batches per unique value.\n- **Do not mix `%()` from different item groups** in the same expression — this causes a cross-product (see Common Pitfalls).\n\n## Item Transforms — @(Item->'expression')\n\nTransforms create new item lists by applying an expression to each item:\n\n```xml\n\u003C!-- Transform file paths to destinations -->\n\u003CCopy SourceFiles=\"@(IntermediateAssembly)\"\n    DestinationFiles=\"@(IntermediateAssembly->'$(OutDir)%(Filename)%(Extension)')\"\u002F>\n\n\u003C!-- Transform with separator for display -->\n\u003CMessage Text=\"Files: @(Compile->'%(Filename)', ', ')\" \u002F>\n```\n\n## Exclude Pattern — Set Subtraction on Include\n\n```xml\n\u003CItemGroup>\n  \u003CCompile Include=\"**\\*.cs\" Exclude=\"Generated\\**;Tests\\**\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n`Exclude` only works on `Include` — it cannot be used with `Update` or `Remove`.\n\n## Conditional Item Inclusion\n\n```xml\n\u003C!-- Condition on ItemGroup — all or nothing -->\n\u003CItemGroup Condition=\"'$(NetCoreBuild)' == 'true'\">\n  \u003CPackageReference Include=\"System.IO.Pipelines\" \u002F>\n\u003C\u002FItemGroup>\n\n\u003C!-- Condition on individual items -->\n\u003CItemGroup>\n  \u003CPackageReference Include=\"System.IO.Pipelines\"\n      Condition=\"'$(NetCoreBuild)' == 'true'\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n## PrivateAssets on Tool\u002FAnalyzer Packages\n\n```xml\n\u003CItemGroup>\n  \u003CPackageReference Include=\"Microsoft.CodeAnalysis.NetAnalyzers\" PrivateAssets=\"all\" \u002F>\n  \u003CPackageReference Include=\"StyleCop.Analyzers\" PrivateAssets=\"all\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n## Common Pitfalls\n\n### Cross-product batching\n\nReferencing `%(Metadata)` from two different item groups creates O(N×M) executions:\n\n```xml\n\u003C!-- BAD: Cross-product of @(Source) × @(Config) -->\n\u003CExec Command=\"process %(Source.Identity) with %(Config.Identity)\" \u002F>\n\n\u003C!-- GOOD: Reference one group via batching, the other via property -->\n\u003CExec Command=\"process %(Source.Identity) with $(ConfigFile)\" \u002F>\n```\n\n### Generated files in source tree\n\nWrite to `$(IntermediateOutputPath)` (obj\u002F), not the source directory. Source-tree generation pollutes version control and can cause duplicate compilation via globs.\n\n### Missing FileWrites\n\nEvery file created during a target must be added to `@(FileWrites)` for `dotnet clean` support.\n",{"data":32,"body":33},{"name":4,"description":6,"license":22},{"type":34,"children":35},"root",[36,45,60,67,166,173,231,237,336,342,403,413,419,440,446,493,499,530,536,573,579,638,644,649,703,709,738,768,774,857,863,900,906,912,924,970,976,989,995,1016],{"type":37,"tag":38,"props":39,"children":41},"element","h1",{"id":40},"msbuild-item-management-patterns",[42],{"type":43,"value":44},"text","MSBuild Item Management Patterns",{"type":37,"tag":46,"props":47,"children":48},"p",{},[49,51,58],{"type":43,"value":50},"Canonical patterns for working with item groups, from ",{"type":37,"tag":52,"props":53,"children":55},"code",{"className":54},[],[56],{"type":43,"value":57},"Microsoft.Common.CurrentVersion.targets",{"type":43,"value":59},".",{"type":37,"tag":61,"props":62,"children":64},"h2",{"id":63},"include-remove-update-three-operations",[65],{"type":43,"value":66},"Include \u002F Remove \u002F Update — Three Operations",{"type":37,"tag":68,"props":69,"children":70},"table",{},[71,95],{"type":37,"tag":72,"props":73,"children":74},"thead",{},[75],{"type":37,"tag":76,"props":77,"children":78},"tr",{},[79,85,90],{"type":37,"tag":80,"props":81,"children":82},"th",{},[83],{"type":43,"value":84},"Operation",{"type":37,"tag":80,"props":86,"children":87},{},[88],{"type":43,"value":89},"Purpose",{"type":37,"tag":80,"props":91,"children":92},{},[93],{"type":43,"value":94},"When to use",{"type":37,"tag":96,"props":97,"children":98},"tbody",{},[99,122,144],{"type":37,"tag":76,"props":100,"children":101},{},[102,112,117],{"type":37,"tag":103,"props":104,"children":105},"td",{},[106],{"type":37,"tag":52,"props":107,"children":109},{"className":108},[],[110],{"type":43,"value":111},"Include",{"type":37,"tag":103,"props":113,"children":114},{},[115],{"type":43,"value":116},"Add new items to the group",{"type":37,"tag":103,"props":118,"children":119},{},[120],{"type":43,"value":121},"Creating items with identity + metadata",{"type":37,"tag":76,"props":123,"children":124},{},[125,134,139],{"type":37,"tag":103,"props":126,"children":127},{},[128],{"type":37,"tag":52,"props":129,"children":131},{"className":130},[],[132],{"type":43,"value":133},"Remove",{"type":37,"tag":103,"props":135,"children":136},{},[137],{"type":43,"value":138},"Remove items matching a pattern",{"type":37,"tag":103,"props":140,"children":141},{},[142],{"type":43,"value":143},"Excluding files or clearing a group",{"type":37,"tag":76,"props":145,"children":146},{},[147,156,161],{"type":37,"tag":103,"props":148,"children":149},{},[150],{"type":37,"tag":52,"props":151,"children":153},{"className":152},[],[154],{"type":43,"value":155},"Update",{"type":37,"tag":103,"props":157,"children":158},{},[159],{"type":43,"value":160},"Modify metadata on existing items",{"type":37,"tag":103,"props":162,"children":163},{},[164],{"type":43,"value":165},"Adding\u002Fchanging metadata without re-adding",{"type":37,"tag":167,"props":168,"children":170},"h3",{"id":169},"include-add-items",[171],{"type":43,"value":172},"Include — Add Items",{"type":37,"tag":174,"props":175,"children":180},"pre",{"className":176,"code":177,"language":178,"meta":179,"style":179},"language-xml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003CItemGroup>\n  \u003CCompile Include=\"Generated\\*.cs\">\n    \u003CAutoGen>true\u003C\u002FAutoGen>\n  \u003C\u002FCompile>\n\u003C\u002FItemGroup>\n","xml","",[181],{"type":37,"tag":52,"props":182,"children":183},{"__ignoreMap":179},[184,195,204,213,222],{"type":37,"tag":185,"props":186,"children":189},"span",{"class":187,"line":188},"line",1,[190],{"type":37,"tag":185,"props":191,"children":192},{},[193],{"type":43,"value":194},"\u003CItemGroup>\n",{"type":37,"tag":185,"props":196,"children":198},{"class":187,"line":197},2,[199],{"type":37,"tag":185,"props":200,"children":201},{},[202],{"type":43,"value":203},"  \u003CCompile Include=\"Generated\\*.cs\">\n",{"type":37,"tag":185,"props":205,"children":207},{"class":187,"line":206},3,[208],{"type":37,"tag":185,"props":209,"children":210},{},[211],{"type":43,"value":212},"    \u003CAutoGen>true\u003C\u002FAutoGen>\n",{"type":37,"tag":185,"props":214,"children":216},{"class":187,"line":215},4,[217],{"type":37,"tag":185,"props":218,"children":219},{},[220],{"type":43,"value":221},"  \u003C\u002FCompile>\n",{"type":37,"tag":185,"props":223,"children":225},{"class":187,"line":224},5,[226],{"type":37,"tag":185,"props":227,"children":228},{},[229],{"type":43,"value":230},"\u003C\u002FItemGroup>\n",{"type":37,"tag":167,"props":232,"children":234},{"id":233},"remove-subtract-items",[235],{"type":43,"value":236},"Remove — Subtract Items",{"type":37,"tag":174,"props":238,"children":240},{"className":176,"code":239,"language":178,"meta":179,"style":179},"\u003CItemGroup>\n  \u003C!-- Remove specific items -->\n  \u003CReference Remove=\"$(AdditionalExplicitAssemblyReferences)\" \u002F>\n\n  \u003C!-- Set subtraction: prior minus current -->\n  \u003C_CleanOrphanFileWrites Include=\"@(_CleanPriorFileWrites)\"\n      Exclude=\"@(_CleanCurrentFileWrites)\" \u002F>\n\n  \u003C!-- Clear an entire group -->\n  \u003C_Temporary Remove=\"@(_Temporary)\" \u002F>\n\u003C\u002FItemGroup>\n",[241],{"type":37,"tag":52,"props":242,"children":243},{"__ignoreMap":179},[244,251,259,267,276,284,293,302,310,319,328],{"type":37,"tag":185,"props":245,"children":246},{"class":187,"line":188},[247],{"type":37,"tag":185,"props":248,"children":249},{},[250],{"type":43,"value":194},{"type":37,"tag":185,"props":252,"children":253},{"class":187,"line":197},[254],{"type":37,"tag":185,"props":255,"children":256},{},[257],{"type":43,"value":258},"  \u003C!-- Remove specific items -->\n",{"type":37,"tag":185,"props":260,"children":261},{"class":187,"line":206},[262],{"type":37,"tag":185,"props":263,"children":264},{},[265],{"type":43,"value":266},"  \u003CReference Remove=\"$(AdditionalExplicitAssemblyReferences)\" \u002F>\n",{"type":37,"tag":185,"props":268,"children":269},{"class":187,"line":215},[270],{"type":37,"tag":185,"props":271,"children":273},{"emptyLinePlaceholder":272},true,[274],{"type":43,"value":275},"\n",{"type":37,"tag":185,"props":277,"children":278},{"class":187,"line":224},[279],{"type":37,"tag":185,"props":280,"children":281},{},[282],{"type":43,"value":283},"  \u003C!-- Set subtraction: prior minus current -->\n",{"type":37,"tag":185,"props":285,"children":287},{"class":187,"line":286},6,[288],{"type":37,"tag":185,"props":289,"children":290},{},[291],{"type":43,"value":292},"  \u003C_CleanOrphanFileWrites Include=\"@(_CleanPriorFileWrites)\"\n",{"type":37,"tag":185,"props":294,"children":296},{"class":187,"line":295},7,[297],{"type":37,"tag":185,"props":298,"children":299},{},[300],{"type":43,"value":301},"      Exclude=\"@(_CleanCurrentFileWrites)\" \u002F>\n",{"type":37,"tag":185,"props":303,"children":305},{"class":187,"line":304},8,[306],{"type":37,"tag":185,"props":307,"children":308},{"emptyLinePlaceholder":272},[309],{"type":43,"value":275},{"type":37,"tag":185,"props":311,"children":313},{"class":187,"line":312},9,[314],{"type":37,"tag":185,"props":315,"children":316},{},[317],{"type":43,"value":318},"  \u003C!-- Clear an entire group -->\n",{"type":37,"tag":185,"props":320,"children":322},{"class":187,"line":321},10,[323],{"type":37,"tag":185,"props":324,"children":325},{},[326],{"type":43,"value":327},"  \u003C_Temporary Remove=\"@(_Temporary)\" \u002F>\n",{"type":37,"tag":185,"props":329,"children":331},{"class":187,"line":330},11,[332],{"type":37,"tag":185,"props":333,"children":334},{},[335],{"type":43,"value":230},{"type":37,"tag":167,"props":337,"children":339},{"id":338},"update-modify-existing-items",[340],{"type":43,"value":341},"Update — Modify Existing Items",{"type":37,"tag":174,"props":343,"children":345},{"className":176,"code":344,"language":178,"meta":179,"style":179},"\u003CItemGroup>\n  \u003CEmbeddedResource Update=\"@(EmbeddedResource)\"\n      Condition=\"'%(NuGetPackageId)' == 'Microsoft.CodeAnalysis.Collections'\">\n    \u003CGenerateSource>true\u003C\u002FGenerateSource>\n    \u003CClassName>Microsoft.CodeAnalysis.Collections.SR\u003C\u002FClassName>\n  \u003C\u002FEmbeddedResource>\n\u003C\u002FItemGroup>\n",[346],{"type":37,"tag":52,"props":347,"children":348},{"__ignoreMap":179},[349,356,364,372,380,388,396],{"type":37,"tag":185,"props":350,"children":351},{"class":187,"line":188},[352],{"type":37,"tag":185,"props":353,"children":354},{},[355],{"type":43,"value":194},{"type":37,"tag":185,"props":357,"children":358},{"class":187,"line":197},[359],{"type":37,"tag":185,"props":360,"children":361},{},[362],{"type":43,"value":363},"  \u003CEmbeddedResource Update=\"@(EmbeddedResource)\"\n",{"type":37,"tag":185,"props":365,"children":366},{"class":187,"line":206},[367],{"type":37,"tag":185,"props":368,"children":369},{},[370],{"type":43,"value":371},"      Condition=\"'%(NuGetPackageId)' == 'Microsoft.CodeAnalysis.Collections'\">\n",{"type":37,"tag":185,"props":373,"children":374},{"class":187,"line":215},[375],{"type":37,"tag":185,"props":376,"children":377},{},[378],{"type":43,"value":379},"    \u003CGenerateSource>true\u003C\u002FGenerateSource>\n",{"type":37,"tag":185,"props":381,"children":382},{"class":187,"line":224},[383],{"type":37,"tag":185,"props":384,"children":385},{},[386],{"type":43,"value":387},"    \u003CClassName>Microsoft.CodeAnalysis.Collections.SR\u003C\u002FClassName>\n",{"type":37,"tag":185,"props":389,"children":390},{"class":187,"line":286},[391],{"type":37,"tag":185,"props":392,"children":393},{},[394],{"type":43,"value":395},"  \u003C\u002FEmbeddedResource>\n",{"type":37,"tag":185,"props":397,"children":398},{"class":187,"line":295},[399],{"type":37,"tag":185,"props":400,"children":401},{},[402],{"type":43,"value":230},{"type":37,"tag":46,"props":404,"children":405},{},[406,411],{"type":37,"tag":52,"props":407,"children":409},{"className":408},[],[410],{"type":43,"value":155},{"type":43,"value":412}," does not add items — it only modifies items already in the group.",{"type":37,"tag":61,"props":414,"children":416},{"id":415},"item-batching-metadata",[417],{"type":43,"value":418},"Item Batching — %(Metadata)",{"type":37,"tag":46,"props":420,"children":421},{},[422,424,430,432,438],{"type":43,"value":423},"When ",{"type":37,"tag":52,"props":425,"children":427},{"className":426},[],[428],{"type":43,"value":429},"%(Metadata)",{"type":43,"value":431}," appears in target attributes or task parameters, MSBuild ",{"type":37,"tag":433,"props":434,"children":435},"strong",{},[436],{"type":43,"value":437},"batches",{"type":43,"value":439}," execution per unique metadata value.",{"type":37,"tag":167,"props":441,"children":443},{"id":442},"target-level-batching-outputs",[444],{"type":43,"value":445},"Target-level batching (Outputs)",{"type":37,"tag":174,"props":447,"children":449},{"className":176,"code":448,"language":178,"meta":179,"style":179},"\u003CTarget Name=\"GenerateSatelliteAssemblies\"\n    Inputs=\"$(MSBuildAllProjects);@(_SatelliteAssemblyResourceInputs)\"\n    Outputs=\"$(IntermediateOutputPath)%(Culture)\\$(TargetName).resources.dll\">\n  \u003C!-- Runs once per unique Culture value -->\n\u003C\u002FTarget>\n",[450],{"type":37,"tag":52,"props":451,"children":452},{"__ignoreMap":179},[453,461,469,477,485],{"type":37,"tag":185,"props":454,"children":455},{"class":187,"line":188},[456],{"type":37,"tag":185,"props":457,"children":458},{},[459],{"type":43,"value":460},"\u003CTarget Name=\"GenerateSatelliteAssemblies\"\n",{"type":37,"tag":185,"props":462,"children":463},{"class":187,"line":197},[464],{"type":37,"tag":185,"props":465,"children":466},{},[467],{"type":43,"value":468},"    Inputs=\"$(MSBuildAllProjects);@(_SatelliteAssemblyResourceInputs)\"\n",{"type":37,"tag":185,"props":470,"children":471},{"class":187,"line":206},[472],{"type":37,"tag":185,"props":473,"children":474},{},[475],{"type":43,"value":476},"    Outputs=\"$(IntermediateOutputPath)%(Culture)\\$(TargetName).resources.dll\">\n",{"type":37,"tag":185,"props":478,"children":479},{"class":187,"line":215},[480],{"type":37,"tag":185,"props":481,"children":482},{},[483],{"type":43,"value":484},"  \u003C!-- Runs once per unique Culture value -->\n",{"type":37,"tag":185,"props":486,"children":487},{"class":187,"line":224},[488],{"type":37,"tag":185,"props":489,"children":490},{},[491],{"type":43,"value":492},"\u003C\u002FTarget>\n",{"type":37,"tag":167,"props":494,"children":496},{"id":495},"task-level-batching",[497],{"type":43,"value":498},"Task-level batching",{"type":37,"tag":174,"props":500,"children":502},{"className":176,"code":501,"language":178,"meta":179,"style":179},"\u003CCopy SourceFiles=\"@(_SourceItems)\"\n    DestinationFiles=\"@(_SourceItems->'$(OutDir)%(TargetPath)')\">\n\u003C\u002FCopy>\n",[503],{"type":37,"tag":52,"props":504,"children":505},{"__ignoreMap":179},[506,514,522],{"type":37,"tag":185,"props":507,"children":508},{"class":187,"line":188},[509],{"type":37,"tag":185,"props":510,"children":511},{},[512],{"type":43,"value":513},"\u003CCopy SourceFiles=\"@(_SourceItems)\"\n",{"type":37,"tag":185,"props":515,"children":516},{"class":187,"line":197},[517],{"type":37,"tag":185,"props":518,"children":519},{},[520],{"type":43,"value":521},"    DestinationFiles=\"@(_SourceItems->'$(OutDir)%(TargetPath)')\">\n",{"type":37,"tag":185,"props":523,"children":524},{"class":187,"line":206},[525],{"type":37,"tag":185,"props":526,"children":527},{},[528],{"type":43,"value":529},"\u003C\u002FCopy>\n",{"type":37,"tag":167,"props":531,"children":533},{"id":532},"per-item-filtering-with-condition",[534],{"type":43,"value":535},"Per-item filtering with Condition",{"type":37,"tag":174,"props":537,"children":539},{"className":176,"code":538,"language":178,"meta":179,"style":179},"\u003CItemGroup>\n  \u003C_ResxOutput Include=\"@(EmbeddedResource->'%(OutputResource)')\"\n      Condition=\"'%(EmbeddedResource.WithCulture)' == 'false'\" \u002F>\n\u003C\u002FItemGroup>\n",[540],{"type":37,"tag":52,"props":541,"children":542},{"__ignoreMap":179},[543,550,558,566],{"type":37,"tag":185,"props":544,"children":545},{"class":187,"line":188},[546],{"type":37,"tag":185,"props":547,"children":548},{},[549],{"type":43,"value":194},{"type":37,"tag":185,"props":551,"children":552},{"class":187,"line":197},[553],{"type":37,"tag":185,"props":554,"children":555},{},[556],{"type":43,"value":557},"  \u003C_ResxOutput Include=\"@(EmbeddedResource->'%(OutputResource)')\"\n",{"type":37,"tag":185,"props":559,"children":560},{"class":187,"line":206},[561],{"type":37,"tag":185,"props":562,"children":563},{},[564],{"type":43,"value":565},"      Condition=\"'%(EmbeddedResource.WithCulture)' == 'false'\" \u002F>\n",{"type":37,"tag":185,"props":567,"children":568},{"class":187,"line":215},[569],{"type":37,"tag":185,"props":570,"children":571},{},[572],{"type":43,"value":230},{"type":37,"tag":167,"props":574,"children":576},{"id":575},"batching-rules",[577],{"type":43,"value":578},"Batching rules",{"type":37,"tag":580,"props":581,"children":582},"ul",{},[583,610,620],{"type":37,"tag":584,"props":585,"children":586},"li",{},[587,592,594,600,602,608],{"type":37,"tag":52,"props":588,"children":590},{"className":589},[],[591],{"type":43,"value":429},{"type":43,"value":593}," in ",{"type":37,"tag":52,"props":595,"children":597},{"className":596},[],[598],{"type":43,"value":599},"Condition",{"type":43,"value":601}," or ",{"type":37,"tag":52,"props":603,"children":605},{"className":604},[],[606],{"type":43,"value":607},"Outputs",{"type":43,"value":609}," → target batches per unique value.",{"type":37,"tag":584,"props":611,"children":612},{},[613,618],{"type":37,"tag":52,"props":614,"children":616},{"className":615},[],[617],{"type":43,"value":429},{"type":43,"value":619}," in task parameters → task batches per unique value.",{"type":37,"tag":584,"props":621,"children":622},{},[623,636],{"type":37,"tag":433,"props":624,"children":625},{},[626,628,634],{"type":43,"value":627},"Do not mix ",{"type":37,"tag":52,"props":629,"children":631},{"className":630},[],[632],{"type":43,"value":633},"%()",{"type":43,"value":635}," from different item groups",{"type":43,"value":637}," in the same expression — this causes a cross-product (see Common Pitfalls).",{"type":37,"tag":61,"props":639,"children":641},{"id":640},"item-transforms-item-expression",[642],{"type":43,"value":643},"Item Transforms — @(Item->'expression')",{"type":37,"tag":46,"props":645,"children":646},{},[647],{"type":43,"value":648},"Transforms create new item lists by applying an expression to each item:",{"type":37,"tag":174,"props":650,"children":652},{"className":176,"code":651,"language":178,"meta":179,"style":179},"\u003C!-- Transform file paths to destinations -->\n\u003CCopy SourceFiles=\"@(IntermediateAssembly)\"\n    DestinationFiles=\"@(IntermediateAssembly->'$(OutDir)%(Filename)%(Extension)')\"\u002F>\n\n\u003C!-- Transform with separator for display -->\n\u003CMessage Text=\"Files: @(Compile->'%(Filename)', ', ')\" \u002F>\n",[653],{"type":37,"tag":52,"props":654,"children":655},{"__ignoreMap":179},[656,664,672,680,687,695],{"type":37,"tag":185,"props":657,"children":658},{"class":187,"line":188},[659],{"type":37,"tag":185,"props":660,"children":661},{},[662],{"type":43,"value":663},"\u003C!-- Transform file paths to destinations -->\n",{"type":37,"tag":185,"props":665,"children":666},{"class":187,"line":197},[667],{"type":37,"tag":185,"props":668,"children":669},{},[670],{"type":43,"value":671},"\u003CCopy SourceFiles=\"@(IntermediateAssembly)\"\n",{"type":37,"tag":185,"props":673,"children":674},{"class":187,"line":206},[675],{"type":37,"tag":185,"props":676,"children":677},{},[678],{"type":43,"value":679},"    DestinationFiles=\"@(IntermediateAssembly->'$(OutDir)%(Filename)%(Extension)')\"\u002F>\n",{"type":37,"tag":185,"props":681,"children":682},{"class":187,"line":215},[683],{"type":37,"tag":185,"props":684,"children":685},{"emptyLinePlaceholder":272},[686],{"type":43,"value":275},{"type":37,"tag":185,"props":688,"children":689},{"class":187,"line":224},[690],{"type":37,"tag":185,"props":691,"children":692},{},[693],{"type":43,"value":694},"\u003C!-- Transform with separator for display -->\n",{"type":37,"tag":185,"props":696,"children":697},{"class":187,"line":286},[698],{"type":37,"tag":185,"props":699,"children":700},{},[701],{"type":43,"value":702},"\u003CMessage Text=\"Files: @(Compile->'%(Filename)', ', ')\" \u002F>\n",{"type":37,"tag":61,"props":704,"children":706},{"id":705},"exclude-pattern-set-subtraction-on-include",[707],{"type":43,"value":708},"Exclude Pattern — Set Subtraction on Include",{"type":37,"tag":174,"props":710,"children":712},{"className":176,"code":711,"language":178,"meta":179,"style":179},"\u003CItemGroup>\n  \u003CCompile Include=\"**\\*.cs\" Exclude=\"Generated\\**;Tests\\**\" \u002F>\n\u003C\u002FItemGroup>\n",[713],{"type":37,"tag":52,"props":714,"children":715},{"__ignoreMap":179},[716,723,731],{"type":37,"tag":185,"props":717,"children":718},{"class":187,"line":188},[719],{"type":37,"tag":185,"props":720,"children":721},{},[722],{"type":43,"value":194},{"type":37,"tag":185,"props":724,"children":725},{"class":187,"line":197},[726],{"type":37,"tag":185,"props":727,"children":728},{},[729],{"type":43,"value":730},"  \u003CCompile Include=\"**\\*.cs\" Exclude=\"Generated\\**;Tests\\**\" \u002F>\n",{"type":37,"tag":185,"props":732,"children":733},{"class":187,"line":206},[734],{"type":37,"tag":185,"props":735,"children":736},{},[737],{"type":43,"value":230},{"type":37,"tag":46,"props":739,"children":740},{},[741,747,749,754,756,761,762,767],{"type":37,"tag":52,"props":742,"children":744},{"className":743},[],[745],{"type":43,"value":746},"Exclude",{"type":43,"value":748}," only works on ",{"type":37,"tag":52,"props":750,"children":752},{"className":751},[],[753],{"type":43,"value":111},{"type":43,"value":755}," — it cannot be used with ",{"type":37,"tag":52,"props":757,"children":759},{"className":758},[],[760],{"type":43,"value":155},{"type":43,"value":601},{"type":37,"tag":52,"props":763,"children":765},{"className":764},[],[766],{"type":43,"value":133},{"type":43,"value":59},{"type":37,"tag":61,"props":769,"children":771},{"id":770},"conditional-item-inclusion",[772],{"type":43,"value":773},"Conditional Item Inclusion",{"type":37,"tag":174,"props":775,"children":777},{"className":176,"code":776,"language":178,"meta":179,"style":179},"\u003C!-- Condition on ItemGroup — all or nothing -->\n\u003CItemGroup Condition=\"'$(NetCoreBuild)' == 'true'\">\n  \u003CPackageReference Include=\"System.IO.Pipelines\" \u002F>\n\u003C\u002FItemGroup>\n\n\u003C!-- Condition on individual items -->\n\u003CItemGroup>\n  \u003CPackageReference Include=\"System.IO.Pipelines\"\n      Condition=\"'$(NetCoreBuild)' == 'true'\" \u002F>\n\u003C\u002FItemGroup>\n",[778],{"type":37,"tag":52,"props":779,"children":780},{"__ignoreMap":179},[781,789,797,805,812,819,827,834,842,850],{"type":37,"tag":185,"props":782,"children":783},{"class":187,"line":188},[784],{"type":37,"tag":185,"props":785,"children":786},{},[787],{"type":43,"value":788},"\u003C!-- Condition on ItemGroup — all or nothing -->\n",{"type":37,"tag":185,"props":790,"children":791},{"class":187,"line":197},[792],{"type":37,"tag":185,"props":793,"children":794},{},[795],{"type":43,"value":796},"\u003CItemGroup Condition=\"'$(NetCoreBuild)' == 'true'\">\n",{"type":37,"tag":185,"props":798,"children":799},{"class":187,"line":206},[800],{"type":37,"tag":185,"props":801,"children":802},{},[803],{"type":43,"value":804},"  \u003CPackageReference Include=\"System.IO.Pipelines\" \u002F>\n",{"type":37,"tag":185,"props":806,"children":807},{"class":187,"line":215},[808],{"type":37,"tag":185,"props":809,"children":810},{},[811],{"type":43,"value":230},{"type":37,"tag":185,"props":813,"children":814},{"class":187,"line":224},[815],{"type":37,"tag":185,"props":816,"children":817},{"emptyLinePlaceholder":272},[818],{"type":43,"value":275},{"type":37,"tag":185,"props":820,"children":821},{"class":187,"line":286},[822],{"type":37,"tag":185,"props":823,"children":824},{},[825],{"type":43,"value":826},"\u003C!-- Condition on individual items -->\n",{"type":37,"tag":185,"props":828,"children":829},{"class":187,"line":295},[830],{"type":37,"tag":185,"props":831,"children":832},{},[833],{"type":43,"value":194},{"type":37,"tag":185,"props":835,"children":836},{"class":187,"line":304},[837],{"type":37,"tag":185,"props":838,"children":839},{},[840],{"type":43,"value":841},"  \u003CPackageReference Include=\"System.IO.Pipelines\"\n",{"type":37,"tag":185,"props":843,"children":844},{"class":187,"line":312},[845],{"type":37,"tag":185,"props":846,"children":847},{},[848],{"type":43,"value":849},"      Condition=\"'$(NetCoreBuild)' == 'true'\" \u002F>\n",{"type":37,"tag":185,"props":851,"children":852},{"class":187,"line":321},[853],{"type":37,"tag":185,"props":854,"children":855},{},[856],{"type":43,"value":230},{"type":37,"tag":61,"props":858,"children":860},{"id":859},"privateassets-on-toolanalyzer-packages",[861],{"type":43,"value":862},"PrivateAssets on Tool\u002FAnalyzer Packages",{"type":37,"tag":174,"props":864,"children":866},{"className":176,"code":865,"language":178,"meta":179,"style":179},"\u003CItemGroup>\n  \u003CPackageReference Include=\"Microsoft.CodeAnalysis.NetAnalyzers\" PrivateAssets=\"all\" \u002F>\n  \u003CPackageReference Include=\"StyleCop.Analyzers\" PrivateAssets=\"all\" \u002F>\n\u003C\u002FItemGroup>\n",[867],{"type":37,"tag":52,"props":868,"children":869},{"__ignoreMap":179},[870,877,885,893],{"type":37,"tag":185,"props":871,"children":872},{"class":187,"line":188},[873],{"type":37,"tag":185,"props":874,"children":875},{},[876],{"type":43,"value":194},{"type":37,"tag":185,"props":878,"children":879},{"class":187,"line":197},[880],{"type":37,"tag":185,"props":881,"children":882},{},[883],{"type":43,"value":884},"  \u003CPackageReference Include=\"Microsoft.CodeAnalysis.NetAnalyzers\" PrivateAssets=\"all\" \u002F>\n",{"type":37,"tag":185,"props":886,"children":887},{"class":187,"line":206},[888],{"type":37,"tag":185,"props":889,"children":890},{},[891],{"type":43,"value":892},"  \u003CPackageReference Include=\"StyleCop.Analyzers\" PrivateAssets=\"all\" \u002F>\n",{"type":37,"tag":185,"props":894,"children":895},{"class":187,"line":215},[896],{"type":37,"tag":185,"props":897,"children":898},{},[899],{"type":43,"value":230},{"type":37,"tag":61,"props":901,"children":903},{"id":902},"common-pitfalls",[904],{"type":43,"value":905},"Common Pitfalls",{"type":37,"tag":167,"props":907,"children":909},{"id":908},"cross-product-batching",[910],{"type":43,"value":911},"Cross-product batching",{"type":37,"tag":46,"props":913,"children":914},{},[915,917,922],{"type":43,"value":916},"Referencing ",{"type":37,"tag":52,"props":918,"children":920},{"className":919},[],[921],{"type":43,"value":429},{"type":43,"value":923}," from two different item groups creates O(N×M) executions:",{"type":37,"tag":174,"props":925,"children":927},{"className":176,"code":926,"language":178,"meta":179,"style":179},"\u003C!-- BAD: Cross-product of @(Source) × @(Config) -->\n\u003CExec Command=\"process %(Source.Identity) with %(Config.Identity)\" \u002F>\n\n\u003C!-- GOOD: Reference one group via batching, the other via property -->\n\u003CExec Command=\"process %(Source.Identity) with $(ConfigFile)\" \u002F>\n",[928],{"type":37,"tag":52,"props":929,"children":930},{"__ignoreMap":179},[931,939,947,954,962],{"type":37,"tag":185,"props":932,"children":933},{"class":187,"line":188},[934],{"type":37,"tag":185,"props":935,"children":936},{},[937],{"type":43,"value":938},"\u003C!-- BAD: Cross-product of @(Source) × @(Config) -->\n",{"type":37,"tag":185,"props":940,"children":941},{"class":187,"line":197},[942],{"type":37,"tag":185,"props":943,"children":944},{},[945],{"type":43,"value":946},"\u003CExec Command=\"process %(Source.Identity) with %(Config.Identity)\" \u002F>\n",{"type":37,"tag":185,"props":948,"children":949},{"class":187,"line":206},[950],{"type":37,"tag":185,"props":951,"children":952},{"emptyLinePlaceholder":272},[953],{"type":43,"value":275},{"type":37,"tag":185,"props":955,"children":956},{"class":187,"line":215},[957],{"type":37,"tag":185,"props":958,"children":959},{},[960],{"type":43,"value":961},"\u003C!-- GOOD: Reference one group via batching, the other via property -->\n",{"type":37,"tag":185,"props":963,"children":964},{"class":187,"line":224},[965],{"type":37,"tag":185,"props":966,"children":967},{},[968],{"type":43,"value":969},"\u003CExec Command=\"process %(Source.Identity) with $(ConfigFile)\" \u002F>\n",{"type":37,"tag":167,"props":971,"children":973},{"id":972},"generated-files-in-source-tree",[974],{"type":43,"value":975},"Generated files in source tree",{"type":37,"tag":46,"props":977,"children":978},{},[979,981,987],{"type":43,"value":980},"Write to ",{"type":37,"tag":52,"props":982,"children":984},{"className":983},[],[985],{"type":43,"value":986},"$(IntermediateOutputPath)",{"type":43,"value":988}," (obj\u002F), not the source directory. Source-tree generation pollutes version control and can cause duplicate compilation via globs.",{"type":37,"tag":167,"props":990,"children":992},{"id":991},"missing-filewrites",[993],{"type":43,"value":994},"Missing FileWrites",{"type":37,"tag":46,"props":996,"children":997},{},[998,1000,1006,1008,1014],{"type":43,"value":999},"Every file created during a target must be added to ",{"type":37,"tag":52,"props":1001,"children":1003},{"className":1002},[],[1004],{"type":43,"value":1005},"@(FileWrites)",{"type":43,"value":1007}," for ",{"type":37,"tag":52,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":43,"value":1013},"dotnet clean",{"type":43,"value":1015}," support.",{"type":37,"tag":1017,"props":1018,"children":1019},"style",{},[1020],{"type":43,"value":1021},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1023,"total":1130},[1024,1043,1058,1076,1090,1110,1120],{"slug":1025,"name":1025,"fn":1026,"description":1027,"org":1028,"tags":1029,"stars":19,"repoUrl":20,"updatedAt":1042},"analyzing-dotnet-performance","analyze .NET code for performance anti-patterns","Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I\u002FO with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1030,1033,1036,1039],{"name":1031,"slug":1032,"type":15},".NET","net",{"name":1034,"slug":1035,"type":15},"Code Analysis","code-analysis",{"name":1037,"slug":1038,"type":15},"Debugging","debugging",{"name":1040,"slug":1041,"type":15},"Performance","performance","2026-07-12T08:23:25.400375",{"slug":1044,"name":1044,"fn":1045,"description":1046,"org":1047,"tags":1048,"stars":19,"repoUrl":20,"updatedAt":1057},"android-tombstone-symbolication","symbolicate .NET runtime frames in Android tombstones","Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java\u002FKotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1049,1050,1053,1054],{"name":1031,"slug":1032,"type":15},{"name":1051,"slug":1052,"type":15},"Android","android",{"name":1037,"slug":1038,"type":15},{"name":1055,"slug":1056,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":1059,"name":1059,"fn":1060,"description":1061,"org":1062,"tags":1063,"stars":19,"repoUrl":20,"updatedAt":1075},"apple-crash-symbolication","symbolicate .NET runtime frames in crash logs","Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift\u002FObjective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1064,1065,1066,1069,1072],{"name":1031,"slug":1032,"type":15},{"name":1037,"slug":1038,"type":15},{"name":1067,"slug":1068,"type":15},"iOS","ios",{"name":1070,"slug":1071,"type":15},"macOS","macos",{"name":1073,"slug":1074,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":1077,"name":1077,"fn":1078,"description":1079,"org":1080,"tags":1081,"stars":19,"repoUrl":20,"updatedAt":1089},"assertion-quality","evaluate assertion quality in test suites","Analyzes the variety and depth of assertions across test suites in any language. Use when the user asks to evaluate assertion quality, find shallow tests, identify assertion-free tests (no assertions or only trivial ones like Assert.IsNotNull \u002F toBeTruthy()), flag self-referential or tautological assertions, measure assertion diversity, or audit whether tests verify different facets of behavior. Polyglot: .NET, Python, TS\u002FJS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. DO NOT USE FOR: writing new tests (use code-testing-agent \u002F writing-mstest-tests), mutation reasoning about whether tests would catch a bug (use test-gap-analysis), or a general severity-ranked anti-pattern audit (use test-anti-patterns), fixing or rewriting assertions, or writing, fixing, or modernizing MSTest tests, assertions, or attributes (use writing-mstest-tests).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1082,1083,1086],{"name":1034,"slug":1035,"type":15},{"name":1084,"slug":1085,"type":15},"QA","qa",{"name":1087,"slug":1088,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":1091,"name":1091,"fn":1092,"description":1093,"org":1094,"tags":1095,"stars":19,"repoUrl":20,"updatedAt":1109},"author-component","create and review Blazor components","Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable, CancellationToken, CSS isolation, code-behind. DO NOT USE FOR: creating new projects (use create-blazor-project), JavaScript interop or calling browser APIs from Blazor (use use-js-interop), forms and validation (use collect-user-input), prerendering issues (use support-prerendering), HTTP data fetching patterns (use fetch-and-send-data), coordinating state between unrelated components (use coordinate-components).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1096,1097,1100,1103,1106],{"name":1031,"slug":1032,"type":15},{"name":1098,"slug":1099,"type":15},"Blazor","blazor",{"name":1101,"slug":1102,"type":15},"C#","csharp",{"name":1104,"slug":1105,"type":15},"UI Components","ui-components",{"name":1107,"slug":1108,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":1111,"name":1111,"fn":1112,"description":1113,"org":1114,"tags":1115,"stars":19,"repoUrl":20,"updatedAt":1119},"binlog-failure-analysis","analyze MSBuild binary logs","Analyze MSBuild binary logs to diagnose build failures. USE FOR: build errors that are unclear from console output, diagnosing cascading failures across multi-project builds, tracing MSBuild target execution order, and generally any MSBuild build issues. Requires an existing .binlog file. DO NOT USE FOR: generating binlogs (use binlog-generation), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1116,1117,1118],{"name":1034,"slug":1035,"type":15},{"name":1037,"slug":1038,"type":15},{"name":1055,"slug":1056,"type":15},"2026-07-12T08:21:34.637923",{"slug":1121,"name":1121,"fn":1122,"description":1123,"org":1124,"tags":1125,"stars":19,"repoUrl":20,"updatedAt":1129},"binlog-generation","generate MSBuild binary logs for diagnostics","Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding \u002Fbl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors or performance. Requires MSBuild 17.8+ \u002F .NET 8 SDK+ for {} placeholder; PowerShell needs -bl:{{}}. DO NOT USE FOR: non-MSBuild build systems (npm, Maven, CMake), analyzing an existing binlog (use binlog-failure-analysis instead).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1126,1127,1128],{"name":13,"slug":14,"type":15},{"name":1037,"slug":1038,"type":15},{"name":17,"slug":18,"type":15},"2026-07-19T05:38:19.340791",96,{"items":1132,"total":1237},[1133,1145,1152,1159,1167,1173,1181,1187,1193,1203,1216,1227],{"slug":1134,"name":1134,"fn":1135,"description":1136,"org":1137,"tags":1138,"stars":1142,"repoUrl":1143,"updatedAt":1144},"multithreaded-task-migration","migrate MSBuild tasks to multithreaded mode","Guide for migrating MSBuild tasks to multithreaded mode support, including compatibility red-team review. Use this when converting tasks to thread-safe versions, implementing IMultiThreadableTask, adding TaskEnvironment support, or auditing migrations for behavioral compatibility.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1139,1140,1141],{"name":1031,"slug":1032,"type":15},{"name":17,"slug":18,"type":15},{"name":1040,"slug":1041,"type":15},5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":1025,"name":1025,"fn":1026,"description":1027,"org":1146,"tags":1147,"stars":19,"repoUrl":20,"updatedAt":1042},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1148,1149,1150,1151],{"name":1031,"slug":1032,"type":15},{"name":1034,"slug":1035,"type":15},{"name":1037,"slug":1038,"type":15},{"name":1040,"slug":1041,"type":15},{"slug":1044,"name":1044,"fn":1045,"description":1046,"org":1153,"tags":1154,"stars":19,"repoUrl":20,"updatedAt":1057},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1155,1156,1157,1158],{"name":1031,"slug":1032,"type":15},{"name":1051,"slug":1052,"type":15},{"name":1037,"slug":1038,"type":15},{"name":1055,"slug":1056,"type":15},{"slug":1059,"name":1059,"fn":1060,"description":1061,"org":1160,"tags":1161,"stars":19,"repoUrl":20,"updatedAt":1075},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1162,1163,1164,1165,1166],{"name":1031,"slug":1032,"type":15},{"name":1037,"slug":1038,"type":15},{"name":1067,"slug":1068,"type":15},{"name":1070,"slug":1071,"type":15},{"name":1073,"slug":1074,"type":15},{"slug":1077,"name":1077,"fn":1078,"description":1079,"org":1168,"tags":1169,"stars":19,"repoUrl":20,"updatedAt":1089},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1170,1171,1172],{"name":1034,"slug":1035,"type":15},{"name":1084,"slug":1085,"type":15},{"name":1087,"slug":1088,"type":15},{"slug":1091,"name":1091,"fn":1092,"description":1093,"org":1174,"tags":1175,"stars":19,"repoUrl":20,"updatedAt":1109},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1176,1177,1178,1179,1180],{"name":1031,"slug":1032,"type":15},{"name":1098,"slug":1099,"type":15},{"name":1101,"slug":1102,"type":15},{"name":1104,"slug":1105,"type":15},{"name":1107,"slug":1108,"type":15},{"slug":1111,"name":1111,"fn":1112,"description":1113,"org":1182,"tags":1183,"stars":19,"repoUrl":20,"updatedAt":1119},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1184,1185,1186],{"name":1034,"slug":1035,"type":15},{"name":1037,"slug":1038,"type":15},{"name":1055,"slug":1056,"type":15},{"slug":1121,"name":1121,"fn":1122,"description":1123,"org":1188,"tags":1189,"stars":19,"repoUrl":20,"updatedAt":1129},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1190,1191,1192],{"name":13,"slug":14,"type":15},{"name":1037,"slug":1038,"type":15},{"name":17,"slug":18,"type":15},{"slug":1194,"name":1194,"fn":1195,"description":1196,"org":1197,"tags":1198,"stars":19,"repoUrl":20,"updatedAt":1202},"build-parallelism","optimize MSBuild build parallelism","Diagnose and fix under-parallelized MSBuild builds. USE WHEN a multi-project solution build is slower than expected, doesn't speed up when you add cores, pegs a single core while others idle, or you want to know why `-m` isn't helping. Note: `\u002Fmaxcpucount` default is 1 (sequential) — always pass `-m` for parallel builds. Covers finding the critical path (longest serial ProjectReference chain), graph build (`\u002Fgraph`), BuildInParallel, and solution filters (`.slnf`). DO NOT USE FOR: single-project builds, incremental issues (use incremental-build), compilation slowness inside one project (use build-perf-diagnostics), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1199,1200,1201],{"name":1031,"slug":1032,"type":15},{"name":17,"slug":18,"type":15},{"name":1040,"slug":1041,"type":15},"2026-07-19T05:38:18.364937",{"slug":1204,"name":1204,"fn":1205,"description":1206,"org":1207,"tags":1208,"stars":19,"repoUrl":20,"updatedAt":1215},"build-perf-baseline","establish and optimize build performance baselines","Establish build performance baselines and apply systematic optimization techniques. USE FOR: diagnosing slow builds, establishing before\u002Fafter measurements (cold, warm, no-op scenarios), applying optimization strategies like MSBuild Server, static graph builds, artifacts output, and dependency graph trimming. Start here before diving into build-perf-diagnostics, incremental-build, or build-parallelism. DO NOT USE FOR: non-MSBuild build systems, detailed bottleneck analysis (use build-perf-diagnostics after baselining).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1209,1210,1213,1214],{"name":17,"slug":18,"type":15},{"name":1211,"slug":1212,"type":15},"Monitoring","monitoring",{"name":1040,"slug":1041,"type":15},{"name":1087,"slug":1088,"type":15},"2026-07-12T08:21:35.865649",{"slug":1217,"name":1217,"fn":1218,"description":1219,"org":1220,"tags":1221,"stars":19,"repoUrl":20,"updatedAt":1226},"build-perf-diagnostics","diagnose MSBuild build performance bottlenecks","Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization below 80%, excessive Copy tasks, NuGet restore running every build. Covers timeline analysis, Target\u002FTask Performance Summary interpretation, and 7 common bottleneck categories. Use after build-perf-baseline has established measurements. DO NOT USE FOR: establishing initial baselines (use build-perf-baseline first), fixing incremental build issues (use incremental-build), parallelism tuning (use build-parallelism), non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1222,1223,1224,1225],{"name":1031,"slug":1032,"type":15},{"name":1037,"slug":1038,"type":15},{"name":17,"slug":18,"type":15},{"name":1040,"slug":1041,"type":15},"2026-07-12T08:21:40.961722",{"slug":1228,"name":1228,"fn":1229,"description":1230,"org":1231,"tags":1232,"stars":19,"repoUrl":20,"updatedAt":1236},"check-bin-obj-clash","detect MSBuild output path conflicts","Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing\u002Foverwritten outputs in multi-project or multi-targeting builds where bin\u002Fobj (or project.assets.json) collide. Common causes: shared OutputPath, missing AppendTargetFrameworkToOutputPath, extra global properties (e.g. PublishReadyToRun), or SetTargetFramework on a ProjectReference to a single-targeting project. DO NOT USE FOR: file access errors unrelated to MSBuild (OS-level locking), single-project single-TFM builds, non-MSBuild build systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1233,1234,1235],{"name":1037,"slug":1038,"type":15},{"name":17,"slug":18,"type":15},{"name":1084,"slug":1085,"type":15},"2026-07-19T05:38:14.336279",144]