[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-check-bin-obj-clash":3,"mdc--7hppdo-key":34,"related-org-dotnet-check-bin-obj-clash":3188,"related-repo-dotnet-check-bin-obj-clash":3346},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":29,"sourceUrl":32,"mdContent":33},"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},"dotnet",".NET (Microsoft)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdotnet.png",[12,16,19],{"name":13,"slug":14,"type":15},"QA","qa","tag",{"name":17,"slug":18,"type":15},"Engineering","engineering",{"name":20,"slug":21,"type":15},"Debugging","debugging",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-19T05:38:14.336279","MIT",332,[28],"agent-skills",{"repoUrl":23,"stars":22,"forks":26,"topics":30,"description":31},[28],"Repository for skills to assist AI coding agents with .NET and C#","https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fdotnet-msbuild\u002Fskills\u002Fcheck-bin-obj-clash","---\nname: check-bin-obj-clash\ndescription: \"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.\"\nlicense: MIT\n---\n\n# Detecting OutputPath and IntermediateOutputPath Clashes\n\n## Overview\n\nThis skill helps identify when multiple MSBuild project evaluations share the same `OutputPath` or `IntermediateOutputPath`. This is a common source of build failures including:\n\n- File access conflicts during parallel builds\n- Missing or overwritten output files\n- Intermittent build failures\n- \"File in use\" errors\n- **NuGet restore errors like `Cannot create a file when that file already exists`** - this strongly indicates multiple projects share the same `IntermediateOutputPath` where `project.assets.json` is written\n\nClashes can occur between:\n- **Different projects** sharing the same output directory\n- **Multi-targeting builds** (e.g., `TargetFrameworks=net8.0;net9.0`) where the path doesn't include the target framework\n- **Multiple solution builds** where the same project is built from different solutions in a single build\n\n**Note:** Project instances with `BuildProjectReferences=false` should be **ignored** when analyzing clashes - these are P2P reference resolution builds that only query metadata (via `GetTargetPath`) and do not actually write to output directories.\n\n## When to Use This Skill\n\n**Invoke this skill immediately when you see:**\n- `Cannot create a file when that file already exists` during NuGet restore\n- `The process cannot access the file because it is being used by another process`\n- Intermittent build failures that succeed on retry\n- Missing output files or unexpected overwriting\n\n## Step 1: Generate a Binary Log\n\nUse the `binlog-generation` skill to generate a binary log with the correct naming convention.\n\n## Primary workflow — binlog MCP\n\nThe MCP server exposes structured tools for inspecting a `.binlog` without\nparsing text logs. Call them directly instead of replaying the binlog to a text\nfile. Call `tools\u002Flist` for the MCP first if you are unsure which tools are available.\n\n**Important constraints:**\n- The `.binlog` file is a **binary format** — do NOT try to `cat`, `head`, `strings`, or read it directly. Use only the MCP tools to query it.\n- **Synthesize findings as you go.** Do not spend all available time investigating — once you have enough evidence, present your conclusions.\n\n### Step 2: Get an overview and list projects\n\nUse the MCP overview and projects tools to understand the build and list all projects that participated.\n\n### Step 3: Check evaluations and global properties\n\nUse the MCP `evaluations` and `evaluation_global_properties` tools to find all evaluations per project. Look for:\n- Multiple evaluations for the same project (indicates multi-targeting or multiple build configurations)\n- Differing global properties between evaluations (`TargetFramework`, `Configuration`, `RuntimeIdentifier`, `SolutionFileName`, `PublishReadyToRun`, etc.)\n\n### Step 4: Get output paths for each evaluation\n\nUse the MCP properties tool to query `OutputPath`, `IntermediateOutputPath`, `BaseOutputPath`, and `BaseIntermediateOutputPath` for each project evaluation.\n\n### Step 5: Check for double writes\n\nUse the MCP double_writes tool if available — it directly detects files written by multiple project instances.\n\n### Step 6: Identify clashes\n\nCompare the `OutputPath` and `IntermediateOutputPath` values across all evaluations:\n1. **Normalize paths** - Convert to absolute paths and normalize separators\n2. **Group by path** - Find evaluations that share the same OutputPath or IntermediateOutputPath\n3. **Filter out non-build evaluations** - Exclude `BuildProjectReferences=false` instances (P2P queries)\n4. **Report clashes** - Any group with more than one evaluation indicates a clash\n\n## Fallback workflow — text-log replay (when MCP is unavailable)\n\nUse this only when the MCP server cannot be started.\n\nReplay the binlog to a diagnostic text log, then grep for the same signals the MCP tools surface:\n\n```bash\ndotnet msbuild build.binlog -noconlog -fl -flp:v=diag;logfile=full.log\n```\n\nThen extract the clash signals:\n\n- **Projects & evaluations** — list evaluation starts and count them per project: `grep 'Evaluation started' full.log | grep -oiE '\"[^\"]+\\.[a-z]+proj\"' | sort | uniq -c`. Matching the full **quoted path** keeps same-named projects in different directories distinct (and tolerates spaces in paths); a path with a count ≥ 2 was evaluated more than once (multi-targeting or extra global properties). (`grep -c` alone only totals evaluations across the whole log, so it can't reveal per-project duplication.)\n- **Output paths** — `grep -iE 'OutputPath[[:space:]]*=|IntermediateOutputPath[[:space:]]*=|BaseOutputPath[[:space:]]*=|BaseIntermediateOutputPath[[:space:]]*=' full.log | sort -u`, or query a project directly: `dotnet msbuild MyProject.csproj -getProperty:OutputPath` (and `IntermediateOutputPath`, `BaseIntermediateOutputPath`).\n- **Distinguishing global properties** — `grep -iE 'TargetFramework|Configuration|Platform|RuntimeIdentifier|SolutionFileName|PublishReadyToRun' full.log`. See the [Global Properties to Check](#global-properties-to-check-when-comparing-evaluations) table for which affect the path and which just fork a redundant instance.\n- **Corroborating evidence (optional)** — `grep 'Target \"CopyFilesToOutputDirectory\"' full.log` plus `grep 'SkipUnchangedFiles' full.log` show a second instance writing (or skipping a masked write) to the same path; a long vs ~0 ms `CoreCompile` distinguishes the real build from a redundant instance.\n\n**Then identify clashes:** normalize paths to absolute, group evaluations by `OutputPath` and by `IntermediateOutputPath`, and exclude `BuildProjectReferences=false` (P2P queries) — plus, for `OutputPath` only, `MSBuildRestoreSessionId` restore evaluations. Any group with more than one remaining evaluation is a clash.\n\n## Common Causes and Fixes\n\n### Multi-targeting without TargetFramework in path\n\n**Problem:** Project uses `TargetFrameworks` but OutputPath doesn't vary by framework.\n\n```xml\n\u003C!-- BAD: Same path for all frameworks -->\n\u003COutputPath>bin\\$(Configuration)\\\u003C\u002FOutputPath>\n```\n\n**Fix:** Include TargetFramework in the path:\n\n```xml\n\u003C!-- GOOD: Path varies by framework -->\n\u003COutputPath>bin\\$(Configuration)\\$(TargetFramework)\\\u003C\u002FOutputPath>\n```\n\nOr rely on SDK defaults which handle this automatically:\n\n```xml\n\u003CAppendTargetFrameworkToOutputPath>true\u003C\u002FAppendTargetFrameworkToOutputPath>\n\u003CAppendTargetFrameworkToIntermediateOutputPath>true\u003C\u002FAppendTargetFrameworkToIntermediateOutputPath>\n```\n\n### Shared output directory across projects (CANNOT be fixed with AppendTargetFramework)\n\n**Problem:** Multiple projects explicitly set the same `BaseOutputPath` or `BaseIntermediateOutputPath`.\n\n```xml\n\u003C!-- Project A - Directory.Build.props -->\n\u003CBaseOutputPath>..\\SharedOutput\\\u003C\u002FBaseOutputPath>\n\u003CBaseIntermediateOutputPath>..\\SharedObj\\\u003C\u002FBaseIntermediateOutputPath>\n\n\u003C!-- Project B - Directory.Build.props -->\n\u003CBaseOutputPath>..\\SharedOutput\\\u003C\u002FBaseOutputPath>\n\u003CBaseIntermediateOutputPath>..\\SharedObj\\\u003C\u002FBaseIntermediateOutputPath>\n```\n\n**IMPORTANT:** Even with `AppendTargetFrameworkToOutputPath=true`, this will still clash! .NET writes certain files directly to the `IntermediateOutputPath` without the TargetFramework suffix, including:\n\n- `project.assets.json` (NuGet restore output)\n- Other NuGet-related files\n\nThis causes errors like `Cannot create a file when that file already exists` during parallel restore.\n\n**Fix:** Each project MUST have a unique `BaseIntermediateOutputPath`. Do not share intermediate output directories across projects:\n\n```xml\n\u003C!-- Project A -->\n\u003CBaseIntermediateOutputPath>..\\obj\\ProjectA\\\u003C\u002FBaseIntermediateOutputPath>\n\n\u003C!-- Project B -->\n\u003CBaseIntermediateOutputPath>..\\obj\\ProjectB\\\u003C\u002FBaseIntermediateOutputPath>\n```\n\nOr simply use the SDK defaults which place `obj` inside each project's directory.\n\n### RuntimeIdentifier builds clashing\n\n**Problem:** Building for multiple RIDs without RID in path.\n\n**Fix:** Ensure RuntimeIdentifier is in the path:\n\n```xml\n\u003CAppendRuntimeIdentifierToOutputPath>true\u003C\u002FAppendRuntimeIdentifierToOutputPath>\n```\n\n### Multiple solutions building the same project\n\n**Problem:** A single build invokes multiple solutions (e.g., via MSBuild task or command line) that include the same project. Each solution build evaluates and builds the project independently, with different `Solution*` global properties that don't affect the output path.\n\n**How to detect:** Compare `SolutionFileName` and `CurrentSolutionConfigurationContents` across evaluations for the same project. Different values indicate multi-solution builds. For example:\n\n| Property | Eval from Solution A | Eval from Solution B |\n|---|---|---|\n| `SolutionFileName` | `BuildAnalyzers.sln` | `Main.slnx` |\n| `CurrentSolutionConfigurationContents` | 1 project entry | ~49 project entries |\n| `OutputPath` | `bin\\Release\\netstandard2.0\\` | `bin\\Release\\netstandard2.0\\` ← **clash** |\n\n**Example:** A repo build script builds `BuildAnalyzers.sln` then `Main.slnx`, and both solutions include `SharedAnalyzers.csproj`. Both builds write to `bin\\Release\\netstandard2.0\\`. The first build compiles; the second skips compilation but still runs `CopyFilesToOutputDirectory`.\n\n**Fix:** Options include:\n1. **Consolidate solutions** - Ensure each project is only built from one solution in a single build\n2. **Use different configurations** - Build solutions with different `Configuration` values that result in different output paths\n3. **Exclude duplicate projects** - Use solution filters or conditional project inclusion to avoid building the same project twice\n\n### Extra global properties creating redundant project instances\n\n**Problem:** A project is built multiple times within the same solution due to extra global properties (e.g., `PublishReadyToRun=false`) that create distinct MSBuild project instances. These properties don't affect output paths but prevent MSBuild from caching results across instances, causing redundant target execution.\n\n**How to detect:** Compare global properties across evaluations for the same project within the same solution (same `SolutionFileName`). Look for properties that differ but don't contribute to path differentiation:\n\n| Property | Eval A (from Razor.slnx) | Eval B (from Razor.slnx) |\n|---|---|---|\n| `PublishReadyToRun` | *(not set)* | `false` |\n| `OutputPath` | `bin\\Release\\netstandard2.0\\` | `bin\\Release\\netstandard2.0\\` ← **clash** |\n\nThis is particularly wasteful for projects where the extra property has no effect (e.g., `PublishReadyToRun` on a `netstandard2.0` class library that doesn't use ReadyToRun compilation).\n\n**Fix:** Options include:\n1. **Remove the extra global property** - Investigate which parent target\u002Ftask is injecting the property and prevent it from being passed to projects that don't need it\n2. **Use `RemoveGlobalProperties` metadata** - On `ProjectReference` items, use `RemoveGlobalProperties=\"PublishReadyToRun\"` to strip the property before building the referenced project\n3. **Condition the property** - Only set the property on projects that actually use it (e.g., only for executable projects, not class libraries)\n\n### Explicit `\u003CMSBuild>` Build\u002FPublish with extra global properties (self or cross-project)\n\n**Problem:** A target uses the `\u003CMSBuild>` task to build or publish a project with an extra global property, most commonly a \"publish-on-build\" target. The offending call can be in the target project itself **or in another project** that consumes it (e.g. a test or layout project publishing a tool):\n\n```xml\n\u003C!-- (a) same project (publish-on-build) -->\n\u003CTarget Name=\"PublishOnBuild\" AfterTargets=\"Build\">\n  \u003CMSBuild Projects=\"$(MSBuildProjectFullPath)\" Targets=\"Publish\" Properties=\"_IsPublishing=true\" \u002F>\n\u003C\u002FTarget>\n\n\u003C!-- (b) project A publishes project B that it consumes -->\n\u003CMSBuild Projects=\"..\\tool\\tool.csproj\" Targets=\"Publish\" Properties=\"_IsPublishing=true\" \u002F>\n```\n\nEither way this forks a distinct instance of the target project (`path` + `{_IsPublishing=true}`) that shares the same `OutputPath`\u002F`IntermediateOutputPath` as the instance the solution\u002Fgraph already builds. Both write the same files — for NativeAOT this includes the `*.sourcelink` intermediate, which produces `SourceLinkWriter` \u002F \"file in use\" failures under parallel builds.\n\n**How to detect:** Follow the Primary workflow above — the `evaluations` and `evaluation_global_properties` tools surface two evaluations of the target project that share the same `OutputPath`\u002F`IntermediateOutputPath` but differ only by a path-neutral publish flag such as `_IsPublishing`, and the `double_writes` tool flags the resulting shared-file writes directly. To tell case (a) from (b), see which project the extra `{_IsPublishing=true}` evaluation runs *under* in the build tree (from the overview\u002Fprojects tools): the target project itself for (a), or a consumer project that invoked the `\u003CMSBuild>` task for (b).\n\n**Fix:** Depends on where the call lives:\n\n- **Same project (a):** you can't strip the property with `RemoveGlobalProperties` (the project injects it on itself). Set the flag as a **static** (non-global) property and run the target in the **same** instance via `DependsOnTargets`\u002F`CallTarget`, with a guard against a target cycle when publish is the entry point:\n\n```xml\n\u003CPropertyGroup>\n  \u003C_PublishWasInvokedDirectly Condition=\"'$(_IsPublishing)' == 'true'\">true\u003C\u002F_PublishWasInvokedDirectly>\n  \u003C_IsPublishing>true\u003C\u002F_IsPublishing>\n\u003C\u002FPropertyGroup>\n\u003CTarget Name=\"PublishOnBuild\"\n        AfterTargets=\"Build\"\n        DependsOnTargets=\"Publish\"\n        Condition=\"'$(_PublishWasInvokedDirectly)' != 'true'\" \u002F>\n```\n\n- **Cross-project (b):** the consumer must not fork the producer with path-neutral global properties. Make the producer publish as part of its own build (the (a) fix in *its* project), then have the consumer **sequence** it and read its output instead of re-publishing it:\n\n```xml\n\u003CItemGroup>\n  \u003CProjectReference Include=\"..\\tool\\tool.csproj\" ReferenceOutputAssembly=\"false\" \u002F>\n\u003C\u002FItemGroup>\n\u003C!-- consumer reads tool's publish dir; it does NOT invoke Publish on tool -->\n```\n\nSee the `msbuild-antipatterns` skill (AP-22) for the authoring-time smell and rationale.\n\n### `SetTargetFramework` re-injecting a single-targeting project's own TFM on a `ProjectReference`\n\n**Problem:** A `ProjectReference` sets `SetTargetFramework=\"TargetFramework=\u003Ctfm>\"` metadata pointing at a **single-targeting** project (one that uses singular `\u003CTargetFramework>`, not `\u003CTargetFrameworks>`), where the injected `\u003Ctfm>` **equals the TFM the project already targets**. `SetTargetFramework` injects `TargetFramework` as a **global property** on the referenced project's build.\n\n```xml\n\u003C!-- BAD: Tool.csproj single-targets net8.0 and we inject that SAME net8.0 -->\n\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\" SetTargetFramework=\"TargetFramework=net8.0\" \u002F>\n```\n\nInjecting the TFM the project already targets is **path-neutral** — the project already resolves to `bin\\\u003Cconfig>\\net8.0\\` and `obj\\\u003Cconfig>\\net8.0\\` on its own. So it doesn't change the output path; it only forks a distinct instance `(project, {TargetFramework=net8.0})`. The solution\u002Fgraph builds the very same project as `(project, {})`. Both share the same `OutputPath`\u002F`IntermediateOutputPath`, so the project is **built twice** to the same location — a bin\u002Fobj clash under parallel builds.\n\n**How to detect:** Follow the Primary workflow above. The `evaluations` and `evaluation_global_properties` tools surface two evaluations of the referenced project that share the same `OutputPath`\u002F`IntermediateOutputPath` and differ only by a `TargetFramework` global property, while the project itself is single-targeting (its own `TargetFramework` already equals the injected value). The `double_writes` tool flags the resulting shared-file writes directly.\n\n**Note:** The P2P protocol itself does **not** inject `TargetFramework` for a non-multi-targeting reference — the clash comes specifically from the explicit `SetTargetFramework` metadata overriding that safe default.\n\n**Fix:** Remove the redundant `SetTargetFramework` when it just restates the project's own single TFM:\n\n```xml\n\u003C!-- GOOD -->\n\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\" \u002F>\n```\n\n**When `SetTargetFramework` is legitimate (not a clash):**\n\n- **Multi-targeting reference** — the referenced project uses `\u003CTargetFrameworks>` and you need one specific TFM. Each TFM has a distinct output path, so no clash.\n- **Overriding to a *different* TFM** — you may use `SetTargetFramework` on a single-targeting project to build it under a TFM *other than* the one it declares. Because the injected TFM then changes the output path (`obj\\\u003Cconfig>\\\u003Cdifferent-tfm>\\`), the instance no longer collides with `(project, {})`. Only the *same-TFM* case is path-neutral and clashing.\n- **Framework-incompatible reference** — whenever the referencing and referenced projects target **incompatible frameworks** (e.g. a `.NETFramework` project referencing a `.NETCoreApp` project, or vice-versa) — **regardless of single- or multi-targeting on either side** — set `SkipGetTargetFrameworkProperties=\"true\"` (the P2P `GetTargetFrameworkProperties` negotiation would otherwise fail) and `ReferenceOutputAssembly=\"false\"` (an assembly built for an incompatible framework can't be consumed as a reference — you only want to trigger\u002Fsequence the build):\n\n  ```xml\n  \u003CProjectReference Include=\"..\\Tool\\Tool.csproj\"\n                    SkipGetTargetFrameworkProperties=\"true\"\n                    ReferenceOutputAssembly=\"false\" \u002F>\n  ```\n\n  With `SkipGetTargetFrameworkProperties=\"true\"`, the negotiation no longer stops the **referencing** project's own `TargetFramework` global property (present when it builds for a specific TFM, e.g. it is multi-targeting) from flowing into the referenced project. For a **single-targeting** referenced project that would force it to build under the wrong TFM \u002F output path. Prevent it by either setting `SetTargetFramework=\"TargetFramework=\u003Ctfm>\"` (pin the TFM) **or** `UndefineProperties=\"TargetFramework\"` (strip the inherited global property so the project builds as it declares) — use one, not both:\n\n  ```xml\n  \u003CProjectReference Include=\"..\\Tool\\Tool.csproj\"\n                    SkipGetTargetFrameworkProperties=\"true\"\n                    UndefineProperties=\"TargetFramework\"\n                    ReferenceOutputAssembly=\"false\" \u002F>\n  ```\n\nSee the `msbuild-antipatterns` skill (AP-23) for the authoring-time smell and rationale.\n\n## Tips\n\n- The SDK default paths include `$(TargetFramework)` — clashes often occur when projects override these defaults; normalize relative paths to absolute before comparing.\n- **Cross-project `IntermediateOutputPath` clashes cannot be fixed with `AppendTargetFrameworkToOutputPath`** — files like `project.assets.json` are written directly to the intermediate path. For multi-targeting clashes *within the same project*, `AppendTargetFrameworkToOutputPath=true` is the correct fix.\n- Error messages that indicate a path clash: `Cannot create a file when that file already exists` (NuGet restore), `The process cannot access the file because it is being used by another process`, or intermittent failures that succeed on retry.\n\n### Global Properties to Check When Comparing Evaluations\n\nWhen multiple evaluations share an output path, compare these global properties to understand why:\n\n| Property | Affects OutputPath? | Notes |\n|----------|---------------------|-------|\n| `TargetFramework` | Yes | Different TFMs should have different paths. **Exception:** re-injecting a *single-targeting* project's own TFM (e.g. via `SetTargetFramework` with the same value) is path-neutral — it forks a redundant instance sharing the output path (see \"`SetTargetFramework` re-injecting...\") |\n| `RuntimeIdentifier` | Yes | Different RIDs should have different paths |\n| `Configuration` | Yes | Debug vs Release |\n| `Platform` | Yes | AnyCPU vs x64 etc. |\n| `SolutionFileName` | No | Identifies which solution built the project — different values indicate multi-solution clash |\n| `SolutionName` | No | Solution name without extension |\n| `SolutionPath` | No | Full path to the solution file |\n| `SolutionDir` | No | Directory containing the solution file |\n| `CurrentSolutionConfigurationContents` | No | XML with project entries — count of entries reveals which solution |\n| `BuildProjectReferences` | No | `false` = P2P query, not a real build - ignore these |\n| `MSBuildRestoreSessionId` | No | Present = restore phase evaluation |\n| `PublishReadyToRun` | No | Publish setting, doesn't change build output path but creates distinct project instances |\n| `_IsPublishing` | No | Publish flag; an `\u003CMSBuild>` Build\u002FPublish call with this set (in this project or another that consumes it) forks a publish instance sharing the build output path (see \"Explicit `\u003CMSBuild>` Build\u002FPublish with extra global properties\") |\n\n## Testing Fixes\n\nAfter making changes to fix path clashes, clean and rebuild to verify. See the `binlog-generation` skill's \"Cleaning the Repository\" section on how to clean the repository while preserving binlog files.\n",{"data":35,"body":36},{"name":4,"description":6,"license":25},{"type":37,"children":38},"root",[39,48,55,78,135,140,181,214,220,228,260,266,279,285,306,314,369,376,381,387,408,457,463,496,502,507,513,531,582,588,593,598,668,673,807,853,859,865,883,909,919,942,947,970,976,998,1065,1090,1108,1120,1136,1182,1195,1201,1210,1219,1233,1239,1256,1280,1398,1444,1453,1493,1499,1516,1532,1619,1639,1647,1704,1718,1741,1803,1854,1926,1935,1984,2056,2083,2122,2135,2152,2235,2258,2321,2377,2407,2423,2446,2461,2719,2730,2736,2814,2820,2825,3164,3170,3182],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"detecting-outputpath-and-intermediateoutputpath-clashes",[45],{"type":46,"value":47},"text","Detecting OutputPath and IntermediateOutputPath Clashes",{"type":40,"tag":49,"props":50,"children":52},"h2",{"id":51},"overview",[53],{"type":46,"value":54},"Overview",{"type":40,"tag":56,"props":57,"children":58},"p",{},[59,61,68,70,76],{"type":46,"value":60},"This skill helps identify when multiple MSBuild project evaluations share the same ",{"type":40,"tag":62,"props":63,"children":65},"code",{"className":64},[],[66],{"type":46,"value":67},"OutputPath",{"type":46,"value":69}," or ",{"type":40,"tag":62,"props":71,"children":73},{"className":72},[],[74],{"type":46,"value":75},"IntermediateOutputPath",{"type":46,"value":77},". This is a common source of build failures including:",{"type":40,"tag":79,"props":80,"children":81},"ul",{},[82,88,93,98,103],{"type":40,"tag":83,"props":84,"children":85},"li",{},[86],{"type":46,"value":87},"File access conflicts during parallel builds",{"type":40,"tag":83,"props":89,"children":90},{},[91],{"type":46,"value":92},"Missing or overwritten output files",{"type":40,"tag":83,"props":94,"children":95},{},[96],{"type":46,"value":97},"Intermittent build failures",{"type":40,"tag":83,"props":99,"children":100},{},[101],{"type":46,"value":102},"\"File in use\" errors",{"type":40,"tag":83,"props":104,"children":105},{},[106,118,120,125,127,133],{"type":40,"tag":107,"props":108,"children":109},"strong",{},[110,112],{"type":46,"value":111},"NuGet restore errors like ",{"type":40,"tag":62,"props":113,"children":115},{"className":114},[],[116],{"type":46,"value":117},"Cannot create a file when that file already exists",{"type":46,"value":119}," - this strongly indicates multiple projects share the same ",{"type":40,"tag":62,"props":121,"children":123},{"className":122},[],[124],{"type":46,"value":75},{"type":46,"value":126}," where ",{"type":40,"tag":62,"props":128,"children":130},{"className":129},[],[131],{"type":46,"value":132},"project.assets.json",{"type":46,"value":134}," is written",{"type":40,"tag":56,"props":136,"children":137},{},[138],{"type":46,"value":139},"Clashes can occur between:",{"type":40,"tag":79,"props":141,"children":142},{},[143,153,171],{"type":40,"tag":83,"props":144,"children":145},{},[146,151],{"type":40,"tag":107,"props":147,"children":148},{},[149],{"type":46,"value":150},"Different projects",{"type":46,"value":152}," sharing the same output directory",{"type":40,"tag":83,"props":154,"children":155},{},[156,161,163,169],{"type":40,"tag":107,"props":157,"children":158},{},[159],{"type":46,"value":160},"Multi-targeting builds",{"type":46,"value":162}," (e.g., ",{"type":40,"tag":62,"props":164,"children":166},{"className":165},[],[167],{"type":46,"value":168},"TargetFrameworks=net8.0;net9.0",{"type":46,"value":170},") where the path doesn't include the target framework",{"type":40,"tag":83,"props":172,"children":173},{},[174,179],{"type":40,"tag":107,"props":175,"children":176},{},[177],{"type":46,"value":178},"Multiple solution builds",{"type":46,"value":180}," where the same project is built from different solutions in a single build",{"type":40,"tag":56,"props":182,"children":183},{},[184,189,191,197,199,204,206,212],{"type":40,"tag":107,"props":185,"children":186},{},[187],{"type":46,"value":188},"Note:",{"type":46,"value":190}," Project instances with ",{"type":40,"tag":62,"props":192,"children":194},{"className":193},[],[195],{"type":46,"value":196},"BuildProjectReferences=false",{"type":46,"value":198}," should be ",{"type":40,"tag":107,"props":200,"children":201},{},[202],{"type":46,"value":203},"ignored",{"type":46,"value":205}," when analyzing clashes - these are P2P reference resolution builds that only query metadata (via ",{"type":40,"tag":62,"props":207,"children":209},{"className":208},[],[210],{"type":46,"value":211},"GetTargetPath",{"type":46,"value":213},") and do not actually write to output directories.",{"type":40,"tag":49,"props":215,"children":217},{"id":216},"when-to-use-this-skill",[218],{"type":46,"value":219},"When to Use This Skill",{"type":40,"tag":56,"props":221,"children":222},{},[223],{"type":40,"tag":107,"props":224,"children":225},{},[226],{"type":46,"value":227},"Invoke this skill immediately when you see:",{"type":40,"tag":79,"props":229,"children":230},{},[231,241,250,255],{"type":40,"tag":83,"props":232,"children":233},{},[234,239],{"type":40,"tag":62,"props":235,"children":237},{"className":236},[],[238],{"type":46,"value":117},{"type":46,"value":240}," during NuGet restore",{"type":40,"tag":83,"props":242,"children":243},{},[244],{"type":40,"tag":62,"props":245,"children":247},{"className":246},[],[248],{"type":46,"value":249},"The process cannot access the file because it is being used by another process",{"type":40,"tag":83,"props":251,"children":252},{},[253],{"type":46,"value":254},"Intermittent build failures that succeed on retry",{"type":40,"tag":83,"props":256,"children":257},{},[258],{"type":46,"value":259},"Missing output files or unexpected overwriting",{"type":40,"tag":49,"props":261,"children":263},{"id":262},"step-1-generate-a-binary-log",[264],{"type":46,"value":265},"Step 1: Generate a Binary Log",{"type":40,"tag":56,"props":267,"children":268},{},[269,271,277],{"type":46,"value":270},"Use the ",{"type":40,"tag":62,"props":272,"children":274},{"className":273},[],[275],{"type":46,"value":276},"binlog-generation",{"type":46,"value":278}," skill to generate a binary log with the correct naming convention.",{"type":40,"tag":49,"props":280,"children":282},{"id":281},"primary-workflow-binlog-mcp",[283],{"type":46,"value":284},"Primary workflow — binlog MCP",{"type":40,"tag":56,"props":286,"children":287},{},[288,290,296,298,304],{"type":46,"value":289},"The MCP server exposes structured tools for inspecting a ",{"type":40,"tag":62,"props":291,"children":293},{"className":292},[],[294],{"type":46,"value":295},".binlog",{"type":46,"value":297}," without\nparsing text logs. Call them directly instead of replaying the binlog to a text\nfile. Call ",{"type":40,"tag":62,"props":299,"children":301},{"className":300},[],[302],{"type":46,"value":303},"tools\u002Flist",{"type":46,"value":305}," for the MCP first if you are unsure which tools are available.",{"type":40,"tag":56,"props":307,"children":308},{},[309],{"type":40,"tag":107,"props":310,"children":311},{},[312],{"type":46,"value":313},"Important constraints:",{"type":40,"tag":79,"props":315,"children":316},{},[317,359],{"type":40,"tag":83,"props":318,"children":319},{},[320,322,327,329,334,336,342,344,350,351,357],{"type":46,"value":321},"The ",{"type":40,"tag":62,"props":323,"children":325},{"className":324},[],[326],{"type":46,"value":295},{"type":46,"value":328}," file is a ",{"type":40,"tag":107,"props":330,"children":331},{},[332],{"type":46,"value":333},"binary format",{"type":46,"value":335}," — do NOT try to ",{"type":40,"tag":62,"props":337,"children":339},{"className":338},[],[340],{"type":46,"value":341},"cat",{"type":46,"value":343},", ",{"type":40,"tag":62,"props":345,"children":347},{"className":346},[],[348],{"type":46,"value":349},"head",{"type":46,"value":343},{"type":40,"tag":62,"props":352,"children":354},{"className":353},[],[355],{"type":46,"value":356},"strings",{"type":46,"value":358},", or read it directly. Use only the MCP tools to query it.",{"type":40,"tag":83,"props":360,"children":361},{},[362,367],{"type":40,"tag":107,"props":363,"children":364},{},[365],{"type":46,"value":366},"Synthesize findings as you go.",{"type":46,"value":368}," Do not spend all available time investigating — once you have enough evidence, present your conclusions.",{"type":40,"tag":370,"props":371,"children":373},"h3",{"id":372},"step-2-get-an-overview-and-list-projects",[374],{"type":46,"value":375},"Step 2: Get an overview and list projects",{"type":40,"tag":56,"props":377,"children":378},{},[379],{"type":46,"value":380},"Use the MCP overview and projects tools to understand the build and list all projects that participated.",{"type":40,"tag":370,"props":382,"children":384},{"id":383},"step-3-check-evaluations-and-global-properties",[385],{"type":46,"value":386},"Step 3: Check evaluations and global properties",{"type":40,"tag":56,"props":388,"children":389},{},[390,392,398,400,406],{"type":46,"value":391},"Use the MCP ",{"type":40,"tag":62,"props":393,"children":395},{"className":394},[],[396],{"type":46,"value":397},"evaluations",{"type":46,"value":399}," and ",{"type":40,"tag":62,"props":401,"children":403},{"className":402},[],[404],{"type":46,"value":405},"evaluation_global_properties",{"type":46,"value":407}," tools to find all evaluations per project. Look for:",{"type":40,"tag":79,"props":409,"children":410},{},[411,416],{"type":40,"tag":83,"props":412,"children":413},{},[414],{"type":46,"value":415},"Multiple evaluations for the same project (indicates multi-targeting or multiple build configurations)",{"type":40,"tag":83,"props":417,"children":418},{},[419,421,427,428,434,435,441,442,448,449,455],{"type":46,"value":420},"Differing global properties between evaluations (",{"type":40,"tag":62,"props":422,"children":424},{"className":423},[],[425],{"type":46,"value":426},"TargetFramework",{"type":46,"value":343},{"type":40,"tag":62,"props":429,"children":431},{"className":430},[],[432],{"type":46,"value":433},"Configuration",{"type":46,"value":343},{"type":40,"tag":62,"props":436,"children":438},{"className":437},[],[439],{"type":46,"value":440},"RuntimeIdentifier",{"type":46,"value":343},{"type":40,"tag":62,"props":443,"children":445},{"className":444},[],[446],{"type":46,"value":447},"SolutionFileName",{"type":46,"value":343},{"type":40,"tag":62,"props":450,"children":452},{"className":451},[],[453],{"type":46,"value":454},"PublishReadyToRun",{"type":46,"value":456},", etc.)",{"type":40,"tag":370,"props":458,"children":460},{"id":459},"step-4-get-output-paths-for-each-evaluation",[461],{"type":46,"value":462},"Step 4: Get output paths for each evaluation",{"type":40,"tag":56,"props":464,"children":465},{},[466,468,473,474,479,480,486,488,494],{"type":46,"value":467},"Use the MCP properties tool to query ",{"type":40,"tag":62,"props":469,"children":471},{"className":470},[],[472],{"type":46,"value":67},{"type":46,"value":343},{"type":40,"tag":62,"props":475,"children":477},{"className":476},[],[478],{"type":46,"value":75},{"type":46,"value":343},{"type":40,"tag":62,"props":481,"children":483},{"className":482},[],[484],{"type":46,"value":485},"BaseOutputPath",{"type":46,"value":487},", and ",{"type":40,"tag":62,"props":489,"children":491},{"className":490},[],[492],{"type":46,"value":493},"BaseIntermediateOutputPath",{"type":46,"value":495}," for each project evaluation.",{"type":40,"tag":370,"props":497,"children":499},{"id":498},"step-5-check-for-double-writes",[500],{"type":46,"value":501},"Step 5: Check for double writes",{"type":40,"tag":56,"props":503,"children":504},{},[505],{"type":46,"value":506},"Use the MCP double_writes tool if available — it directly detects files written by multiple project instances.",{"type":40,"tag":370,"props":508,"children":510},{"id":509},"step-6-identify-clashes",[511],{"type":46,"value":512},"Step 6: Identify clashes",{"type":40,"tag":56,"props":514,"children":515},{},[516,518,523,524,529],{"type":46,"value":517},"Compare the ",{"type":40,"tag":62,"props":519,"children":521},{"className":520},[],[522],{"type":46,"value":67},{"type":46,"value":399},{"type":40,"tag":62,"props":525,"children":527},{"className":526},[],[528],{"type":46,"value":75},{"type":46,"value":530}," values across all evaluations:",{"type":40,"tag":532,"props":533,"children":534},"ol",{},[535,545,555,572],{"type":40,"tag":83,"props":536,"children":537},{},[538,543],{"type":40,"tag":107,"props":539,"children":540},{},[541],{"type":46,"value":542},"Normalize paths",{"type":46,"value":544}," - Convert to absolute paths and normalize separators",{"type":40,"tag":83,"props":546,"children":547},{},[548,553],{"type":40,"tag":107,"props":549,"children":550},{},[551],{"type":46,"value":552},"Group by path",{"type":46,"value":554}," - Find evaluations that share the same OutputPath or IntermediateOutputPath",{"type":40,"tag":83,"props":556,"children":557},{},[558,563,565,570],{"type":40,"tag":107,"props":559,"children":560},{},[561],{"type":46,"value":562},"Filter out non-build evaluations",{"type":46,"value":564}," - Exclude ",{"type":40,"tag":62,"props":566,"children":568},{"className":567},[],[569],{"type":46,"value":196},{"type":46,"value":571}," instances (P2P queries)",{"type":40,"tag":83,"props":573,"children":574},{},[575,580],{"type":40,"tag":107,"props":576,"children":577},{},[578],{"type":46,"value":579},"Report clashes",{"type":46,"value":581}," - Any group with more than one evaluation indicates a clash",{"type":40,"tag":49,"props":583,"children":585},{"id":584},"fallback-workflow-text-log-replay-when-mcp-is-unavailable",[586],{"type":46,"value":587},"Fallback workflow — text-log replay (when MCP is unavailable)",{"type":40,"tag":56,"props":589,"children":590},{},[591],{"type":46,"value":592},"Use this only when the MCP server cannot be started.",{"type":40,"tag":56,"props":594,"children":595},{},[596],{"type":46,"value":597},"Replay the binlog to a diagnostic text log, then grep for the same signals the MCP tools surface:",{"type":40,"tag":599,"props":600,"children":605},"pre",{"className":601,"code":602,"language":603,"meta":604,"style":604},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","dotnet msbuild build.binlog -noconlog -fl -flp:v=diag;logfile=full.log\n","bash","",[606],{"type":40,"tag":62,"props":607,"children":608},{"__ignoreMap":604},[609],{"type":40,"tag":610,"props":611,"children":614},"span",{"class":612,"line":613},"line",1,[615,620,626,631,636,641,646,652,658,663],{"type":40,"tag":610,"props":616,"children":618},{"style":617},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[619],{"type":46,"value":8},{"type":40,"tag":610,"props":621,"children":623},{"style":622},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[624],{"type":46,"value":625}," msbuild",{"type":40,"tag":610,"props":627,"children":628},{"style":622},[629],{"type":46,"value":630}," build.binlog",{"type":40,"tag":610,"props":632,"children":633},{"style":622},[634],{"type":46,"value":635}," -noconlog",{"type":40,"tag":610,"props":637,"children":638},{"style":622},[639],{"type":46,"value":640}," -fl",{"type":40,"tag":610,"props":642,"children":643},{"style":622},[644],{"type":46,"value":645}," -flp:v=diag",{"type":40,"tag":610,"props":647,"children":649},{"style":648},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[650],{"type":46,"value":651},";",{"type":40,"tag":610,"props":653,"children":655},{"style":654},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[656],{"type":46,"value":657},"logfile",{"type":40,"tag":610,"props":659,"children":660},{"style":648},[661],{"type":46,"value":662},"=",{"type":40,"tag":610,"props":664,"children":665},{"style":622},[666],{"type":46,"value":667},"full.log\n",{"type":40,"tag":56,"props":669,"children":670},{},[671],{"type":46,"value":672},"Then extract the clash signals:",{"type":40,"tag":79,"props":674,"children":675},{},[676,709,748,774],{"type":40,"tag":83,"props":677,"children":678},{},[679,684,686,692,694,699,701,707],{"type":40,"tag":107,"props":680,"children":681},{},[682],{"type":46,"value":683},"Projects & evaluations",{"type":46,"value":685}," — list evaluation starts and count them per project: ",{"type":40,"tag":62,"props":687,"children":689},{"className":688},[],[690],{"type":46,"value":691},"grep 'Evaluation started' full.log | grep -oiE '\"[^\"]+\\.[a-z]+proj\"' | sort | uniq -c",{"type":46,"value":693},". Matching the full ",{"type":40,"tag":107,"props":695,"children":696},{},[697],{"type":46,"value":698},"quoted path",{"type":46,"value":700}," keeps same-named projects in different directories distinct (and tolerates spaces in paths); a path with a count ≥ 2 was evaluated more than once (multi-targeting or extra global properties). (",{"type":40,"tag":62,"props":702,"children":704},{"className":703},[],[705],{"type":46,"value":706},"grep -c",{"type":46,"value":708}," alone only totals evaluations across the whole log, so it can't reveal per-project duplication.)",{"type":40,"tag":83,"props":710,"children":711},{},[712,717,719,725,727,733,735,740,741,746],{"type":40,"tag":107,"props":713,"children":714},{},[715],{"type":46,"value":716},"Output paths",{"type":46,"value":718}," — ",{"type":40,"tag":62,"props":720,"children":722},{"className":721},[],[723],{"type":46,"value":724},"grep -iE 'OutputPath[[:space:]]*=|IntermediateOutputPath[[:space:]]*=|BaseOutputPath[[:space:]]*=|BaseIntermediateOutputPath[[:space:]]*=' full.log | sort -u",{"type":46,"value":726},", or query a project directly: ",{"type":40,"tag":62,"props":728,"children":730},{"className":729},[],[731],{"type":46,"value":732},"dotnet msbuild MyProject.csproj -getProperty:OutputPath",{"type":46,"value":734}," (and ",{"type":40,"tag":62,"props":736,"children":738},{"className":737},[],[739],{"type":46,"value":75},{"type":46,"value":343},{"type":40,"tag":62,"props":742,"children":744},{"className":743},[],[745],{"type":46,"value":493},{"type":46,"value":747},").",{"type":40,"tag":83,"props":749,"children":750},{},[751,756,757,763,765,772],{"type":40,"tag":107,"props":752,"children":753},{},[754],{"type":46,"value":755},"Distinguishing global properties",{"type":46,"value":718},{"type":40,"tag":62,"props":758,"children":760},{"className":759},[],[761],{"type":46,"value":762},"grep -iE 'TargetFramework|Configuration|Platform|RuntimeIdentifier|SolutionFileName|PublishReadyToRun' full.log",{"type":46,"value":764},". See the ",{"type":40,"tag":766,"props":767,"children":769},"a",{"href":768},"#global-properties-to-check-when-comparing-evaluations",[770],{"type":46,"value":771},"Global Properties to Check",{"type":46,"value":773}," table for which affect the path and which just fork a redundant instance.",{"type":40,"tag":83,"props":775,"children":776},{},[777,782,783,789,791,797,799,805],{"type":40,"tag":107,"props":778,"children":779},{},[780],{"type":46,"value":781},"Corroborating evidence (optional)",{"type":46,"value":718},{"type":40,"tag":62,"props":784,"children":786},{"className":785},[],[787],{"type":46,"value":788},"grep 'Target \"CopyFilesToOutputDirectory\"' full.log",{"type":46,"value":790}," plus ",{"type":40,"tag":62,"props":792,"children":794},{"className":793},[],[795],{"type":46,"value":796},"grep 'SkipUnchangedFiles' full.log",{"type":46,"value":798}," show a second instance writing (or skipping a masked write) to the same path; a long vs ~0 ms ",{"type":40,"tag":62,"props":800,"children":802},{"className":801},[],[803],{"type":46,"value":804},"CoreCompile",{"type":46,"value":806}," distinguishes the real build from a redundant instance.",{"type":40,"tag":56,"props":808,"children":809},{},[810,815,817,822,824,829,831,836,838,843,845,851],{"type":40,"tag":107,"props":811,"children":812},{},[813],{"type":46,"value":814},"Then identify clashes:",{"type":46,"value":816}," normalize paths to absolute, group evaluations by ",{"type":40,"tag":62,"props":818,"children":820},{"className":819},[],[821],{"type":46,"value":67},{"type":46,"value":823}," and by ",{"type":40,"tag":62,"props":825,"children":827},{"className":826},[],[828],{"type":46,"value":75},{"type":46,"value":830},", and exclude ",{"type":40,"tag":62,"props":832,"children":834},{"className":833},[],[835],{"type":46,"value":196},{"type":46,"value":837}," (P2P queries) — plus, for ",{"type":40,"tag":62,"props":839,"children":841},{"className":840},[],[842],{"type":46,"value":67},{"type":46,"value":844}," only, ",{"type":40,"tag":62,"props":846,"children":848},{"className":847},[],[849],{"type":46,"value":850},"MSBuildRestoreSessionId",{"type":46,"value":852}," restore evaluations. Any group with more than one remaining evaluation is a clash.",{"type":40,"tag":49,"props":854,"children":856},{"id":855},"common-causes-and-fixes",[857],{"type":46,"value":858},"Common Causes and Fixes",{"type":40,"tag":370,"props":860,"children":862},{"id":861},"multi-targeting-without-targetframework-in-path",[863],{"type":46,"value":864},"Multi-targeting without TargetFramework in path",{"type":40,"tag":56,"props":866,"children":867},{},[868,873,875,881],{"type":40,"tag":107,"props":869,"children":870},{},[871],{"type":46,"value":872},"Problem:",{"type":46,"value":874}," Project uses ",{"type":40,"tag":62,"props":876,"children":878},{"className":877},[],[879],{"type":46,"value":880},"TargetFrameworks",{"type":46,"value":882}," but OutputPath doesn't vary by framework.",{"type":40,"tag":599,"props":884,"children":888},{"className":885,"code":886,"language":887,"meta":604,"style":604},"language-xml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C!-- BAD: Same path for all frameworks -->\n\u003COutputPath>bin\\$(Configuration)\\\u003C\u002FOutputPath>\n","xml",[889],{"type":40,"tag":62,"props":890,"children":891},{"__ignoreMap":604},[892,900],{"type":40,"tag":610,"props":893,"children":894},{"class":612,"line":613},[895],{"type":40,"tag":610,"props":896,"children":897},{},[898],{"type":46,"value":899},"\u003C!-- BAD: Same path for all frameworks -->\n",{"type":40,"tag":610,"props":901,"children":903},{"class":612,"line":902},2,[904],{"type":40,"tag":610,"props":905,"children":906},{},[907],{"type":46,"value":908},"\u003COutputPath>bin\\$(Configuration)\\\u003C\u002FOutputPath>\n",{"type":40,"tag":56,"props":910,"children":911},{},[912,917],{"type":40,"tag":107,"props":913,"children":914},{},[915],{"type":46,"value":916},"Fix:",{"type":46,"value":918}," Include TargetFramework in the path:",{"type":40,"tag":599,"props":920,"children":922},{"className":885,"code":921,"language":887,"meta":604,"style":604},"\u003C!-- GOOD: Path varies by framework -->\n\u003COutputPath>bin\\$(Configuration)\\$(TargetFramework)\\\u003C\u002FOutputPath>\n",[923],{"type":40,"tag":62,"props":924,"children":925},{"__ignoreMap":604},[926,934],{"type":40,"tag":610,"props":927,"children":928},{"class":612,"line":613},[929],{"type":40,"tag":610,"props":930,"children":931},{},[932],{"type":46,"value":933},"\u003C!-- GOOD: Path varies by framework -->\n",{"type":40,"tag":610,"props":935,"children":936},{"class":612,"line":902},[937],{"type":40,"tag":610,"props":938,"children":939},{},[940],{"type":46,"value":941},"\u003COutputPath>bin\\$(Configuration)\\$(TargetFramework)\\\u003C\u002FOutputPath>\n",{"type":40,"tag":56,"props":943,"children":944},{},[945],{"type":46,"value":946},"Or rely on SDK defaults which handle this automatically:",{"type":40,"tag":599,"props":948,"children":950},{"className":885,"code":949,"language":887,"meta":604,"style":604},"\u003CAppendTargetFrameworkToOutputPath>true\u003C\u002FAppendTargetFrameworkToOutputPath>\n\u003CAppendTargetFrameworkToIntermediateOutputPath>true\u003C\u002FAppendTargetFrameworkToIntermediateOutputPath>\n",[951],{"type":40,"tag":62,"props":952,"children":953},{"__ignoreMap":604},[954,962],{"type":40,"tag":610,"props":955,"children":956},{"class":612,"line":613},[957],{"type":40,"tag":610,"props":958,"children":959},{},[960],{"type":46,"value":961},"\u003CAppendTargetFrameworkToOutputPath>true\u003C\u002FAppendTargetFrameworkToOutputPath>\n",{"type":40,"tag":610,"props":963,"children":964},{"class":612,"line":902},[965],{"type":40,"tag":610,"props":966,"children":967},{},[968],{"type":46,"value":969},"\u003CAppendTargetFrameworkToIntermediateOutputPath>true\u003C\u002FAppendTargetFrameworkToIntermediateOutputPath>\n",{"type":40,"tag":370,"props":971,"children":973},{"id":972},"shared-output-directory-across-projects-cannot-be-fixed-with-appendtargetframework",[974],{"type":46,"value":975},"Shared output directory across projects (CANNOT be fixed with AppendTargetFramework)",{"type":40,"tag":56,"props":977,"children":978},{},[979,983,985,990,991,996],{"type":40,"tag":107,"props":980,"children":981},{},[982],{"type":46,"value":872},{"type":46,"value":984}," Multiple projects explicitly set the same ",{"type":40,"tag":62,"props":986,"children":988},{"className":987},[],[989],{"type":46,"value":485},{"type":46,"value":69},{"type":40,"tag":62,"props":992,"children":994},{"className":993},[],[995],{"type":46,"value":493},{"type":46,"value":997},".",{"type":40,"tag":599,"props":999,"children":1001},{"className":885,"code":1000,"language":887,"meta":604,"style":604},"\u003C!-- Project A - Directory.Build.props -->\n\u003CBaseOutputPath>..\\SharedOutput\\\u003C\u002FBaseOutputPath>\n\u003CBaseIntermediateOutputPath>..\\SharedObj\\\u003C\u002FBaseIntermediateOutputPath>\n\n\u003C!-- Project B - Directory.Build.props -->\n\u003CBaseOutputPath>..\\SharedOutput\\\u003C\u002FBaseOutputPath>\n\u003CBaseIntermediateOutputPath>..\\SharedObj\\\u003C\u002FBaseIntermediateOutputPath>\n",[1002],{"type":40,"tag":62,"props":1003,"children":1004},{"__ignoreMap":604},[1005,1013,1021,1030,1040,1049,1057],{"type":40,"tag":610,"props":1006,"children":1007},{"class":612,"line":613},[1008],{"type":40,"tag":610,"props":1009,"children":1010},{},[1011],{"type":46,"value":1012},"\u003C!-- Project A - Directory.Build.props -->\n",{"type":40,"tag":610,"props":1014,"children":1015},{"class":612,"line":902},[1016],{"type":40,"tag":610,"props":1017,"children":1018},{},[1019],{"type":46,"value":1020},"\u003CBaseOutputPath>..\\SharedOutput\\\u003C\u002FBaseOutputPath>\n",{"type":40,"tag":610,"props":1022,"children":1024},{"class":612,"line":1023},3,[1025],{"type":40,"tag":610,"props":1026,"children":1027},{},[1028],{"type":46,"value":1029},"\u003CBaseIntermediateOutputPath>..\\SharedObj\\\u003C\u002FBaseIntermediateOutputPath>\n",{"type":40,"tag":610,"props":1031,"children":1033},{"class":612,"line":1032},4,[1034],{"type":40,"tag":610,"props":1035,"children":1037},{"emptyLinePlaceholder":1036},true,[1038],{"type":46,"value":1039},"\n",{"type":40,"tag":610,"props":1041,"children":1043},{"class":612,"line":1042},5,[1044],{"type":40,"tag":610,"props":1045,"children":1046},{},[1047],{"type":46,"value":1048},"\u003C!-- Project B - Directory.Build.props -->\n",{"type":40,"tag":610,"props":1050,"children":1052},{"class":612,"line":1051},6,[1053],{"type":40,"tag":610,"props":1054,"children":1055},{},[1056],{"type":46,"value":1020},{"type":40,"tag":610,"props":1058,"children":1060},{"class":612,"line":1059},7,[1061],{"type":40,"tag":610,"props":1062,"children":1063},{},[1064],{"type":46,"value":1029},{"type":40,"tag":56,"props":1066,"children":1067},{},[1068,1073,1075,1081,1083,1088],{"type":40,"tag":107,"props":1069,"children":1070},{},[1071],{"type":46,"value":1072},"IMPORTANT:",{"type":46,"value":1074}," Even with ",{"type":40,"tag":62,"props":1076,"children":1078},{"className":1077},[],[1079],{"type":46,"value":1080},"AppendTargetFrameworkToOutputPath=true",{"type":46,"value":1082},", this will still clash! .NET writes certain files directly to the ",{"type":40,"tag":62,"props":1084,"children":1086},{"className":1085},[],[1087],{"type":46,"value":75},{"type":46,"value":1089}," without the TargetFramework suffix, including:",{"type":40,"tag":79,"props":1091,"children":1092},{},[1093,1103],{"type":40,"tag":83,"props":1094,"children":1095},{},[1096,1101],{"type":40,"tag":62,"props":1097,"children":1099},{"className":1098},[],[1100],{"type":46,"value":132},{"type":46,"value":1102}," (NuGet restore output)",{"type":40,"tag":83,"props":1104,"children":1105},{},[1106],{"type":46,"value":1107},"Other NuGet-related files",{"type":40,"tag":56,"props":1109,"children":1110},{},[1111,1113,1118],{"type":46,"value":1112},"This causes errors like ",{"type":40,"tag":62,"props":1114,"children":1116},{"className":1115},[],[1117],{"type":46,"value":117},{"type":46,"value":1119}," during parallel restore.",{"type":40,"tag":56,"props":1121,"children":1122},{},[1123,1127,1129,1134],{"type":40,"tag":107,"props":1124,"children":1125},{},[1126],{"type":46,"value":916},{"type":46,"value":1128}," Each project MUST have a unique ",{"type":40,"tag":62,"props":1130,"children":1132},{"className":1131},[],[1133],{"type":46,"value":493},{"type":46,"value":1135},". Do not share intermediate output directories across projects:",{"type":40,"tag":599,"props":1137,"children":1139},{"className":885,"code":1138,"language":887,"meta":604,"style":604},"\u003C!-- Project A -->\n\u003CBaseIntermediateOutputPath>..\\obj\\ProjectA\\\u003C\u002FBaseIntermediateOutputPath>\n\n\u003C!-- Project B -->\n\u003CBaseIntermediateOutputPath>..\\obj\\ProjectB\\\u003C\u002FBaseIntermediateOutputPath>\n",[1140],{"type":40,"tag":62,"props":1141,"children":1142},{"__ignoreMap":604},[1143,1151,1159,1166,1174],{"type":40,"tag":610,"props":1144,"children":1145},{"class":612,"line":613},[1146],{"type":40,"tag":610,"props":1147,"children":1148},{},[1149],{"type":46,"value":1150},"\u003C!-- Project A -->\n",{"type":40,"tag":610,"props":1152,"children":1153},{"class":612,"line":902},[1154],{"type":40,"tag":610,"props":1155,"children":1156},{},[1157],{"type":46,"value":1158},"\u003CBaseIntermediateOutputPath>..\\obj\\ProjectA\\\u003C\u002FBaseIntermediateOutputPath>\n",{"type":40,"tag":610,"props":1160,"children":1161},{"class":612,"line":1023},[1162],{"type":40,"tag":610,"props":1163,"children":1164},{"emptyLinePlaceholder":1036},[1165],{"type":46,"value":1039},{"type":40,"tag":610,"props":1167,"children":1168},{"class":612,"line":1032},[1169],{"type":40,"tag":610,"props":1170,"children":1171},{},[1172],{"type":46,"value":1173},"\u003C!-- Project B -->\n",{"type":40,"tag":610,"props":1175,"children":1176},{"class":612,"line":1042},[1177],{"type":40,"tag":610,"props":1178,"children":1179},{},[1180],{"type":46,"value":1181},"\u003CBaseIntermediateOutputPath>..\\obj\\ProjectB\\\u003C\u002FBaseIntermediateOutputPath>\n",{"type":40,"tag":56,"props":1183,"children":1184},{},[1185,1187,1193],{"type":46,"value":1186},"Or simply use the SDK defaults which place ",{"type":40,"tag":62,"props":1188,"children":1190},{"className":1189},[],[1191],{"type":46,"value":1192},"obj",{"type":46,"value":1194}," inside each project's directory.",{"type":40,"tag":370,"props":1196,"children":1198},{"id":1197},"runtimeidentifier-builds-clashing",[1199],{"type":46,"value":1200},"RuntimeIdentifier builds clashing",{"type":40,"tag":56,"props":1202,"children":1203},{},[1204,1208],{"type":40,"tag":107,"props":1205,"children":1206},{},[1207],{"type":46,"value":872},{"type":46,"value":1209}," Building for multiple RIDs without RID in path.",{"type":40,"tag":56,"props":1211,"children":1212},{},[1213,1217],{"type":40,"tag":107,"props":1214,"children":1215},{},[1216],{"type":46,"value":916},{"type":46,"value":1218}," Ensure RuntimeIdentifier is in the path:",{"type":40,"tag":599,"props":1220,"children":1222},{"className":885,"code":1221,"language":887,"meta":604,"style":604},"\u003CAppendRuntimeIdentifierToOutputPath>true\u003C\u002FAppendRuntimeIdentifierToOutputPath>\n",[1223],{"type":40,"tag":62,"props":1224,"children":1225},{"__ignoreMap":604},[1226],{"type":40,"tag":610,"props":1227,"children":1228},{"class":612,"line":613},[1229],{"type":40,"tag":610,"props":1230,"children":1231},{},[1232],{"type":46,"value":1221},{"type":40,"tag":370,"props":1234,"children":1236},{"id":1235},"multiple-solutions-building-the-same-project",[1237],{"type":46,"value":1238},"Multiple solutions building the same project",{"type":40,"tag":56,"props":1240,"children":1241},{},[1242,1246,1248,1254],{"type":40,"tag":107,"props":1243,"children":1244},{},[1245],{"type":46,"value":872},{"type":46,"value":1247}," A single build invokes multiple solutions (e.g., via MSBuild task or command line) that include the same project. Each solution build evaluates and builds the project independently, with different ",{"type":40,"tag":62,"props":1249,"children":1251},{"className":1250},[],[1252],{"type":46,"value":1253},"Solution*",{"type":46,"value":1255}," global properties that don't affect the output path.",{"type":40,"tag":56,"props":1257,"children":1258},{},[1259,1264,1266,1271,1272,1278],{"type":40,"tag":107,"props":1260,"children":1261},{},[1262],{"type":46,"value":1263},"How to detect:",{"type":46,"value":1265}," Compare ",{"type":40,"tag":62,"props":1267,"children":1269},{"className":1268},[],[1270],{"type":46,"value":447},{"type":46,"value":399},{"type":40,"tag":62,"props":1273,"children":1275},{"className":1274},[],[1276],{"type":46,"value":1277},"CurrentSolutionConfigurationContents",{"type":46,"value":1279}," across evaluations for the same project. Different values indicate multi-solution builds. For example:",{"type":40,"tag":1281,"props":1282,"children":1283},"table",{},[1284,1308],{"type":40,"tag":1285,"props":1286,"children":1287},"thead",{},[1288],{"type":40,"tag":1289,"props":1290,"children":1291},"tr",{},[1292,1298,1303],{"type":40,"tag":1293,"props":1294,"children":1295},"th",{},[1296],{"type":46,"value":1297},"Property",{"type":40,"tag":1293,"props":1299,"children":1300},{},[1301],{"type":46,"value":1302},"Eval from Solution A",{"type":40,"tag":1293,"props":1304,"children":1305},{},[1306],{"type":46,"value":1307},"Eval from Solution B",{"type":40,"tag":1309,"props":1310,"children":1311},"tbody",{},[1312,1342,1363],{"type":40,"tag":1289,"props":1313,"children":1314},{},[1315,1324,1333],{"type":40,"tag":1316,"props":1317,"children":1318},"td",{},[1319],{"type":40,"tag":62,"props":1320,"children":1322},{"className":1321},[],[1323],{"type":46,"value":447},{"type":40,"tag":1316,"props":1325,"children":1326},{},[1327],{"type":40,"tag":62,"props":1328,"children":1330},{"className":1329},[],[1331],{"type":46,"value":1332},"BuildAnalyzers.sln",{"type":40,"tag":1316,"props":1334,"children":1335},{},[1336],{"type":40,"tag":62,"props":1337,"children":1339},{"className":1338},[],[1340],{"type":46,"value":1341},"Main.slnx",{"type":40,"tag":1289,"props":1343,"children":1344},{},[1345,1353,1358],{"type":40,"tag":1316,"props":1346,"children":1347},{},[1348],{"type":40,"tag":62,"props":1349,"children":1351},{"className":1350},[],[1352],{"type":46,"value":1277},{"type":40,"tag":1316,"props":1354,"children":1355},{},[1356],{"type":46,"value":1357},"1 project entry",{"type":40,"tag":1316,"props":1359,"children":1360},{},[1361],{"type":46,"value":1362},"~49 project entries",{"type":40,"tag":1289,"props":1364,"children":1365},{},[1366,1374,1383],{"type":40,"tag":1316,"props":1367,"children":1368},{},[1369],{"type":40,"tag":62,"props":1370,"children":1372},{"className":1371},[],[1373],{"type":46,"value":67},{"type":40,"tag":1316,"props":1375,"children":1376},{},[1377],{"type":40,"tag":62,"props":1378,"children":1380},{"className":1379},[],[1381],{"type":46,"value":1382},"bin\\Release\\netstandard2.0\\",{"type":40,"tag":1316,"props":1384,"children":1385},{},[1386,1391,1393],{"type":40,"tag":62,"props":1387,"children":1389},{"className":1388},[],[1390],{"type":46,"value":1382},{"type":46,"value":1392}," ← ",{"type":40,"tag":107,"props":1394,"children":1395},{},[1396],{"type":46,"value":1397},"clash",{"type":40,"tag":56,"props":1399,"children":1400},{},[1401,1406,1408,1413,1415,1420,1422,1428,1430,1435,1437,1443],{"type":40,"tag":107,"props":1402,"children":1403},{},[1404],{"type":46,"value":1405},"Example:",{"type":46,"value":1407}," A repo build script builds ",{"type":40,"tag":62,"props":1409,"children":1411},{"className":1410},[],[1412],{"type":46,"value":1332},{"type":46,"value":1414}," then ",{"type":40,"tag":62,"props":1416,"children":1418},{"className":1417},[],[1419],{"type":46,"value":1341},{"type":46,"value":1421},", and both solutions include ",{"type":40,"tag":62,"props":1423,"children":1425},{"className":1424},[],[1426],{"type":46,"value":1427},"SharedAnalyzers.csproj",{"type":46,"value":1429},". Both builds write to ",{"type":40,"tag":62,"props":1431,"children":1433},{"className":1432},[],[1434],{"type":46,"value":1382},{"type":46,"value":1436},". The first build compiles; the second skips compilation but still runs ",{"type":40,"tag":62,"props":1438,"children":1440},{"className":1439},[],[1441],{"type":46,"value":1442},"CopyFilesToOutputDirectory",{"type":46,"value":997},{"type":40,"tag":56,"props":1445,"children":1446},{},[1447,1451],{"type":40,"tag":107,"props":1448,"children":1449},{},[1450],{"type":46,"value":916},{"type":46,"value":1452}," Options include:",{"type":40,"tag":532,"props":1454,"children":1455},{},[1456,1466,1483],{"type":40,"tag":83,"props":1457,"children":1458},{},[1459,1464],{"type":40,"tag":107,"props":1460,"children":1461},{},[1462],{"type":46,"value":1463},"Consolidate solutions",{"type":46,"value":1465}," - Ensure each project is only built from one solution in a single build",{"type":40,"tag":83,"props":1467,"children":1468},{},[1469,1474,1476,1481],{"type":40,"tag":107,"props":1470,"children":1471},{},[1472],{"type":46,"value":1473},"Use different configurations",{"type":46,"value":1475}," - Build solutions with different ",{"type":40,"tag":62,"props":1477,"children":1479},{"className":1478},[],[1480],{"type":46,"value":433},{"type":46,"value":1482}," values that result in different output paths",{"type":40,"tag":83,"props":1484,"children":1485},{},[1486,1491],{"type":40,"tag":107,"props":1487,"children":1488},{},[1489],{"type":46,"value":1490},"Exclude duplicate projects",{"type":46,"value":1492}," - Use solution filters or conditional project inclusion to avoid building the same project twice",{"type":40,"tag":370,"props":1494,"children":1496},{"id":1495},"extra-global-properties-creating-redundant-project-instances",[1497],{"type":46,"value":1498},"Extra global properties creating redundant project instances",{"type":40,"tag":56,"props":1500,"children":1501},{},[1502,1506,1508,1514],{"type":40,"tag":107,"props":1503,"children":1504},{},[1505],{"type":46,"value":872},{"type":46,"value":1507}," A project is built multiple times within the same solution due to extra global properties (e.g., ",{"type":40,"tag":62,"props":1509,"children":1511},{"className":1510},[],[1512],{"type":46,"value":1513},"PublishReadyToRun=false",{"type":46,"value":1515},") that create distinct MSBuild project instances. These properties don't affect output paths but prevent MSBuild from caching results across instances, causing redundant target execution.",{"type":40,"tag":56,"props":1517,"children":1518},{},[1519,1523,1525,1530],{"type":40,"tag":107,"props":1520,"children":1521},{},[1522],{"type":46,"value":1263},{"type":46,"value":1524}," Compare global properties across evaluations for the same project within the same solution (same ",{"type":40,"tag":62,"props":1526,"children":1528},{"className":1527},[],[1529],{"type":46,"value":447},{"type":46,"value":1531},"). Look for properties that differ but don't contribute to path differentiation:",{"type":40,"tag":1281,"props":1533,"children":1534},{},[1535,1555],{"type":40,"tag":1285,"props":1536,"children":1537},{},[1538],{"type":40,"tag":1289,"props":1539,"children":1540},{},[1541,1545,1550],{"type":40,"tag":1293,"props":1542,"children":1543},{},[1544],{"type":46,"value":1297},{"type":40,"tag":1293,"props":1546,"children":1547},{},[1548],{"type":46,"value":1549},"Eval A (from Razor.slnx)",{"type":40,"tag":1293,"props":1551,"children":1552},{},[1553],{"type":46,"value":1554},"Eval B (from Razor.slnx)",{"type":40,"tag":1309,"props":1556,"children":1557},{},[1558,1587],{"type":40,"tag":1289,"props":1559,"children":1560},{},[1561,1569,1578],{"type":40,"tag":1316,"props":1562,"children":1563},{},[1564],{"type":40,"tag":62,"props":1565,"children":1567},{"className":1566},[],[1568],{"type":46,"value":454},{"type":40,"tag":1316,"props":1570,"children":1571},{},[1572],{"type":40,"tag":1573,"props":1574,"children":1575},"em",{},[1576],{"type":46,"value":1577},"(not set)",{"type":40,"tag":1316,"props":1579,"children":1580},{},[1581],{"type":40,"tag":62,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":46,"value":1586},"false",{"type":40,"tag":1289,"props":1588,"children":1589},{},[1590,1598,1606],{"type":40,"tag":1316,"props":1591,"children":1592},{},[1593],{"type":40,"tag":62,"props":1594,"children":1596},{"className":1595},[],[1597],{"type":46,"value":67},{"type":40,"tag":1316,"props":1599,"children":1600},{},[1601],{"type":40,"tag":62,"props":1602,"children":1604},{"className":1603},[],[1605],{"type":46,"value":1382},{"type":40,"tag":1316,"props":1607,"children":1608},{},[1609,1614,1615],{"type":40,"tag":62,"props":1610,"children":1612},{"className":1611},[],[1613],{"type":46,"value":1382},{"type":46,"value":1392},{"type":40,"tag":107,"props":1616,"children":1617},{},[1618],{"type":46,"value":1397},{"type":40,"tag":56,"props":1620,"children":1621},{},[1622,1624,1629,1631,1637],{"type":46,"value":1623},"This is particularly wasteful for projects where the extra property has no effect (e.g., ",{"type":40,"tag":62,"props":1625,"children":1627},{"className":1626},[],[1628],{"type":46,"value":454},{"type":46,"value":1630}," on a ",{"type":40,"tag":62,"props":1632,"children":1634},{"className":1633},[],[1635],{"type":46,"value":1636},"netstandard2.0",{"type":46,"value":1638}," class library that doesn't use ReadyToRun compilation).",{"type":40,"tag":56,"props":1640,"children":1641},{},[1642,1646],{"type":40,"tag":107,"props":1643,"children":1644},{},[1645],{"type":46,"value":916},{"type":46,"value":1452},{"type":40,"tag":532,"props":1648,"children":1649},{},[1650,1660,1694],{"type":40,"tag":83,"props":1651,"children":1652},{},[1653,1658],{"type":40,"tag":107,"props":1654,"children":1655},{},[1656],{"type":46,"value":1657},"Remove the extra global property",{"type":46,"value":1659}," - Investigate which parent target\u002Ftask is injecting the property and prevent it from being passed to projects that don't need it",{"type":40,"tag":83,"props":1661,"children":1662},{},[1663,1676,1678,1684,1686,1692],{"type":40,"tag":107,"props":1664,"children":1665},{},[1666,1668,1674],{"type":46,"value":1667},"Use ",{"type":40,"tag":62,"props":1669,"children":1671},{"className":1670},[],[1672],{"type":46,"value":1673},"RemoveGlobalProperties",{"type":46,"value":1675}," metadata",{"type":46,"value":1677}," - On ",{"type":40,"tag":62,"props":1679,"children":1681},{"className":1680},[],[1682],{"type":46,"value":1683},"ProjectReference",{"type":46,"value":1685}," items, use ",{"type":40,"tag":62,"props":1687,"children":1689},{"className":1688},[],[1690],{"type":46,"value":1691},"RemoveGlobalProperties=\"PublishReadyToRun\"",{"type":46,"value":1693}," to strip the property before building the referenced project",{"type":40,"tag":83,"props":1695,"children":1696},{},[1697,1702],{"type":40,"tag":107,"props":1698,"children":1699},{},[1700],{"type":46,"value":1701},"Condition the property",{"type":46,"value":1703}," - Only set the property on projects that actually use it (e.g., only for executable projects, not class libraries)",{"type":40,"tag":370,"props":1705,"children":1707},{"id":1706},"explicit-msbuild-buildpublish-with-extra-global-properties-self-or-cross-project",[1708,1710,1716],{"type":46,"value":1709},"Explicit ",{"type":40,"tag":62,"props":1711,"children":1713},{"className":1712},[],[1714],{"type":46,"value":1715},"\u003CMSBuild>",{"type":46,"value":1717}," Build\u002FPublish with extra global properties (self or cross-project)",{"type":40,"tag":56,"props":1719,"children":1720},{},[1721,1725,1727,1732,1734,1739],{"type":40,"tag":107,"props":1722,"children":1723},{},[1724],{"type":46,"value":872},{"type":46,"value":1726}," A target uses the ",{"type":40,"tag":62,"props":1728,"children":1730},{"className":1729},[],[1731],{"type":46,"value":1715},{"type":46,"value":1733}," task to build or publish a project with an extra global property, most commonly a \"publish-on-build\" target. The offending call can be in the target project itself ",{"type":40,"tag":107,"props":1735,"children":1736},{},[1737],{"type":46,"value":1738},"or in another project",{"type":46,"value":1740}," that consumes it (e.g. a test or layout project publishing a tool):",{"type":40,"tag":599,"props":1742,"children":1744},{"className":885,"code":1743,"language":887,"meta":604,"style":604},"\u003C!-- (a) same project (publish-on-build) -->\n\u003CTarget Name=\"PublishOnBuild\" AfterTargets=\"Build\">\n  \u003CMSBuild Projects=\"$(MSBuildProjectFullPath)\" Targets=\"Publish\" Properties=\"_IsPublishing=true\" \u002F>\n\u003C\u002FTarget>\n\n\u003C!-- (b) project A publishes project B that it consumes -->\n\u003CMSBuild Projects=\"..\\tool\\tool.csproj\" Targets=\"Publish\" Properties=\"_IsPublishing=true\" \u002F>\n",[1745],{"type":40,"tag":62,"props":1746,"children":1747},{"__ignoreMap":604},[1748,1756,1764,1772,1780,1787,1795],{"type":40,"tag":610,"props":1749,"children":1750},{"class":612,"line":613},[1751],{"type":40,"tag":610,"props":1752,"children":1753},{},[1754],{"type":46,"value":1755},"\u003C!-- (a) same project (publish-on-build) -->\n",{"type":40,"tag":610,"props":1757,"children":1758},{"class":612,"line":902},[1759],{"type":40,"tag":610,"props":1760,"children":1761},{},[1762],{"type":46,"value":1763},"\u003CTarget Name=\"PublishOnBuild\" AfterTargets=\"Build\">\n",{"type":40,"tag":610,"props":1765,"children":1766},{"class":612,"line":1023},[1767],{"type":40,"tag":610,"props":1768,"children":1769},{},[1770],{"type":46,"value":1771},"  \u003CMSBuild Projects=\"$(MSBuildProjectFullPath)\" Targets=\"Publish\" Properties=\"_IsPublishing=true\" \u002F>\n",{"type":40,"tag":610,"props":1773,"children":1774},{"class":612,"line":1032},[1775],{"type":40,"tag":610,"props":1776,"children":1777},{},[1778],{"type":46,"value":1779},"\u003C\u002FTarget>\n",{"type":40,"tag":610,"props":1781,"children":1782},{"class":612,"line":1042},[1783],{"type":40,"tag":610,"props":1784,"children":1785},{"emptyLinePlaceholder":1036},[1786],{"type":46,"value":1039},{"type":40,"tag":610,"props":1788,"children":1789},{"class":612,"line":1051},[1790],{"type":40,"tag":610,"props":1791,"children":1792},{},[1793],{"type":46,"value":1794},"\u003C!-- (b) project A publishes project B that it consumes -->\n",{"type":40,"tag":610,"props":1796,"children":1797},{"class":612,"line":1059},[1798],{"type":40,"tag":610,"props":1799,"children":1800},{},[1801],{"type":46,"value":1802},"\u003CMSBuild Projects=\"..\\tool\\tool.csproj\" Targets=\"Publish\" Properties=\"_IsPublishing=true\" \u002F>\n",{"type":40,"tag":56,"props":1804,"children":1805},{},[1806,1808,1814,1816,1822,1824,1829,1831,1836,1838,1844,1846,1852],{"type":46,"value":1807},"Either way this forks a distinct instance of the target project (",{"type":40,"tag":62,"props":1809,"children":1811},{"className":1810},[],[1812],{"type":46,"value":1813},"path",{"type":46,"value":1815}," + ",{"type":40,"tag":62,"props":1817,"children":1819},{"className":1818},[],[1820],{"type":46,"value":1821},"{_IsPublishing=true}",{"type":46,"value":1823},") that shares the same ",{"type":40,"tag":62,"props":1825,"children":1827},{"className":1826},[],[1828],{"type":46,"value":67},{"type":46,"value":1830},"\u002F",{"type":40,"tag":62,"props":1832,"children":1834},{"className":1833},[],[1835],{"type":46,"value":75},{"type":46,"value":1837}," as the instance the solution\u002Fgraph already builds. Both write the same files — for NativeAOT this includes the ",{"type":40,"tag":62,"props":1839,"children":1841},{"className":1840},[],[1842],{"type":46,"value":1843},"*.sourcelink",{"type":46,"value":1845}," intermediate, which produces ",{"type":40,"tag":62,"props":1847,"children":1849},{"className":1848},[],[1850],{"type":46,"value":1851},"SourceLinkWriter",{"type":46,"value":1853}," \u002F \"file in use\" failures under parallel builds.",{"type":40,"tag":56,"props":1855,"children":1856},{},[1857,1861,1863,1868,1869,1874,1876,1881,1882,1887,1889,1895,1897,1903,1905,1910,1912,1917,1919,1924],{"type":40,"tag":107,"props":1858,"children":1859},{},[1860],{"type":46,"value":1263},{"type":46,"value":1862}," Follow the Primary workflow above — the ",{"type":40,"tag":62,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":46,"value":397},{"type":46,"value":399},{"type":40,"tag":62,"props":1870,"children":1872},{"className":1871},[],[1873],{"type":46,"value":405},{"type":46,"value":1875}," tools surface two evaluations of the target project that share the same ",{"type":40,"tag":62,"props":1877,"children":1879},{"className":1878},[],[1880],{"type":46,"value":67},{"type":46,"value":1830},{"type":40,"tag":62,"props":1883,"children":1885},{"className":1884},[],[1886],{"type":46,"value":75},{"type":46,"value":1888}," but differ only by a path-neutral publish flag such as ",{"type":40,"tag":62,"props":1890,"children":1892},{"className":1891},[],[1893],{"type":46,"value":1894},"_IsPublishing",{"type":46,"value":1896},", and the ",{"type":40,"tag":62,"props":1898,"children":1900},{"className":1899},[],[1901],{"type":46,"value":1902},"double_writes",{"type":46,"value":1904}," tool flags the resulting shared-file writes directly. To tell case (a) from (b), see which project the extra ",{"type":40,"tag":62,"props":1906,"children":1908},{"className":1907},[],[1909],{"type":46,"value":1821},{"type":46,"value":1911}," evaluation runs ",{"type":40,"tag":1573,"props":1913,"children":1914},{},[1915],{"type":46,"value":1916},"under",{"type":46,"value":1918}," in the build tree (from the overview\u002Fprojects tools): the target project itself for (a), or a consumer project that invoked the ",{"type":40,"tag":62,"props":1920,"children":1922},{"className":1921},[],[1923],{"type":46,"value":1715},{"type":46,"value":1925}," task for (b).",{"type":40,"tag":56,"props":1927,"children":1928},{},[1929,1933],{"type":40,"tag":107,"props":1930,"children":1931},{},[1932],{"type":46,"value":916},{"type":46,"value":1934}," Depends on where the call lives:",{"type":40,"tag":79,"props":1936,"children":1937},{},[1938],{"type":40,"tag":83,"props":1939,"children":1940},{},[1941,1946,1948,1953,1955,1960,1962,1967,1969,1975,1976,1982],{"type":40,"tag":107,"props":1942,"children":1943},{},[1944],{"type":46,"value":1945},"Same project (a):",{"type":46,"value":1947}," you can't strip the property with ",{"type":40,"tag":62,"props":1949,"children":1951},{"className":1950},[],[1952],{"type":46,"value":1673},{"type":46,"value":1954}," (the project injects it on itself). Set the flag as a ",{"type":40,"tag":107,"props":1956,"children":1957},{},[1958],{"type":46,"value":1959},"static",{"type":46,"value":1961}," (non-global) property and run the target in the ",{"type":40,"tag":107,"props":1963,"children":1964},{},[1965],{"type":46,"value":1966},"same",{"type":46,"value":1968}," instance via ",{"type":40,"tag":62,"props":1970,"children":1972},{"className":1971},[],[1973],{"type":46,"value":1974},"DependsOnTargets",{"type":46,"value":1830},{"type":40,"tag":62,"props":1977,"children":1979},{"className":1978},[],[1980],{"type":46,"value":1981},"CallTarget",{"type":46,"value":1983},", with a guard against a target cycle when publish is the entry point:",{"type":40,"tag":599,"props":1985,"children":1987},{"className":885,"code":1986,"language":887,"meta":604,"style":604},"\u003CPropertyGroup>\n  \u003C_PublishWasInvokedDirectly Condition=\"'$(_IsPublishing)' == 'true'\">true\u003C\u002F_PublishWasInvokedDirectly>\n  \u003C_IsPublishing>true\u003C\u002F_IsPublishing>\n\u003C\u002FPropertyGroup>\n\u003CTarget Name=\"PublishOnBuild\"\n        AfterTargets=\"Build\"\n        DependsOnTargets=\"Publish\"\n        Condition=\"'$(_PublishWasInvokedDirectly)' != 'true'\" \u002F>\n",[1988],{"type":40,"tag":62,"props":1989,"children":1990},{"__ignoreMap":604},[1991,1999,2007,2015,2023,2031,2039,2047],{"type":40,"tag":610,"props":1992,"children":1993},{"class":612,"line":613},[1994],{"type":40,"tag":610,"props":1995,"children":1996},{},[1997],{"type":46,"value":1998},"\u003CPropertyGroup>\n",{"type":40,"tag":610,"props":2000,"children":2001},{"class":612,"line":902},[2002],{"type":40,"tag":610,"props":2003,"children":2004},{},[2005],{"type":46,"value":2006},"  \u003C_PublishWasInvokedDirectly Condition=\"'$(_IsPublishing)' == 'true'\">true\u003C\u002F_PublishWasInvokedDirectly>\n",{"type":40,"tag":610,"props":2008,"children":2009},{"class":612,"line":1023},[2010],{"type":40,"tag":610,"props":2011,"children":2012},{},[2013],{"type":46,"value":2014},"  \u003C_IsPublishing>true\u003C\u002F_IsPublishing>\n",{"type":40,"tag":610,"props":2016,"children":2017},{"class":612,"line":1032},[2018],{"type":40,"tag":610,"props":2019,"children":2020},{},[2021],{"type":46,"value":2022},"\u003C\u002FPropertyGroup>\n",{"type":40,"tag":610,"props":2024,"children":2025},{"class":612,"line":1042},[2026],{"type":40,"tag":610,"props":2027,"children":2028},{},[2029],{"type":46,"value":2030},"\u003CTarget Name=\"PublishOnBuild\"\n",{"type":40,"tag":610,"props":2032,"children":2033},{"class":612,"line":1051},[2034],{"type":40,"tag":610,"props":2035,"children":2036},{},[2037],{"type":46,"value":2038},"        AfterTargets=\"Build\"\n",{"type":40,"tag":610,"props":2040,"children":2041},{"class":612,"line":1059},[2042],{"type":40,"tag":610,"props":2043,"children":2044},{},[2045],{"type":46,"value":2046},"        DependsOnTargets=\"Publish\"\n",{"type":40,"tag":610,"props":2048,"children":2050},{"class":612,"line":2049},8,[2051],{"type":40,"tag":610,"props":2052,"children":2053},{},[2054],{"type":46,"value":2055},"        Condition=\"'$(_PublishWasInvokedDirectly)' != 'true'\" \u002F>\n",{"type":40,"tag":79,"props":2057,"children":2058},{},[2059],{"type":40,"tag":83,"props":2060,"children":2061},{},[2062,2067,2069,2074,2076,2081],{"type":40,"tag":107,"props":2063,"children":2064},{},[2065],{"type":46,"value":2066},"Cross-project (b):",{"type":46,"value":2068}," the consumer must not fork the producer with path-neutral global properties. Make the producer publish as part of its own build (the (a) fix in ",{"type":40,"tag":1573,"props":2070,"children":2071},{},[2072],{"type":46,"value":2073},"its",{"type":46,"value":2075}," project), then have the consumer ",{"type":40,"tag":107,"props":2077,"children":2078},{},[2079],{"type":46,"value":2080},"sequence",{"type":46,"value":2082}," it and read its output instead of re-publishing it:",{"type":40,"tag":599,"props":2084,"children":2086},{"className":885,"code":2085,"language":887,"meta":604,"style":604},"\u003CItemGroup>\n  \u003CProjectReference Include=\"..\\tool\\tool.csproj\" ReferenceOutputAssembly=\"false\" \u002F>\n\u003C\u002FItemGroup>\n\u003C!-- consumer reads tool's publish dir; it does NOT invoke Publish on tool -->\n",[2087],{"type":40,"tag":62,"props":2088,"children":2089},{"__ignoreMap":604},[2090,2098,2106,2114],{"type":40,"tag":610,"props":2091,"children":2092},{"class":612,"line":613},[2093],{"type":40,"tag":610,"props":2094,"children":2095},{},[2096],{"type":46,"value":2097},"\u003CItemGroup>\n",{"type":40,"tag":610,"props":2099,"children":2100},{"class":612,"line":902},[2101],{"type":40,"tag":610,"props":2102,"children":2103},{},[2104],{"type":46,"value":2105},"  \u003CProjectReference Include=\"..\\tool\\tool.csproj\" ReferenceOutputAssembly=\"false\" \u002F>\n",{"type":40,"tag":610,"props":2107,"children":2108},{"class":612,"line":1023},[2109],{"type":40,"tag":610,"props":2110,"children":2111},{},[2112],{"type":46,"value":2113},"\u003C\u002FItemGroup>\n",{"type":40,"tag":610,"props":2115,"children":2116},{"class":612,"line":1032},[2117],{"type":40,"tag":610,"props":2118,"children":2119},{},[2120],{"type":46,"value":2121},"\u003C!-- consumer reads tool's publish dir; it does NOT invoke Publish on tool -->\n",{"type":40,"tag":56,"props":2123,"children":2124},{},[2125,2127,2133],{"type":46,"value":2126},"See the ",{"type":40,"tag":62,"props":2128,"children":2130},{"className":2129},[],[2131],{"type":46,"value":2132},"msbuild-antipatterns",{"type":46,"value":2134}," skill (AP-22) for the authoring-time smell and rationale.",{"type":40,"tag":370,"props":2136,"children":2138},{"id":2137},"settargetframework-re-injecting-a-single-targeting-projects-own-tfm-on-a-projectreference",[2139,2145,2147],{"type":40,"tag":62,"props":2140,"children":2142},{"className":2141},[],[2143],{"type":46,"value":2144},"SetTargetFramework",{"type":46,"value":2146}," re-injecting a single-targeting project's own TFM on a ",{"type":40,"tag":62,"props":2148,"children":2150},{"className":2149},[],[2151],{"type":46,"value":1683},{"type":40,"tag":56,"props":2153,"children":2154},{},[2155,2159,2161,2166,2168,2174,2176,2181,2183,2189,2191,2197,2199,2205,2207,2212,2214,2219,2221,2226,2228,2233],{"type":40,"tag":107,"props":2156,"children":2157},{},[2158],{"type":46,"value":872},{"type":46,"value":2160}," A ",{"type":40,"tag":62,"props":2162,"children":2164},{"className":2163},[],[2165],{"type":46,"value":1683},{"type":46,"value":2167}," sets ",{"type":40,"tag":62,"props":2169,"children":2171},{"className":2170},[],[2172],{"type":46,"value":2173},"SetTargetFramework=\"TargetFramework=\u003Ctfm>\"",{"type":46,"value":2175}," metadata pointing at a ",{"type":40,"tag":107,"props":2177,"children":2178},{},[2179],{"type":46,"value":2180},"single-targeting",{"type":46,"value":2182}," project (one that uses singular ",{"type":40,"tag":62,"props":2184,"children":2186},{"className":2185},[],[2187],{"type":46,"value":2188},"\u003CTargetFramework>",{"type":46,"value":2190},", not ",{"type":40,"tag":62,"props":2192,"children":2194},{"className":2193},[],[2195],{"type":46,"value":2196},"\u003CTargetFrameworks>",{"type":46,"value":2198},"), where the injected ",{"type":40,"tag":62,"props":2200,"children":2202},{"className":2201},[],[2203],{"type":46,"value":2204},"\u003Ctfm>",{"type":46,"value":2206}," ",{"type":40,"tag":107,"props":2208,"children":2209},{},[2210],{"type":46,"value":2211},"equals the TFM the project already targets",{"type":46,"value":2213},". ",{"type":40,"tag":62,"props":2215,"children":2217},{"className":2216},[],[2218],{"type":46,"value":2144},{"type":46,"value":2220}," injects ",{"type":40,"tag":62,"props":2222,"children":2224},{"className":2223},[],[2225],{"type":46,"value":426},{"type":46,"value":2227}," as a ",{"type":40,"tag":107,"props":2229,"children":2230},{},[2231],{"type":46,"value":2232},"global property",{"type":46,"value":2234}," on the referenced project's build.",{"type":40,"tag":599,"props":2236,"children":2238},{"className":885,"code":2237,"language":887,"meta":604,"style":604},"\u003C!-- BAD: Tool.csproj single-targets net8.0 and we inject that SAME net8.0 -->\n\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\" SetTargetFramework=\"TargetFramework=net8.0\" \u002F>\n",[2239],{"type":40,"tag":62,"props":2240,"children":2241},{"__ignoreMap":604},[2242,2250],{"type":40,"tag":610,"props":2243,"children":2244},{"class":612,"line":613},[2245],{"type":40,"tag":610,"props":2246,"children":2247},{},[2248],{"type":46,"value":2249},"\u003C!-- BAD: Tool.csproj single-targets net8.0 and we inject that SAME net8.0 -->\n",{"type":40,"tag":610,"props":2251,"children":2252},{"class":612,"line":902},[2253],{"type":40,"tag":610,"props":2254,"children":2255},{},[2256],{"type":46,"value":2257},"\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\" SetTargetFramework=\"TargetFramework=net8.0\" \u002F>\n",{"type":40,"tag":56,"props":2259,"children":2260},{},[2261,2263,2268,2270,2276,2277,2283,2285,2291,2293,2299,2301,2306,2307,2312,2314,2319],{"type":46,"value":2262},"Injecting the TFM the project already targets is ",{"type":40,"tag":107,"props":2264,"children":2265},{},[2266],{"type":46,"value":2267},"path-neutral",{"type":46,"value":2269}," — the project already resolves to ",{"type":40,"tag":62,"props":2271,"children":2273},{"className":2272},[],[2274],{"type":46,"value":2275},"bin\\\u003Cconfig>\\net8.0\\",{"type":46,"value":399},{"type":40,"tag":62,"props":2278,"children":2280},{"className":2279},[],[2281],{"type":46,"value":2282},"obj\\\u003Cconfig>\\net8.0\\",{"type":46,"value":2284}," on its own. So it doesn't change the output path; it only forks a distinct instance ",{"type":40,"tag":62,"props":2286,"children":2288},{"className":2287},[],[2289],{"type":46,"value":2290},"(project, {TargetFramework=net8.0})",{"type":46,"value":2292},". The solution\u002Fgraph builds the very same project as ",{"type":40,"tag":62,"props":2294,"children":2296},{"className":2295},[],[2297],{"type":46,"value":2298},"(project, {})",{"type":46,"value":2300},". Both share the same ",{"type":40,"tag":62,"props":2302,"children":2304},{"className":2303},[],[2305],{"type":46,"value":67},{"type":46,"value":1830},{"type":40,"tag":62,"props":2308,"children":2310},{"className":2309},[],[2311],{"type":46,"value":75},{"type":46,"value":2313},", so the project is ",{"type":40,"tag":107,"props":2315,"children":2316},{},[2317],{"type":46,"value":2318},"built twice",{"type":46,"value":2320}," to the same location — a bin\u002Fobj clash under parallel builds.",{"type":40,"tag":56,"props":2322,"children":2323},{},[2324,2328,2330,2335,2336,2341,2343,2348,2349,2354,2356,2361,2363,2368,2370,2375],{"type":40,"tag":107,"props":2325,"children":2326},{},[2327],{"type":46,"value":1263},{"type":46,"value":2329}," Follow the Primary workflow above. The ",{"type":40,"tag":62,"props":2331,"children":2333},{"className":2332},[],[2334],{"type":46,"value":397},{"type":46,"value":399},{"type":40,"tag":62,"props":2337,"children":2339},{"className":2338},[],[2340],{"type":46,"value":405},{"type":46,"value":2342}," tools surface two evaluations of the referenced project that share the same ",{"type":40,"tag":62,"props":2344,"children":2346},{"className":2345},[],[2347],{"type":46,"value":67},{"type":46,"value":1830},{"type":40,"tag":62,"props":2350,"children":2352},{"className":2351},[],[2353],{"type":46,"value":75},{"type":46,"value":2355}," and differ only by a ",{"type":40,"tag":62,"props":2357,"children":2359},{"className":2358},[],[2360],{"type":46,"value":426},{"type":46,"value":2362}," global property, while the project itself is single-targeting (its own ",{"type":40,"tag":62,"props":2364,"children":2366},{"className":2365},[],[2367],{"type":46,"value":426},{"type":46,"value":2369}," already equals the injected value). The ",{"type":40,"tag":62,"props":2371,"children":2373},{"className":2372},[],[2374],{"type":46,"value":1902},{"type":46,"value":2376}," tool flags the resulting shared-file writes directly.",{"type":40,"tag":56,"props":2378,"children":2379},{},[2380,2384,2386,2391,2393,2398,2400,2405],{"type":40,"tag":107,"props":2381,"children":2382},{},[2383],{"type":46,"value":188},{"type":46,"value":2385}," The P2P protocol itself does ",{"type":40,"tag":107,"props":2387,"children":2388},{},[2389],{"type":46,"value":2390},"not",{"type":46,"value":2392}," inject ",{"type":40,"tag":62,"props":2394,"children":2396},{"className":2395},[],[2397],{"type":46,"value":426},{"type":46,"value":2399}," for a non-multi-targeting reference — the clash comes specifically from the explicit ",{"type":40,"tag":62,"props":2401,"children":2403},{"className":2402},[],[2404],{"type":46,"value":2144},{"type":46,"value":2406}," metadata overriding that safe default.",{"type":40,"tag":56,"props":2408,"children":2409},{},[2410,2414,2416,2421],{"type":40,"tag":107,"props":2411,"children":2412},{},[2413],{"type":46,"value":916},{"type":46,"value":2415}," Remove the redundant ",{"type":40,"tag":62,"props":2417,"children":2419},{"className":2418},[],[2420],{"type":46,"value":2144},{"type":46,"value":2422}," when it just restates the project's own single TFM:",{"type":40,"tag":599,"props":2424,"children":2426},{"className":885,"code":2425,"language":887,"meta":604,"style":604},"\u003C!-- GOOD -->\n\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\" \u002F>\n",[2427],{"type":40,"tag":62,"props":2428,"children":2429},{"__ignoreMap":604},[2430,2438],{"type":40,"tag":610,"props":2431,"children":2432},{"class":612,"line":613},[2433],{"type":40,"tag":610,"props":2434,"children":2435},{},[2436],{"type":46,"value":2437},"\u003C!-- GOOD -->\n",{"type":40,"tag":610,"props":2439,"children":2440},{"class":612,"line":902},[2441],{"type":40,"tag":610,"props":2442,"children":2443},{},[2444],{"type":46,"value":2445},"\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\" \u002F>\n",{"type":40,"tag":56,"props":2447,"children":2448},{},[2449],{"type":40,"tag":107,"props":2450,"children":2451},{},[2452,2454,2459],{"type":46,"value":2453},"When ",{"type":40,"tag":62,"props":2455,"children":2457},{"className":2456},[],[2458],{"type":46,"value":2144},{"type":46,"value":2460}," is legitimate (not a clash):",{"type":40,"tag":79,"props":2462,"children":2463},{},[2464,2481,2534],{"type":40,"tag":83,"props":2465,"children":2466},{},[2467,2472,2474,2479],{"type":40,"tag":107,"props":2468,"children":2469},{},[2470],{"type":46,"value":2471},"Multi-targeting reference",{"type":46,"value":2473}," — the referenced project uses ",{"type":40,"tag":62,"props":2475,"children":2477},{"className":2476},[],[2478],{"type":46,"value":2196},{"type":46,"value":2480}," and you need one specific TFM. Each TFM has a distinct output path, so no clash.",{"type":40,"tag":83,"props":2482,"children":2483},{},[2484,2496,2498,2503,2505,2510,2512,2518,2520,2525,2527,2532],{"type":40,"tag":107,"props":2485,"children":2486},{},[2487,2489,2494],{"type":46,"value":2488},"Overriding to a ",{"type":40,"tag":1573,"props":2490,"children":2491},{},[2492],{"type":46,"value":2493},"different",{"type":46,"value":2495}," TFM",{"type":46,"value":2497}," — you may use ",{"type":40,"tag":62,"props":2499,"children":2501},{"className":2500},[],[2502],{"type":46,"value":2144},{"type":46,"value":2504}," on a single-targeting project to build it under a TFM ",{"type":40,"tag":1573,"props":2506,"children":2507},{},[2508],{"type":46,"value":2509},"other than",{"type":46,"value":2511}," the one it declares. Because the injected TFM then changes the output path (",{"type":40,"tag":62,"props":2513,"children":2515},{"className":2514},[],[2516],{"type":46,"value":2517},"obj\\\u003Cconfig>\\\u003Cdifferent-tfm>\\",{"type":46,"value":2519},"), the instance no longer collides with ",{"type":40,"tag":62,"props":2521,"children":2523},{"className":2522},[],[2524],{"type":46,"value":2298},{"type":46,"value":2526},". Only the ",{"type":40,"tag":1573,"props":2528,"children":2529},{},[2530],{"type":46,"value":2531},"same-TFM",{"type":46,"value":2533}," case is path-neutral and clashing.",{"type":40,"tag":83,"props":2535,"children":2536},{},[2537,2542,2544,2549,2551,2557,2559,2565,2567,2572,2574,2580,2582,2588,2590,2596,2598,2629,2633,2635,2640,2642,2647,2649,2654,2656,2660,2662,2667,2669,2674,2675,2681,2683],{"type":40,"tag":107,"props":2538,"children":2539},{},[2540],{"type":46,"value":2541},"Framework-incompatible reference",{"type":46,"value":2543}," — whenever the referencing and referenced projects target ",{"type":40,"tag":107,"props":2545,"children":2546},{},[2547],{"type":46,"value":2548},"incompatible frameworks",{"type":46,"value":2550}," (e.g. a ",{"type":40,"tag":62,"props":2552,"children":2554},{"className":2553},[],[2555],{"type":46,"value":2556},".NETFramework",{"type":46,"value":2558}," project referencing a ",{"type":40,"tag":62,"props":2560,"children":2562},{"className":2561},[],[2563],{"type":46,"value":2564},".NETCoreApp",{"type":46,"value":2566}," project, or vice-versa) — ",{"type":40,"tag":107,"props":2568,"children":2569},{},[2570],{"type":46,"value":2571},"regardless of single- or multi-targeting on either side",{"type":46,"value":2573}," — set ",{"type":40,"tag":62,"props":2575,"children":2577},{"className":2576},[],[2578],{"type":46,"value":2579},"SkipGetTargetFrameworkProperties=\"true\"",{"type":46,"value":2581}," (the P2P ",{"type":40,"tag":62,"props":2583,"children":2585},{"className":2584},[],[2586],{"type":46,"value":2587},"GetTargetFrameworkProperties",{"type":46,"value":2589}," negotiation would otherwise fail) and ",{"type":40,"tag":62,"props":2591,"children":2593},{"className":2592},[],[2594],{"type":46,"value":2595},"ReferenceOutputAssembly=\"false\"",{"type":46,"value":2597}," (an assembly built for an incompatible framework can't be consumed as a reference — you only want to trigger\u002Fsequence the build):",{"type":40,"tag":599,"props":2599,"children":2601},{"className":885,"code":2600,"language":887,"meta":604,"style":604},"\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\"\n                  SkipGetTargetFrameworkProperties=\"true\"\n                  ReferenceOutputAssembly=\"false\" \u002F>\n",[2602],{"type":40,"tag":62,"props":2603,"children":2604},{"__ignoreMap":604},[2605,2613,2621],{"type":40,"tag":610,"props":2606,"children":2607},{"class":612,"line":613},[2608],{"type":40,"tag":610,"props":2609,"children":2610},{},[2611],{"type":46,"value":2612},"\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\"\n",{"type":40,"tag":610,"props":2614,"children":2615},{"class":612,"line":902},[2616],{"type":40,"tag":610,"props":2617,"children":2618},{},[2619],{"type":46,"value":2620},"                  SkipGetTargetFrameworkProperties=\"true\"\n",{"type":40,"tag":610,"props":2622,"children":2623},{"class":612,"line":1023},[2624],{"type":40,"tag":610,"props":2625,"children":2626},{},[2627],{"type":46,"value":2628},"                  ReferenceOutputAssembly=\"false\" \u002F>\n",{"type":40,"tag":2630,"props":2631,"children":2632},"br",{},[],{"type":46,"value":2634},"With ",{"type":40,"tag":62,"props":2636,"children":2638},{"className":2637},[],[2639],{"type":46,"value":2579},{"type":46,"value":2641},", the negotiation no longer stops the ",{"type":40,"tag":107,"props":2643,"children":2644},{},[2645],{"type":46,"value":2646},"referencing",{"type":46,"value":2648}," project's own ",{"type":40,"tag":62,"props":2650,"children":2652},{"className":2651},[],[2653],{"type":46,"value":426},{"type":46,"value":2655}," global property (present when it builds for a specific TFM, e.g. it is multi-targeting) from flowing into the referenced project. For a ",{"type":40,"tag":107,"props":2657,"children":2658},{},[2659],{"type":46,"value":2180},{"type":46,"value":2661}," referenced project that would force it to build under the wrong TFM \u002F output path. Prevent it by either setting ",{"type":40,"tag":62,"props":2663,"children":2665},{"className":2664},[],[2666],{"type":46,"value":2173},{"type":46,"value":2668}," (pin the TFM) ",{"type":40,"tag":107,"props":2670,"children":2671},{},[2672],{"type":46,"value":2673},"or",{"type":46,"value":2206},{"type":40,"tag":62,"props":2676,"children":2678},{"className":2677},[],[2679],{"type":46,"value":2680},"UndefineProperties=\"TargetFramework\"",{"type":46,"value":2682}," (strip the inherited global property so the project builds as it declares) — use one, not both:",{"type":40,"tag":599,"props":2684,"children":2686},{"className":885,"code":2685,"language":887,"meta":604,"style":604},"\u003CProjectReference Include=\"..\\Tool\\Tool.csproj\"\n                  SkipGetTargetFrameworkProperties=\"true\"\n                  UndefineProperties=\"TargetFramework\"\n                  ReferenceOutputAssembly=\"false\" \u002F>\n",[2687],{"type":40,"tag":62,"props":2688,"children":2689},{"__ignoreMap":604},[2690,2697,2704,2712],{"type":40,"tag":610,"props":2691,"children":2692},{"class":612,"line":613},[2693],{"type":40,"tag":610,"props":2694,"children":2695},{},[2696],{"type":46,"value":2612},{"type":40,"tag":610,"props":2698,"children":2699},{"class":612,"line":902},[2700],{"type":40,"tag":610,"props":2701,"children":2702},{},[2703],{"type":46,"value":2620},{"type":40,"tag":610,"props":2705,"children":2706},{"class":612,"line":1023},[2707],{"type":40,"tag":610,"props":2708,"children":2709},{},[2710],{"type":46,"value":2711},"                  UndefineProperties=\"TargetFramework\"\n",{"type":40,"tag":610,"props":2713,"children":2714},{"class":612,"line":1032},[2715],{"type":40,"tag":610,"props":2716,"children":2717},{},[2718],{"type":46,"value":2628},{"type":40,"tag":56,"props":2720,"children":2721},{},[2722,2723,2728],{"type":46,"value":2126},{"type":40,"tag":62,"props":2724,"children":2726},{"className":2725},[],[2727],{"type":46,"value":2132},{"type":46,"value":2729}," skill (AP-23) for the authoring-time smell and rationale.",{"type":40,"tag":49,"props":2731,"children":2733},{"id":2732},"tips",[2734],{"type":46,"value":2735},"Tips",{"type":40,"tag":79,"props":2737,"children":2738},{},[2739,2752,2795],{"type":40,"tag":83,"props":2740,"children":2741},{},[2742,2744,2750],{"type":46,"value":2743},"The SDK default paths include ",{"type":40,"tag":62,"props":2745,"children":2747},{"className":2746},[],[2748],{"type":46,"value":2749},"$(TargetFramework)",{"type":46,"value":2751}," — clashes often occur when projects override these defaults; normalize relative paths to absolute before comparing.",{"type":40,"tag":83,"props":2753,"children":2754},{},[2755,2773,2775,2780,2782,2787,2788,2793],{"type":40,"tag":107,"props":2756,"children":2757},{},[2758,2760,2765,2767],{"type":46,"value":2759},"Cross-project ",{"type":40,"tag":62,"props":2761,"children":2763},{"className":2762},[],[2764],{"type":46,"value":75},{"type":46,"value":2766}," clashes cannot be fixed with ",{"type":40,"tag":62,"props":2768,"children":2770},{"className":2769},[],[2771],{"type":46,"value":2772},"AppendTargetFrameworkToOutputPath",{"type":46,"value":2774}," — files like ",{"type":40,"tag":62,"props":2776,"children":2778},{"className":2777},[],[2779],{"type":46,"value":132},{"type":46,"value":2781}," are written directly to the intermediate path. For multi-targeting clashes ",{"type":40,"tag":1573,"props":2783,"children":2784},{},[2785],{"type":46,"value":2786},"within the same project",{"type":46,"value":343},{"type":40,"tag":62,"props":2789,"children":2791},{"className":2790},[],[2792],{"type":46,"value":1080},{"type":46,"value":2794}," is the correct fix.",{"type":40,"tag":83,"props":2796,"children":2797},{},[2798,2800,2805,2807,2812],{"type":46,"value":2799},"Error messages that indicate a path clash: ",{"type":40,"tag":62,"props":2801,"children":2803},{"className":2802},[],[2804],{"type":46,"value":117},{"type":46,"value":2806}," (NuGet restore), ",{"type":40,"tag":62,"props":2808,"children":2810},{"className":2809},[],[2811],{"type":46,"value":249},{"type":46,"value":2813},", or intermittent failures that succeed on retry.",{"type":40,"tag":370,"props":2815,"children":2817},{"id":2816},"global-properties-to-check-when-comparing-evaluations",[2818],{"type":46,"value":2819},"Global Properties to Check When Comparing Evaluations",{"type":40,"tag":56,"props":2821,"children":2822},{},[2823],{"type":46,"value":2824},"When multiple evaluations share an output path, compare these global properties to understand why:",{"type":40,"tag":1281,"props":2826,"children":2827},{},[2828,2848],{"type":40,"tag":1285,"props":2829,"children":2830},{},[2831],{"type":40,"tag":1289,"props":2832,"children":2833},{},[2834,2838,2843],{"type":40,"tag":1293,"props":2835,"children":2836},{},[2837],{"type":46,"value":1297},{"type":40,"tag":1293,"props":2839,"children":2840},{},[2841],{"type":46,"value":2842},"Affects OutputPath?",{"type":40,"tag":1293,"props":2844,"children":2845},{},[2846],{"type":46,"value":2847},"Notes",{"type":40,"tag":1309,"props":2849,"children":2850},{},[2851,2899,2919,2939,2960,2981,3002,3023,3044,3064,3090,3110,3130],{"type":40,"tag":1289,"props":2852,"children":2853},{},[2854,2862,2867],{"type":40,"tag":1316,"props":2855,"children":2856},{},[2857],{"type":40,"tag":62,"props":2858,"children":2860},{"className":2859},[],[2861],{"type":46,"value":426},{"type":40,"tag":1316,"props":2863,"children":2864},{},[2865],{"type":46,"value":2866},"Yes",{"type":40,"tag":1316,"props":2868,"children":2869},{},[2870,2872,2877,2879,2883,2885,2890,2892,2897],{"type":46,"value":2871},"Different TFMs should have different paths. ",{"type":40,"tag":107,"props":2873,"children":2874},{},[2875],{"type":46,"value":2876},"Exception:",{"type":46,"value":2878}," re-injecting a ",{"type":40,"tag":1573,"props":2880,"children":2881},{},[2882],{"type":46,"value":2180},{"type":46,"value":2884}," project's own TFM (e.g. via ",{"type":40,"tag":62,"props":2886,"children":2888},{"className":2887},[],[2889],{"type":46,"value":2144},{"type":46,"value":2891}," with the same value) is path-neutral — it forks a redundant instance sharing the output path (see \"",{"type":40,"tag":62,"props":2893,"children":2895},{"className":2894},[],[2896],{"type":46,"value":2144},{"type":46,"value":2898}," re-injecting...\")",{"type":40,"tag":1289,"props":2900,"children":2901},{},[2902,2910,2914],{"type":40,"tag":1316,"props":2903,"children":2904},{},[2905],{"type":40,"tag":62,"props":2906,"children":2908},{"className":2907},[],[2909],{"type":46,"value":440},{"type":40,"tag":1316,"props":2911,"children":2912},{},[2913],{"type":46,"value":2866},{"type":40,"tag":1316,"props":2915,"children":2916},{},[2917],{"type":46,"value":2918},"Different RIDs should have different paths",{"type":40,"tag":1289,"props":2920,"children":2921},{},[2922,2930,2934],{"type":40,"tag":1316,"props":2923,"children":2924},{},[2925],{"type":40,"tag":62,"props":2926,"children":2928},{"className":2927},[],[2929],{"type":46,"value":433},{"type":40,"tag":1316,"props":2931,"children":2932},{},[2933],{"type":46,"value":2866},{"type":40,"tag":1316,"props":2935,"children":2936},{},[2937],{"type":46,"value":2938},"Debug vs Release",{"type":40,"tag":1289,"props":2940,"children":2941},{},[2942,2951,2955],{"type":40,"tag":1316,"props":2943,"children":2944},{},[2945],{"type":40,"tag":62,"props":2946,"children":2948},{"className":2947},[],[2949],{"type":46,"value":2950},"Platform",{"type":40,"tag":1316,"props":2952,"children":2953},{},[2954],{"type":46,"value":2866},{"type":40,"tag":1316,"props":2956,"children":2957},{},[2958],{"type":46,"value":2959},"AnyCPU vs x64 etc.",{"type":40,"tag":1289,"props":2961,"children":2962},{},[2963,2971,2976],{"type":40,"tag":1316,"props":2964,"children":2965},{},[2966],{"type":40,"tag":62,"props":2967,"children":2969},{"className":2968},[],[2970],{"type":46,"value":447},{"type":40,"tag":1316,"props":2972,"children":2973},{},[2974],{"type":46,"value":2975},"No",{"type":40,"tag":1316,"props":2977,"children":2978},{},[2979],{"type":46,"value":2980},"Identifies which solution built the project — different values indicate multi-solution clash",{"type":40,"tag":1289,"props":2982,"children":2983},{},[2984,2993,2997],{"type":40,"tag":1316,"props":2985,"children":2986},{},[2987],{"type":40,"tag":62,"props":2988,"children":2990},{"className":2989},[],[2991],{"type":46,"value":2992},"SolutionName",{"type":40,"tag":1316,"props":2994,"children":2995},{},[2996],{"type":46,"value":2975},{"type":40,"tag":1316,"props":2998,"children":2999},{},[3000],{"type":46,"value":3001},"Solution name without extension",{"type":40,"tag":1289,"props":3003,"children":3004},{},[3005,3014,3018],{"type":40,"tag":1316,"props":3006,"children":3007},{},[3008],{"type":40,"tag":62,"props":3009,"children":3011},{"className":3010},[],[3012],{"type":46,"value":3013},"SolutionPath",{"type":40,"tag":1316,"props":3015,"children":3016},{},[3017],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3019,"children":3020},{},[3021],{"type":46,"value":3022},"Full path to the solution file",{"type":40,"tag":1289,"props":3024,"children":3025},{},[3026,3035,3039],{"type":40,"tag":1316,"props":3027,"children":3028},{},[3029],{"type":40,"tag":62,"props":3030,"children":3032},{"className":3031},[],[3033],{"type":46,"value":3034},"SolutionDir",{"type":40,"tag":1316,"props":3036,"children":3037},{},[3038],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3040,"children":3041},{},[3042],{"type":46,"value":3043},"Directory containing the solution file",{"type":40,"tag":1289,"props":3045,"children":3046},{},[3047,3055,3059],{"type":40,"tag":1316,"props":3048,"children":3049},{},[3050],{"type":40,"tag":62,"props":3051,"children":3053},{"className":3052},[],[3054],{"type":46,"value":1277},{"type":40,"tag":1316,"props":3056,"children":3057},{},[3058],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3060,"children":3061},{},[3062],{"type":46,"value":3063},"XML with project entries — count of entries reveals which solution",{"type":40,"tag":1289,"props":3065,"children":3066},{},[3067,3076,3080],{"type":40,"tag":1316,"props":3068,"children":3069},{},[3070],{"type":40,"tag":62,"props":3071,"children":3073},{"className":3072},[],[3074],{"type":46,"value":3075},"BuildProjectReferences",{"type":40,"tag":1316,"props":3077,"children":3078},{},[3079],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3081,"children":3082},{},[3083,3088],{"type":40,"tag":62,"props":3084,"children":3086},{"className":3085},[],[3087],{"type":46,"value":1586},{"type":46,"value":3089}," = P2P query, not a real build - ignore these",{"type":40,"tag":1289,"props":3091,"children":3092},{},[3093,3101,3105],{"type":40,"tag":1316,"props":3094,"children":3095},{},[3096],{"type":40,"tag":62,"props":3097,"children":3099},{"className":3098},[],[3100],{"type":46,"value":850},{"type":40,"tag":1316,"props":3102,"children":3103},{},[3104],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3106,"children":3107},{},[3108],{"type":46,"value":3109},"Present = restore phase evaluation",{"type":40,"tag":1289,"props":3111,"children":3112},{},[3113,3121,3125],{"type":40,"tag":1316,"props":3114,"children":3115},{},[3116],{"type":40,"tag":62,"props":3117,"children":3119},{"className":3118},[],[3120],{"type":46,"value":454},{"type":40,"tag":1316,"props":3122,"children":3123},{},[3124],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3126,"children":3127},{},[3128],{"type":46,"value":3129},"Publish setting, doesn't change build output path but creates distinct project instances",{"type":40,"tag":1289,"props":3131,"children":3132},{},[3133,3141,3145],{"type":40,"tag":1316,"props":3134,"children":3135},{},[3136],{"type":40,"tag":62,"props":3137,"children":3139},{"className":3138},[],[3140],{"type":46,"value":1894},{"type":40,"tag":1316,"props":3142,"children":3143},{},[3144],{"type":46,"value":2975},{"type":40,"tag":1316,"props":3146,"children":3147},{},[3148,3150,3155,3157,3162],{"type":46,"value":3149},"Publish flag; an ",{"type":40,"tag":62,"props":3151,"children":3153},{"className":3152},[],[3154],{"type":46,"value":1715},{"type":46,"value":3156}," Build\u002FPublish call with this set (in this project or another that consumes it) forks a publish instance sharing the build output path (see \"Explicit ",{"type":40,"tag":62,"props":3158,"children":3160},{"className":3159},[],[3161],{"type":46,"value":1715},{"type":46,"value":3163}," Build\u002FPublish with extra global properties\")",{"type":40,"tag":49,"props":3165,"children":3167},{"id":3166},"testing-fixes",[3168],{"type":46,"value":3169},"Testing Fixes",{"type":40,"tag":56,"props":3171,"children":3172},{},[3173,3175,3180],{"type":46,"value":3174},"After making changes to fix path clashes, clean and rebuild to verify. See the ",{"type":40,"tag":62,"props":3176,"children":3178},{"className":3177},[],[3179],{"type":46,"value":276},{"type":46,"value":3181}," skill's \"Cleaning the Repository\" section on how to clean the repository while preserving binlog files.",{"type":40,"tag":3183,"props":3184,"children":3185},"style",{},[3186],{"type":46,"value":3187},"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":3189,"total":3345},[3190,3206,3219,3234,3252,3264,3284,3294,3305,3315,3328,3339],{"slug":3191,"name":3191,"fn":3192,"description":3193,"org":3194,"tags":3195,"stars":3203,"repoUrl":3204,"updatedAt":3205},"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},[3196,3199,3200],{"name":3197,"slug":3198,"type":15},".NET","net",{"name":17,"slug":18,"type":15},{"name":3201,"slug":3202,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":3207,"name":3207,"fn":3208,"description":3209,"org":3210,"tags":3211,"stars":22,"repoUrl":23,"updatedAt":3218},"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},[3212,3213,3216,3217],{"name":3197,"slug":3198,"type":15},{"name":3214,"slug":3215,"type":15},"Code Analysis","code-analysis",{"name":20,"slug":21,"type":15},{"name":3201,"slug":3202,"type":15},"2026-07-12T08:23:25.400375",{"slug":3220,"name":3220,"fn":3221,"description":3222,"org":3223,"tags":3224,"stars":22,"repoUrl":23,"updatedAt":3233},"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},[3225,3226,3229,3230],{"name":3197,"slug":3198,"type":15},{"name":3227,"slug":3228,"type":15},"Android","android",{"name":20,"slug":21,"type":15},{"name":3231,"slug":3232,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":3235,"name":3235,"fn":3236,"description":3237,"org":3238,"tags":3239,"stars":22,"repoUrl":23,"updatedAt":3251},"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},[3240,3241,3242,3245,3248],{"name":3197,"slug":3198,"type":15},{"name":20,"slug":21,"type":15},{"name":3243,"slug":3244,"type":15},"iOS","ios",{"name":3246,"slug":3247,"type":15},"macOS","macos",{"name":3249,"slug":3250,"type":15},"Observability","observability","2026-07-12T08:23:20.369986",{"slug":3253,"name":3253,"fn":3254,"description":3255,"org":3256,"tags":3257,"stars":22,"repoUrl":23,"updatedAt":3263},"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},[3258,3259,3260],{"name":3214,"slug":3215,"type":15},{"name":13,"slug":14,"type":15},{"name":3261,"slug":3262,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":3265,"name":3265,"fn":3266,"description":3267,"org":3268,"tags":3269,"stars":22,"repoUrl":23,"updatedAt":3283},"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},[3270,3271,3274,3277,3280],{"name":3197,"slug":3198,"type":15},{"name":3272,"slug":3273,"type":15},"Blazor","blazor",{"name":3275,"slug":3276,"type":15},"C#","csharp",{"name":3278,"slug":3279,"type":15},"UI Components","ui-components",{"name":3281,"slug":3282,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":3285,"name":3285,"fn":3286,"description":3287,"org":3288,"tags":3289,"stars":22,"repoUrl":23,"updatedAt":3293},"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},[3290,3291,3292],{"name":3214,"slug":3215,"type":15},{"name":20,"slug":21,"type":15},{"name":3231,"slug":3232,"type":15},"2026-07-12T08:21:34.637923",{"slug":276,"name":276,"fn":3295,"description":3296,"org":3297,"tags":3298,"stars":22,"repoUrl":23,"updatedAt":3304},"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},[3299,3302,3303],{"name":3300,"slug":3301,"type":15},"Build","build",{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},"2026-07-19T05:38:19.340791",{"slug":3306,"name":3306,"fn":3307,"description":3308,"org":3309,"tags":3310,"stars":22,"repoUrl":23,"updatedAt":3314},"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},[3311,3312,3313],{"name":3197,"slug":3198,"type":15},{"name":17,"slug":18,"type":15},{"name":3201,"slug":3202,"type":15},"2026-07-19T05:38:18.364937",{"slug":3316,"name":3316,"fn":3317,"description":3318,"org":3319,"tags":3320,"stars":22,"repoUrl":23,"updatedAt":3327},"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},[3321,3322,3325,3326],{"name":17,"slug":18,"type":15},{"name":3323,"slug":3324,"type":15},"Monitoring","monitoring",{"name":3201,"slug":3202,"type":15},{"name":3261,"slug":3262,"type":15},"2026-07-12T08:21:35.865649",{"slug":3329,"name":3329,"fn":3330,"description":3331,"org":3332,"tags":3333,"stars":22,"repoUrl":23,"updatedAt":3338},"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},[3334,3335,3336,3337],{"name":3197,"slug":3198,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"name":3201,"slug":3202,"type":15},"2026-07-12T08:21:40.961722",{"slug":4,"name":4,"fn":5,"description":6,"org":3340,"tags":3341,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3342,3343,3344],{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},144,{"items":3347,"total":3396},[3348,3355,3362,3370,3376,3384,3390],{"slug":3207,"name":3207,"fn":3208,"description":3209,"org":3349,"tags":3350,"stars":22,"repoUrl":23,"updatedAt":3218},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3351,3352,3353,3354],{"name":3197,"slug":3198,"type":15},{"name":3214,"slug":3215,"type":15},{"name":20,"slug":21,"type":15},{"name":3201,"slug":3202,"type":15},{"slug":3220,"name":3220,"fn":3221,"description":3222,"org":3356,"tags":3357,"stars":22,"repoUrl":23,"updatedAt":3233},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3358,3359,3360,3361],{"name":3197,"slug":3198,"type":15},{"name":3227,"slug":3228,"type":15},{"name":20,"slug":21,"type":15},{"name":3231,"slug":3232,"type":15},{"slug":3235,"name":3235,"fn":3236,"description":3237,"org":3363,"tags":3364,"stars":22,"repoUrl":23,"updatedAt":3251},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3365,3366,3367,3368,3369],{"name":3197,"slug":3198,"type":15},{"name":20,"slug":21,"type":15},{"name":3243,"slug":3244,"type":15},{"name":3246,"slug":3247,"type":15},{"name":3249,"slug":3250,"type":15},{"slug":3253,"name":3253,"fn":3254,"description":3255,"org":3371,"tags":3372,"stars":22,"repoUrl":23,"updatedAt":3263},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3373,3374,3375],{"name":3214,"slug":3215,"type":15},{"name":13,"slug":14,"type":15},{"name":3261,"slug":3262,"type":15},{"slug":3265,"name":3265,"fn":3266,"description":3267,"org":3377,"tags":3378,"stars":22,"repoUrl":23,"updatedAt":3283},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3379,3380,3381,3382,3383],{"name":3197,"slug":3198,"type":15},{"name":3272,"slug":3273,"type":15},{"name":3275,"slug":3276,"type":15},{"name":3278,"slug":3279,"type":15},{"name":3281,"slug":3282,"type":15},{"slug":3285,"name":3285,"fn":3286,"description":3287,"org":3385,"tags":3386,"stars":22,"repoUrl":23,"updatedAt":3293},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3387,3388,3389],{"name":3214,"slug":3215,"type":15},{"name":20,"slug":21,"type":15},{"name":3231,"slug":3232,"type":15},{"slug":276,"name":276,"fn":3295,"description":3296,"org":3391,"tags":3392,"stars":22,"repoUrl":23,"updatedAt":3304},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3393,3394,3395],{"name":3300,"slug":3301,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},96]