[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dotnet-clr-activation-debugging":3,"mdc--hvxmgw-key":34,"related-org-dotnet-clr-activation-debugging":2464,"related-repo-dotnet-clr-activation-debugging":2627},{"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},"clr-activation-debugging","debug .NET CLR activation issues","Diagnoses .NET Framework CLR activation issues using CLR activation logs (CLRLoad logs) produced by mscoree.dll. Use when: the shim picks the wrong runtime, fails to load any runtime, shows unexpected .NET 3.5 Feature-on-Demand (FOD) dialogs, unexpectedly does NOT show FOD dialogs, loads both v2 and v4 into the same process causing failures, or any time someone is wondering \"what is happening with .NET Framework activation?\"",{"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},"Observability","observability","tag",{"name":17,"slug":18,"type":15},".NET","net",{"name":20,"slug":21,"type":15},"Debugging","debugging",4576,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fskills","2026-07-12T08:23:26.636916","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-diag\u002Fskills\u002Fclr-activation-debugging","---\nname: clr-activation-debugging\ndescription: >-\n  Diagnoses .NET Framework CLR activation issues using CLR activation logs\n  (CLRLoad logs) produced by mscoree.dll. Use when: the shim picks the wrong\n  runtime, fails to load any runtime, shows unexpected .NET 3.5 Feature-on-Demand\n  (FOD) dialogs, unexpectedly does NOT show FOD dialogs, loads both v2 and v4\n  into the same process causing failures, or any time someone is wondering\n  \"what is happening with .NET Framework activation?\"\nlicense: MIT\n---\n\n# CLR Activation Debugging\n\nDiagnose .NET Framework runtime activation issues by analyzing CLR activation logs (CLRLoad logs) produced by the shim (mscoree.dll). These logs record every decision the shim makes when selecting and loading a CLR version.\n\n## When to Use\n\n- A process fails to load the CLR at all (\"Unable to find a version of the runtime to use\")\n- The shim picks the wrong CLR version (e.g., v2.0 instead of v4.0)\n- Unexpected .NET 3.5 Feature-on-Demand (FOD) install dialogs appear\n- FOD dialogs are expected but do NOT appear\n- Both CLR v2 and CLR v4 load into the same process, causing failures\n- A COM object fails to activate because the shim can't resolve the runtime\n- Legacy hosting APIs (CorBindToRuntime) bind to an unexpected version\n\n## When Not to Use\n\n- **Modern .NET (CoreCLR \u002F .NET 5+)** — this skill covers .NET Framework only (the mscoree.dll shim)\n- **Assembly binding failures** — use Fusion logs (fuslogvw.exe), not CLR activation logs\n- **Runtime crashes after the CLR has loaded** — activation succeeded; the problem is elsewhere\n\n## Background\n\n### The Shim Architecture\n\nThe .NET Framework shim has two layers:\n- **mscoree.dll** (the \"shell shim\") — the public-facing DLL that is the registered `InprocServer32` for CLR-hosted COM objects and the entry point for `_CorExeMain`, legacy APIs, etc.\n- **mscoreei.dll** — the actual shim implementation where the runtime selection logic, logging, and activation decisions live. mscoree.dll forwards into mscoreei.dll.\n\nWhen reading logs, the `caller-name:mscoreei.dll` in FOD command lines reflects this — it's mscoreei.dll doing the work.\n\n### .NET 3.5 \u002F v2.0.50727 Version Mapping\n\n.NET 2.0, 3.0, and 3.5 all share the same CLR runtime version: **v2.0.50727**. The \"3.0\" and \"3.5\" releases were library additions on top of CLR v2.0. For activation purposes, they are all \"v2.0.50727.\" When the shim resolves to v2.0.50727 or FOD offers to install \"NetFx3\", it's installing the CLR v2.0 runtime (plus the 3.0\u002F3.5 libraries). Similarly, CLR v4.0 (v4.0.30319) covers all .NET Framework versions from 4.0 through 4.8.x.\n\n### .NET 3.5 Availability on Recent Windows\n\nOn recent Windows versions (Windows 11 Insider Preview Build 27965 and future platform releases), .NET Framework 3.5 is **no longer available as a Windows optional component (Feature-on-Demand)**. It must be installed from a standalone MSI. This means the FOD dialog (`fondue.exe \u002Fenable-feature:NetFx3`) will not succeed on these systems even if it fires. On Windows 10 and Windows 11 through 25H2, FOD remains available. .NET Framework 3.5 reaches end of support on January 9, 2029.\n\n### Shim HRESULT Codes\n\nWhen the shim fails, it returns specific HRESULTs in the `0x8013xxxx` range. These are the errors you'll see from callers (not in the activation logs themselves, which log human-readable messages):\n\n| HRESULT | Symbol | Meaning |\n|---------|--------|---------|\n| `0x80131700` | `CLR_E_SHIM_RUNTIMELOAD` | Cannot find or load a suitable runtime version. **This is the most common shim error** — it's what callers see when capped legacy activation fails on a v4-only machine. |\n| `0x80131701` | `CLR_E_SHIM_RUNTIMEEXPORT` | Found a runtime but failed to get a required export or interface from it. |\n| `0x80131702` | `CLR_E_SHIM_INSTALLROOT` | The .NET Framework install root is missing or invalid in the registry. |\n| `0x80131703` | `CLR_E_SHIM_INSTALLCOMP` | A required component of the installation is missing. |\n| `0x80131704` | `CLR_E_SHIM_LEGACYRUNTIMEALREADYBOUND` | A different runtime is already bound as the legacy runtime. A legacy API tried to bind to a version that conflicts with the one already chosen. |\n| `0x80131705` | `CLR_E_SHIM_SHUTDOWNINPROGRESS` | The shim is shutting down and cannot service the request. |\n\nIf a user reports one of these HRESULTs (especially `0x80131700`), CLR activation logs are the right diagnostic tool.\n\n## Prerequisites\n\nCLR activation logging must be enabled to produce log files. If the user doesn't have logs yet, instruct them to enable logging:\n\n**Via environment variable (recommended — scoped to current session):**\n```\nset COMPLUS_CLRLoadLogDir=C:\\CLRLoadLogs\n```\n\n**Via registry (machine-wide — affects all .NET Framework processes):**\n```\nHKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\n  CLRLoadLogDir = \"C:\\CLRLoadLogs\" (REG_SZ)\n```\n\nOn 64-bit systems, also set under `Wow6432Node` if 32-bit processes are involved.\n\n> ⚠️ **The log directory must already exist.** The shim will not create it. If it doesn't exist, no logs will be written and there will be no error or indication of failure.\n\nLogs are written as `{ProcessName}.CLRLoad{NN}.log` (NN = 00–99, one per process instance). **Logs cannot be read until the process exits** — the file is held open.\n\nAfter capturing, **remove the env var or registry key** to stop logging.\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| CLR activation log files | Yes | One or more `.CLRLoad*.log` files |\n| Symptom description | Recommended | What the user observed (FOD dialog, wrong runtime, failure, etc.) |\n| Expected behavior | Recommended | What the user expected to happen |\n\n## Workflow\n\n### Step 1: Load Reference Material\n\nTry to load the reference files in this order — they contain the detailed log format, decision flow, and CLSID registry documentation:\n\n1. `references\u002Flog-format.md` — Log line format, fields, and all known log message types\n2. `references\u002Factivation-flow.md` — The shim's decision tree for runtime selection\n3. `references\u002Fcom-activation.md` — COM (DllGetClassObject) activation specifics, CLSID registry layout\n\nIf reference files are not available, proceed using the inline knowledge below.\n\n### Step 2: Survey the Log Files\n\nGet the big picture before diving into any single log:\n\n1. **List all log files** and group by process name — this shows which executables triggered CLR activation\n2. **For each process, scan for outcome lines:**\n   - `Decided on runtime: vX.Y.Z` — successful resolution\n   - `ERROR:` — failed resolution\n   - `Launching feature-on-demand` — FOD dialog was shown\n   - `Could have launched feature-on-demand` — FOD would have fired but was suppressed\n   - `V2.0 Capping is preventing consideration` — v4+ was skipped due to capping\n\n```\ngrep -l \"ERROR:\\|Launching feature-on-demand\\|Could have launched\" *.log\ngrep -c \"Launching feature-on-demand\" *.log\n```\n\n3. **Build a summary table:**\n\n| Process | Log Files | Outcome | Runtime Selected | FOD? |\n|---------|-----------|---------|-----------------|------|\n| ... | ... | ... | ... | ... |\n\n### Step 3: Analyze Problematic Logs\n\nFor each log file with an unexpected outcome, trace the full activation flow. Read the log top-to-bottom and identify:\n\n> ⚠️ **Nested log entries:** The shim's own internal calls can trigger additional log entries within an activation sequence that is already being logged. For example, a `DllGetClassObject` call may internally call `ComputeVersionString`, which calls `FindLatestVersion`, each generating log lines. When the FOD check runs (\"Checking if feature-on-demand installation would help\"), it re-runs the entire version computation — producing a second `ComputeVersionString` block within the same activation. Don't mistake these nested\u002Fre-entrant entries for separate activation attempts.\n\n#### 3a. Entry Point\n\nThe first `FunctionCall:` or `MethodCall:` line tells you how activation was triggered:\n\n| Entry Point | Meaning |\n|-------------|---------|\n| `_CorExeMain` | Managed EXE launch — the binary IS a .NET assembly |\n| `DllGetClassObject. Clsid: {guid}` | COM activation — something CoCreated a COM class routed through mscoree.dll |\n| `ClrCreateInstance` | Modern (v4+) hosting API |\n| `CorBindToRuntimeEx` | Legacy (v1\u002Fv2) hosting API — binds the process to one runtime |\n| `ICLRMetaHostPolicy::GetRequestedRuntime` | Policy-based hosting API (often called internally after other entry points) |\n| `LoadLibraryShim` | Legacy API to load a framework DLL by name |\n\n#### 3b. Input Parameters\n\nImmediately after the entry point, the log dumps the version computation inputs:\n\n- **`IsLegacyBind`**: Is this a legacy (pre-v4) activation path? If 1, the shim uses the single-runtime \"legacy\" view of the world. Legacy APIs (`CorBindToRuntimeEx`, `DllGetClassObject` for legacy COM, `LoadLibraryShim`, etc.) set this.\n- **`IsCapped`**: If 1, the shim's roll-forward semantics are capped at Whidbey (v2.0.50727) — it will NOT consider v4.0+ when enumerating installed runtimes. This is the mechanism that makes v4 installation non-impactful: legacy codepaths continue to behave as if v4 doesn't exist. On a v4-only machine with no .NET 3.5, a capped enumeration sees **no runtimes at all**. Capping does NOT prevent loading v4+ if a specific v4 version string is explicitly provided (e.g., via `CorBindToRuntimeEx(\"v4.0.30319\", ...)` or via config with `useLegacyV2RuntimeActivationPolicy`).\n- **`SkuCheckFlags`**: Controls SKU (edition) compatibility checking.\n- **`ShouldEmulateExeLaunch`**: Whether to pretend this is an EXE launch for policy purposes.\n- **`LegacyBindRequired`**: Whether a legacy bind is strictly required.\n\n#### 3c. Config File Processing\n\nLook for config file parsing results:\n\n- `Parsing config file: {path}` — the shim is looking for a `.config` file\n- `Config File (Open). Result:00000000` — config file found and opened successfully\n- `Config File (Open). Result:80070002` — **config file not found** (HRESULT for ERROR_FILE_NOT_FOUND)\n- `Found config file: {path}` — config was successfully read\n- `UseLegacyV2RuntimeActivationPolicy is set to {0|1}` — whether `\u003Cstartup useLegacyV2RuntimeActivationPolicy=\"true\">` is present. When 1, all runtimes are treated as candidates for legacy codepaths — meaning legacy shim APIs can enumerate and choose v4+. This can be used with multiple `\u003CsupportedRuntime>` entries, with other config options, or even with no `\u003CsupportedRuntime>` entries at all (in which case legacy APIs can simply enumerate v4). **Side effect:** turns off in-proc SxS with pre-v4 runtimes — locks them out of the process.\n- `Config file includes SupportedRuntime entry. Version: vX.Y.Z, SKU: {sku}` — each `\u003CsupportedRuntime>` found in config\n\n**Key insight:** If a process has no config file AND is doing a capped legacy bind, the shim has nothing to direct it to v4.0. It will enumerate installed runtimes (capped to ≤v2.0), find nothing if 3.5 isn't installed, and fail. This is by design — v4 is intentionally invisible to these codepaths to keep v4 installation non-impactful.\n\n#### 3d. Version Resolution\n\n- `Installed Runtime: vX.Y.Z. VERSION_ARCHITECTURE: N` — what's installed on the machine\n- `{exe} was built with version: vX.Y.Z` — version from the binary's PE header (managed assemblies only; native EXEs won't have this)\n- `Using supportedRuntime: vX.Y.Z` — the shim picked a version from the config's `\u003CsupportedRuntime>` list\n- `FindLatestVersion is returning the following version: vX.Y.Z ... V2.0 Capped: {0|1}` — result of policy-based latest-version search\n- `Default version of the runtime on the machine: vX.Y.Z` or `(null)` — what the shim settled on; `(null)` means nothing was found\n- `Decided on runtime: vX.Y.Z` — **final decision** — this is the version that will be loaded\n\n#### 3e. Failure and FOD Path\n\nIf version resolution fails:\n\n1. `ERROR: Unable to find a version of the runtime to use` — the shim found no suitable runtime\n2. `SEM_FAILCRITICALERRORS is set to {value}` — checks the process error mode:\n   - **Value 0**: Error dialogs and FOD are ALLOWED\n   - **Nonzero** (any bit set, commonly 0x8001): Error dialogs and FOD are SUPPRESSED. The `SEM_FAILCRITICALERRORS` flag (0x0001) is inherited from the parent process.\n3. `Checking if feature-on-demand installation would help` — the shim re-runs version computation to see if installing .NET 3.5 would resolve the request\n4. Then either:\n   - `Launching feature-on-demand installation. CmdLine: \"...\\fondue.exe\" \u002Fenable-feature:NetFx3` — **FOD dialog shown**\n   - `Could have launched feature-on-demand installation if was not opted out.` — **FOD suppressed** because `SEM_FAILCRITICALERRORS` was set\n\n#### 3f. Multiple Activations in One Process\n\nA single log can contain multiple activation sequences. Each begins with a new `FunctionCall:` or `MethodCall:` entry. A common pattern:\n\n1. First activation via `ClrCreateInstance` \u002F `GetRequestedRuntime` → succeeds (loads v4.0 via config)\n2. Second activation via `DllGetClassObject` (COM) → legacy bind, capped → fails\n\nThis happens when a native EXE (like link.exe or mt.exe) loads the CLR successfully for its primary work, then a secondary COM activation request (e.g., for diasymreader) triggers a separate legacy resolution that can't find v2.0.\n\n### Step 4: Check System State (if needed)\n\nWhen log analysis points to a registration or configuration issue, check:\n\n**CLSID Registration** (for COM activation issues):\n```powershell\n# Check the CLSID entry\nGet-ItemProperty 'Registry::HKCR\\CLSID\\{guid}'\nGet-ItemProperty 'Registry::HKCR\\CLSID\\{guid}\\InprocServer32'\nGet-ChildItem 'Registry::HKCR\\CLSID\\{guid}\\InprocServer32' | ForEach-Object {\n    Write-Output \"--- $($_.PSChildName) ---\"\n    Get-ItemProperty \"Registry::$($_.Name)\"\n}\n```\n\nKey values under `InprocServer32`:\n- `(Default)` should be `mscoree.dll` for CLR-hosted COM objects\n- **Version subkeys** (e.g., `2.0.50727`, `4.0.30319`) indicate which runtime versions registered this CLSID\n- **`ImplementedInThisVersion`** under a version subkey means that runtime version natively implements the COM class (not via managed interop)\n- **`Assembly`** and **`Class`** under a version subkey indicate a managed COM interop registration\n- **`RuntimeVersion`** under a version subkey specifies which CLR version should host this object\n\n**Installed runtimes:**\n```powershell\nGet-ChildItem 'Registry::HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\policy'\n```\n\n**Process error mode** (why FOD did\u002Fdidn't fire):\nThe `SEM_FAILCRITICALERRORS` flag is inherited from the parent process. If a build system or script sets it (or calls `SetErrorMode`), all child processes inherit it.\n\n### Step 5: Diagnose and Report\n\nProduce a clear diagnosis covering:\n\n1. **What happened** — which process(es) had activation issues and what the symptom was\n2. **Why it happened** — trace through the specific decision path in the shim that led to the outcome\n3. **What controls the behavior** — identify the specific inputs (config file presence, error mode, CLSID registration, capping state) that determined the outcome\n4. **What changed** (if applicable) — if the user says behavior changed, identify which input could have changed (error mode from parent process, config file, CLSID registration, installed runtimes)\n\n## Common Scenarios\n\n### Unexpected FOD Dialogs\n\n**Pattern:** `DllGetClassObject` → `IsCapped: 1` → no config file → `(null)` → `SEM_FAILCRITICALERRORS: 0` → FOD launched\n\n**Root cause:** A native EXE is doing COM activation of a CLSID registered under mscoree.dll. This takes the legacy codepath, which is capped at v2.0. With no config file (and no `useLegacyV2RuntimeActivationPolicy`), v4 is invisible to this codepath. On a machine without .NET 3.5, there are no runtimes visible, and with `SEM_FAILCRITICALERRORS` not set, the FOD dialog fires.\n\n**Key question:** Why did `SEM_FAILCRITICALERRORS` change? It's inherited from the parent. Different launch methods (script vs. direct invocation, different build systems) produce different error modes. The underlying capped-legacy-bind-on-v4-only-machine failure is always there — it's just that `SEM_FAILCRITICALERRORS` controls whether it manifests as a visible dialog or a silent failure.\n\n### Wrong Runtime Selected\n\n**Pattern:** `supportedRuntime` entries in config list multiple versions; the shim picks the first one that's installed. If v2.0 is listed first and .NET 3.5 is installed, v2.0 wins even though v4.0 is also available.\n\n**Key insight:** Config `\u003CsupportedRuntime>` entries are evaluated in order. First installed match wins.\n\n### Both v2 and v4 Loaded\n\n**Pattern:** Multiple activation sequences in the same process log — one binds v4, another binds v2 (or vice versa). Side-by-side loading of CLR v2 and v4 in the same process IS supported but can cause issues with shared state.\n\n**Key insight:** Look for separate `Decided on runtime` lines with different versions in the same log file.\n\n### Legacy Runtime Already Bound\n\n**Pattern:** A legacy codepath succeeds early in the process (e.g., `CorBindToRuntimeEx` with an explicit v4 version, or config with `useLegacyV2RuntimeActivationPolicy`). This sets the legacy runtime to v4.0. All subsequent legacy activations — including capped COM activations that would otherwise fail — silently succeed by reusing the already-bound legacy runtime.\n\n**Key insight:** The ORDER of activations within a process matters. If v4.0 is bound as the legacy runtime first, capped COM activations work. If the capped COM activation happens first (before any legacy runtime is bound), it fails. This means behavior can depend on which component activates first — a race condition in concurrent code can change the outcome.\n\n## Common Pitfalls\n\n| Pitfall | Correct Approach |\n|---------|-----------------|\n| Assuming `IsCapped: 1` means v4.0 can never load | Capping only restricts roll-forward enumeration. v4.0 can still be loaded if: a specific version string is passed explicitly, config has `useLegacyV2RuntimeActivationPolicy=\"true\"` with `\u003CsupportedRuntime version=\"v4.0\"\u002F>`, or the legacy runtime is already bound to v4+. |\n| Thinking capping is broken or a bug | Capping is intentional — it makes v4 installation non-impactful. On a v4-only machine, legacy codepaths correctly see no runtimes. This is working as designed. |\n| Assuming FOD is controlled per-process | `SEM_FAILCRITICALERRORS` is inherited from the parent process. A change in the parent (build system, script, shell) changes behavior for all children. |\n| Looking only at the first activation in a log | A single log can contain multiple independent activation sequences. The problematic one is often a secondary COM activation, not the initial CLR load. |\n| Assuming a missing config file is benign | For native EXEs doing COM activation with legacy\u002Fcapped bind, the config file (with `useLegacyV2RuntimeActivationPolicy`) is the primary way to make legacy codepaths see v4.0. No config = capped = v4 invisible. |\n| Adding `\u003CsupportedRuntime>` without `useLegacyV2RuntimeActivationPolicy` | Without `useLegacyV2RuntimeActivationPolicy=\"true\"`, rolling forward to v4 via config works for the primary EXE load, but legacy codepaths (COM activation, P\u002FInvoke to mscoree.h APIs) remain capped at v2.0. Both are needed for legacy codepaths. |\n| Setting `useLegacyV2RuntimeActivationPolicy` without understanding the trade-off | This attribute turns off in-proc SxS — it locks pre-v4 runtimes out of the process. This is usually fine for build tools but should be considered for apps that need to host both v2 and v4. |\n\n## Validation\n\nBefore delivering a diagnosis, verify:\n\n- [ ] All log files with errors or FOD triggers were analyzed (not just the first one)\n- [ ] The entry point for each problematic activation was identified\n- [ ] The capping and legacy bind state was noted for each activation sequence\n- [ ] Config file presence\u002Fabsence was checked\n- [ ] SEM_FAILCRITICALERRORS state was noted for FOD-related issues\n- [ ] Multiple activations within a single log were individually traced\n- [ ] The diagnosis explains the specific decision path, not just the outcome\n",{"data":35,"body":36},{"name":4,"description":6,"license":25},{"type":37,"children":38},"root",[39,47,53,60,100,106,140,146,153,158,198,211,217,229,235,255,261,274,470,482,488,493,501,513,521,530,543,559,579,591,597,685,691,697,702,739,744,750,755,834,843,855,916,922,927,972,979,1000,1122,1128,1133,1250,1256,1261,1382,1392,1398,1493,1499,1504,1618,1624,1642,1677,1682,1688,1693,1703,1776,1788,1887,1895,1909,1934,1940,1945,1988,1994,2000,2039,2063,2087,2093,2109,2125,2131,2140,2157,2163,2186,2195,2201,2375,2381,2386,2458],{"type":40,"tag":41,"props":42,"children":43},"element","h1",{"id":4},[44],{"type":45,"value":46},"text","CLR Activation Debugging",{"type":40,"tag":48,"props":49,"children":50},"p",{},[51],{"type":45,"value":52},"Diagnose .NET Framework runtime activation issues by analyzing CLR activation logs (CLRLoad logs) produced by the shim (mscoree.dll). These logs record every decision the shim makes when selecting and loading a CLR version.",{"type":40,"tag":54,"props":55,"children":57},"h2",{"id":56},"when-to-use",[58],{"type":45,"value":59},"When to Use",{"type":40,"tag":61,"props":62,"children":63},"ul",{},[64,70,75,80,85,90,95],{"type":40,"tag":65,"props":66,"children":67},"li",{},[68],{"type":45,"value":69},"A process fails to load the CLR at all (\"Unable to find a version of the runtime to use\")",{"type":40,"tag":65,"props":71,"children":72},{},[73],{"type":45,"value":74},"The shim picks the wrong CLR version (e.g., v2.0 instead of v4.0)",{"type":40,"tag":65,"props":76,"children":77},{},[78],{"type":45,"value":79},"Unexpected .NET 3.5 Feature-on-Demand (FOD) install dialogs appear",{"type":40,"tag":65,"props":81,"children":82},{},[83],{"type":45,"value":84},"FOD dialogs are expected but do NOT appear",{"type":40,"tag":65,"props":86,"children":87},{},[88],{"type":45,"value":89},"Both CLR v2 and CLR v4 load into the same process, causing failures",{"type":40,"tag":65,"props":91,"children":92},{},[93],{"type":45,"value":94},"A COM object fails to activate because the shim can't resolve the runtime",{"type":40,"tag":65,"props":96,"children":97},{},[98],{"type":45,"value":99},"Legacy hosting APIs (CorBindToRuntime) bind to an unexpected version",{"type":40,"tag":54,"props":101,"children":103},{"id":102},"when-not-to-use",[104],{"type":45,"value":105},"When Not to Use",{"type":40,"tag":61,"props":107,"children":108},{},[109,120,130],{"type":40,"tag":65,"props":110,"children":111},{},[112,118],{"type":40,"tag":113,"props":114,"children":115},"strong",{},[116],{"type":45,"value":117},"Modern .NET (CoreCLR \u002F .NET 5+)",{"type":45,"value":119}," — this skill covers .NET Framework only (the mscoree.dll shim)",{"type":40,"tag":65,"props":121,"children":122},{},[123,128],{"type":40,"tag":113,"props":124,"children":125},{},[126],{"type":45,"value":127},"Assembly binding failures",{"type":45,"value":129}," — use Fusion logs (fuslogvw.exe), not CLR activation logs",{"type":40,"tag":65,"props":131,"children":132},{},[133,138],{"type":40,"tag":113,"props":134,"children":135},{},[136],{"type":45,"value":137},"Runtime crashes after the CLR has loaded",{"type":45,"value":139}," — activation succeeded; the problem is elsewhere",{"type":40,"tag":54,"props":141,"children":143},{"id":142},"background",[144],{"type":45,"value":145},"Background",{"type":40,"tag":147,"props":148,"children":150},"h3",{"id":149},"the-shim-architecture",[151],{"type":45,"value":152},"The Shim Architecture",{"type":40,"tag":48,"props":154,"children":155},{},[156],{"type":45,"value":157},"The .NET Framework shim has two layers:",{"type":40,"tag":61,"props":159,"children":160},{},[161,188],{"type":40,"tag":65,"props":162,"children":163},{},[164,169,171,178,180,186],{"type":40,"tag":113,"props":165,"children":166},{},[167],{"type":45,"value":168},"mscoree.dll",{"type":45,"value":170}," (the \"shell shim\") — the public-facing DLL that is the registered ",{"type":40,"tag":172,"props":173,"children":175},"code",{"className":174},[],[176],{"type":45,"value":177},"InprocServer32",{"type":45,"value":179}," for CLR-hosted COM objects and the entry point for ",{"type":40,"tag":172,"props":181,"children":183},{"className":182},[],[184],{"type":45,"value":185},"_CorExeMain",{"type":45,"value":187},", legacy APIs, etc.",{"type":40,"tag":65,"props":189,"children":190},{},[191,196],{"type":40,"tag":113,"props":192,"children":193},{},[194],{"type":45,"value":195},"mscoreei.dll",{"type":45,"value":197}," — the actual shim implementation where the runtime selection logic, logging, and activation decisions live. mscoree.dll forwards into mscoreei.dll.",{"type":40,"tag":48,"props":199,"children":200},{},[201,203,209],{"type":45,"value":202},"When reading logs, the ",{"type":40,"tag":172,"props":204,"children":206},{"className":205},[],[207],{"type":45,"value":208},"caller-name:mscoreei.dll",{"type":45,"value":210}," in FOD command lines reflects this — it's mscoreei.dll doing the work.",{"type":40,"tag":147,"props":212,"children":214},{"id":213},"net-35-v2050727-version-mapping",[215],{"type":45,"value":216},".NET 3.5 \u002F v2.0.50727 Version Mapping",{"type":40,"tag":48,"props":218,"children":219},{},[220,222,227],{"type":45,"value":221},".NET 2.0, 3.0, and 3.5 all share the same CLR runtime version: ",{"type":40,"tag":113,"props":223,"children":224},{},[225],{"type":45,"value":226},"v2.0.50727",{"type":45,"value":228},". The \"3.0\" and \"3.5\" releases were library additions on top of CLR v2.0. For activation purposes, they are all \"v2.0.50727.\" When the shim resolves to v2.0.50727 or FOD offers to install \"NetFx3\", it's installing the CLR v2.0 runtime (plus the 3.0\u002F3.5 libraries). Similarly, CLR v4.0 (v4.0.30319) covers all .NET Framework versions from 4.0 through 4.8.x.",{"type":40,"tag":147,"props":230,"children":232},{"id":231},"net-35-availability-on-recent-windows",[233],{"type":45,"value":234},".NET 3.5 Availability on Recent Windows",{"type":40,"tag":48,"props":236,"children":237},{},[238,240,245,247,253],{"type":45,"value":239},"On recent Windows versions (Windows 11 Insider Preview Build 27965 and future platform releases), .NET Framework 3.5 is ",{"type":40,"tag":113,"props":241,"children":242},{},[243],{"type":45,"value":244},"no longer available as a Windows optional component (Feature-on-Demand)",{"type":45,"value":246},". It must be installed from a standalone MSI. This means the FOD dialog (",{"type":40,"tag":172,"props":248,"children":250},{"className":249},[],[251],{"type":45,"value":252},"fondue.exe \u002Fenable-feature:NetFx3",{"type":45,"value":254},") will not succeed on these systems even if it fires. On Windows 10 and Windows 11 through 25H2, FOD remains available. .NET Framework 3.5 reaches end of support on January 9, 2029.",{"type":40,"tag":147,"props":256,"children":258},{"id":257},"shim-hresult-codes",[259],{"type":45,"value":260},"Shim HRESULT Codes",{"type":40,"tag":48,"props":262,"children":263},{},[264,266,272],{"type":45,"value":265},"When the shim fails, it returns specific HRESULTs in the ",{"type":40,"tag":172,"props":267,"children":269},{"className":268},[],[270],{"type":45,"value":271},"0x8013xxxx",{"type":45,"value":273}," range. These are the errors you'll see from callers (not in the activation logs themselves, which log human-readable messages):",{"type":40,"tag":275,"props":276,"children":277},"table",{},[278,302],{"type":40,"tag":279,"props":280,"children":281},"thead",{},[282],{"type":40,"tag":283,"props":284,"children":285},"tr",{},[286,292,297],{"type":40,"tag":287,"props":288,"children":289},"th",{},[290],{"type":45,"value":291},"HRESULT",{"type":40,"tag":287,"props":293,"children":294},{},[295],{"type":45,"value":296},"Symbol",{"type":40,"tag":287,"props":298,"children":299},{},[300],{"type":45,"value":301},"Meaning",{"type":40,"tag":303,"props":304,"children":305},"tbody",{},[306,340,366,392,418,444],{"type":40,"tag":283,"props":307,"children":308},{},[309,319,328],{"type":40,"tag":310,"props":311,"children":312},"td",{},[313],{"type":40,"tag":172,"props":314,"children":316},{"className":315},[],[317],{"type":45,"value":318},"0x80131700",{"type":40,"tag":310,"props":320,"children":321},{},[322],{"type":40,"tag":172,"props":323,"children":325},{"className":324},[],[326],{"type":45,"value":327},"CLR_E_SHIM_RUNTIMELOAD",{"type":40,"tag":310,"props":329,"children":330},{},[331,333,338],{"type":45,"value":332},"Cannot find or load a suitable runtime version. ",{"type":40,"tag":113,"props":334,"children":335},{},[336],{"type":45,"value":337},"This is the most common shim error",{"type":45,"value":339}," — it's what callers see when capped legacy activation fails on a v4-only machine.",{"type":40,"tag":283,"props":341,"children":342},{},[343,352,361],{"type":40,"tag":310,"props":344,"children":345},{},[346],{"type":40,"tag":172,"props":347,"children":349},{"className":348},[],[350],{"type":45,"value":351},"0x80131701",{"type":40,"tag":310,"props":353,"children":354},{},[355],{"type":40,"tag":172,"props":356,"children":358},{"className":357},[],[359],{"type":45,"value":360},"CLR_E_SHIM_RUNTIMEEXPORT",{"type":40,"tag":310,"props":362,"children":363},{},[364],{"type":45,"value":365},"Found a runtime but failed to get a required export or interface from it.",{"type":40,"tag":283,"props":367,"children":368},{},[369,378,387],{"type":40,"tag":310,"props":370,"children":371},{},[372],{"type":40,"tag":172,"props":373,"children":375},{"className":374},[],[376],{"type":45,"value":377},"0x80131702",{"type":40,"tag":310,"props":379,"children":380},{},[381],{"type":40,"tag":172,"props":382,"children":384},{"className":383},[],[385],{"type":45,"value":386},"CLR_E_SHIM_INSTALLROOT",{"type":40,"tag":310,"props":388,"children":389},{},[390],{"type":45,"value":391},"The .NET Framework install root is missing or invalid in the registry.",{"type":40,"tag":283,"props":393,"children":394},{},[395,404,413],{"type":40,"tag":310,"props":396,"children":397},{},[398],{"type":40,"tag":172,"props":399,"children":401},{"className":400},[],[402],{"type":45,"value":403},"0x80131703",{"type":40,"tag":310,"props":405,"children":406},{},[407],{"type":40,"tag":172,"props":408,"children":410},{"className":409},[],[411],{"type":45,"value":412},"CLR_E_SHIM_INSTALLCOMP",{"type":40,"tag":310,"props":414,"children":415},{},[416],{"type":45,"value":417},"A required component of the installation is missing.",{"type":40,"tag":283,"props":419,"children":420},{},[421,430,439],{"type":40,"tag":310,"props":422,"children":423},{},[424],{"type":40,"tag":172,"props":425,"children":427},{"className":426},[],[428],{"type":45,"value":429},"0x80131704",{"type":40,"tag":310,"props":431,"children":432},{},[433],{"type":40,"tag":172,"props":434,"children":436},{"className":435},[],[437],{"type":45,"value":438},"CLR_E_SHIM_LEGACYRUNTIMEALREADYBOUND",{"type":40,"tag":310,"props":440,"children":441},{},[442],{"type":45,"value":443},"A different runtime is already bound as the legacy runtime. A legacy API tried to bind to a version that conflicts with the one already chosen.",{"type":40,"tag":283,"props":445,"children":446},{},[447,456,465],{"type":40,"tag":310,"props":448,"children":449},{},[450],{"type":40,"tag":172,"props":451,"children":453},{"className":452},[],[454],{"type":45,"value":455},"0x80131705",{"type":40,"tag":310,"props":457,"children":458},{},[459],{"type":40,"tag":172,"props":460,"children":462},{"className":461},[],[463],{"type":45,"value":464},"CLR_E_SHIM_SHUTDOWNINPROGRESS",{"type":40,"tag":310,"props":466,"children":467},{},[468],{"type":45,"value":469},"The shim is shutting down and cannot service the request.",{"type":40,"tag":48,"props":471,"children":472},{},[473,475,480],{"type":45,"value":474},"If a user reports one of these HRESULTs (especially ",{"type":40,"tag":172,"props":476,"children":478},{"className":477},[],[479],{"type":45,"value":318},{"type":45,"value":481},"), CLR activation logs are the right diagnostic tool.",{"type":40,"tag":54,"props":483,"children":485},{"id":484},"prerequisites",[486],{"type":45,"value":487},"Prerequisites",{"type":40,"tag":48,"props":489,"children":490},{},[491],{"type":45,"value":492},"CLR activation logging must be enabled to produce log files. If the user doesn't have logs yet, instruct them to enable logging:",{"type":40,"tag":48,"props":494,"children":495},{},[496],{"type":40,"tag":113,"props":497,"children":498},{},[499],{"type":45,"value":500},"Via environment variable (recommended — scoped to current session):",{"type":40,"tag":502,"props":503,"children":507},"pre",{"className":504,"code":506,"language":45},[505],"language-text","set COMPLUS_CLRLoadLogDir=C:\\CLRLoadLogs\n",[508],{"type":40,"tag":172,"props":509,"children":511},{"__ignoreMap":510},"",[512],{"type":45,"value":506},{"type":40,"tag":48,"props":514,"children":515},{},[516],{"type":40,"tag":113,"props":517,"children":518},{},[519],{"type":45,"value":520},"Via registry (machine-wide — affects all .NET Framework processes):",{"type":40,"tag":502,"props":522,"children":525},{"className":523,"code":524,"language":45},[505],"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\n  CLRLoadLogDir = \"C:\\CLRLoadLogs\" (REG_SZ)\n",[526],{"type":40,"tag":172,"props":527,"children":528},{"__ignoreMap":510},[529],{"type":45,"value":524},{"type":40,"tag":48,"props":531,"children":532},{},[533,535,541],{"type":45,"value":534},"On 64-bit systems, also set under ",{"type":40,"tag":172,"props":536,"children":538},{"className":537},[],[539],{"type":45,"value":540},"Wow6432Node",{"type":45,"value":542}," if 32-bit processes are involved.",{"type":40,"tag":544,"props":545,"children":546},"blockquote",{},[547],{"type":40,"tag":48,"props":548,"children":549},{},[550,552,557],{"type":45,"value":551},"⚠️ ",{"type":40,"tag":113,"props":553,"children":554},{},[555],{"type":45,"value":556},"The log directory must already exist.",{"type":45,"value":558}," The shim will not create it. If it doesn't exist, no logs will be written and there will be no error or indication of failure.",{"type":40,"tag":48,"props":560,"children":561},{},[562,564,570,572,577],{"type":45,"value":563},"Logs are written as ",{"type":40,"tag":172,"props":565,"children":567},{"className":566},[],[568],{"type":45,"value":569},"{ProcessName}.CLRLoad{NN}.log",{"type":45,"value":571}," (NN = 00–99, one per process instance). ",{"type":40,"tag":113,"props":573,"children":574},{},[575],{"type":45,"value":576},"Logs cannot be read until the process exits",{"type":45,"value":578}," — the file is held open.",{"type":40,"tag":48,"props":580,"children":581},{},[582,584,589],{"type":45,"value":583},"After capturing, ",{"type":40,"tag":113,"props":585,"children":586},{},[587],{"type":45,"value":588},"remove the env var or registry key",{"type":45,"value":590}," to stop logging.",{"type":40,"tag":54,"props":592,"children":594},{"id":593},"inputs",[595],{"type":45,"value":596},"Inputs",{"type":40,"tag":275,"props":598,"children":599},{},[600,621],{"type":40,"tag":279,"props":601,"children":602},{},[603],{"type":40,"tag":283,"props":604,"children":605},{},[606,611,616],{"type":40,"tag":287,"props":607,"children":608},{},[609],{"type":45,"value":610},"Input",{"type":40,"tag":287,"props":612,"children":613},{},[614],{"type":45,"value":615},"Required",{"type":40,"tag":287,"props":617,"children":618},{},[619],{"type":45,"value":620},"Description",{"type":40,"tag":303,"props":622,"children":623},{},[624,650,668],{"type":40,"tag":283,"props":625,"children":626},{},[627,632,637],{"type":40,"tag":310,"props":628,"children":629},{},[630],{"type":45,"value":631},"CLR activation log files",{"type":40,"tag":310,"props":633,"children":634},{},[635],{"type":45,"value":636},"Yes",{"type":40,"tag":310,"props":638,"children":639},{},[640,642,648],{"type":45,"value":641},"One or more ",{"type":40,"tag":172,"props":643,"children":645},{"className":644},[],[646],{"type":45,"value":647},".CLRLoad*.log",{"type":45,"value":649}," files",{"type":40,"tag":283,"props":651,"children":652},{},[653,658,663],{"type":40,"tag":310,"props":654,"children":655},{},[656],{"type":45,"value":657},"Symptom description",{"type":40,"tag":310,"props":659,"children":660},{},[661],{"type":45,"value":662},"Recommended",{"type":40,"tag":310,"props":664,"children":665},{},[666],{"type":45,"value":667},"What the user observed (FOD dialog, wrong runtime, failure, etc.)",{"type":40,"tag":283,"props":669,"children":670},{},[671,676,680],{"type":40,"tag":310,"props":672,"children":673},{},[674],{"type":45,"value":675},"Expected behavior",{"type":40,"tag":310,"props":677,"children":678},{},[679],{"type":45,"value":662},{"type":40,"tag":310,"props":681,"children":682},{},[683],{"type":45,"value":684},"What the user expected to happen",{"type":40,"tag":54,"props":686,"children":688},{"id":687},"workflow",[689],{"type":45,"value":690},"Workflow",{"type":40,"tag":147,"props":692,"children":694},{"id":693},"step-1-load-reference-material",[695],{"type":45,"value":696},"Step 1: Load Reference Material",{"type":40,"tag":48,"props":698,"children":699},{},[700],{"type":45,"value":701},"Try to load the reference files in this order — they contain the detailed log format, decision flow, and CLSID registry documentation:",{"type":40,"tag":703,"props":704,"children":705},"ol",{},[706,717,728],{"type":40,"tag":65,"props":707,"children":708},{},[709,715],{"type":40,"tag":172,"props":710,"children":712},{"className":711},[],[713],{"type":45,"value":714},"references\u002Flog-format.md",{"type":45,"value":716}," — Log line format, fields, and all known log message types",{"type":40,"tag":65,"props":718,"children":719},{},[720,726],{"type":40,"tag":172,"props":721,"children":723},{"className":722},[],[724],{"type":45,"value":725},"references\u002Factivation-flow.md",{"type":45,"value":727}," — The shim's decision tree for runtime selection",{"type":40,"tag":65,"props":729,"children":730},{},[731,737],{"type":40,"tag":172,"props":732,"children":734},{"className":733},[],[735],{"type":45,"value":736},"references\u002Fcom-activation.md",{"type":45,"value":738}," — COM (DllGetClassObject) activation specifics, CLSID registry layout",{"type":40,"tag":48,"props":740,"children":741},{},[742],{"type":45,"value":743},"If reference files are not available, proceed using the inline knowledge below.",{"type":40,"tag":147,"props":745,"children":747},{"id":746},"step-2-survey-the-log-files",[748],{"type":45,"value":749},"Step 2: Survey the Log Files",{"type":40,"tag":48,"props":751,"children":752},{},[753],{"type":45,"value":754},"Get the big picture before diving into any single log:",{"type":40,"tag":703,"props":756,"children":757},{},[758,768],{"type":40,"tag":65,"props":759,"children":760},{},[761,766],{"type":40,"tag":113,"props":762,"children":763},{},[764],{"type":45,"value":765},"List all log files",{"type":45,"value":767}," and group by process name — this shows which executables triggered CLR activation",{"type":40,"tag":65,"props":769,"children":770},{},[771,776],{"type":40,"tag":113,"props":772,"children":773},{},[774],{"type":45,"value":775},"For each process, scan for outcome lines:",{"type":40,"tag":61,"props":777,"children":778},{},[779,790,801,812,823],{"type":40,"tag":65,"props":780,"children":781},{},[782,788],{"type":40,"tag":172,"props":783,"children":785},{"className":784},[],[786],{"type":45,"value":787},"Decided on runtime: vX.Y.Z",{"type":45,"value":789}," — successful resolution",{"type":40,"tag":65,"props":791,"children":792},{},[793,799],{"type":40,"tag":172,"props":794,"children":796},{"className":795},[],[797],{"type":45,"value":798},"ERROR:",{"type":45,"value":800}," — failed resolution",{"type":40,"tag":65,"props":802,"children":803},{},[804,810],{"type":40,"tag":172,"props":805,"children":807},{"className":806},[],[808],{"type":45,"value":809},"Launching feature-on-demand",{"type":45,"value":811}," — FOD dialog was shown",{"type":40,"tag":65,"props":813,"children":814},{},[815,821],{"type":40,"tag":172,"props":816,"children":818},{"className":817},[],[819],{"type":45,"value":820},"Could have launched feature-on-demand",{"type":45,"value":822}," — FOD would have fired but was suppressed",{"type":40,"tag":65,"props":824,"children":825},{},[826,832],{"type":40,"tag":172,"props":827,"children":829},{"className":828},[],[830],{"type":45,"value":831},"V2.0 Capping is preventing consideration",{"type":45,"value":833}," — v4+ was skipped due to capping",{"type":40,"tag":502,"props":835,"children":838},{"className":836,"code":837,"language":45},[505],"grep -l \"ERROR:\\|Launching feature-on-demand\\|Could have launched\" *.log\ngrep -c \"Launching feature-on-demand\" *.log\n",[839],{"type":40,"tag":172,"props":840,"children":841},{"__ignoreMap":510},[842],{"type":45,"value":837},{"type":40,"tag":703,"props":844,"children":846},{"start":845},3,[847],{"type":40,"tag":65,"props":848,"children":849},{},[850],{"type":40,"tag":113,"props":851,"children":852},{},[853],{"type":45,"value":854},"Build a summary table:",{"type":40,"tag":275,"props":856,"children":857},{},[858,889],{"type":40,"tag":279,"props":859,"children":860},{},[861],{"type":40,"tag":283,"props":862,"children":863},{},[864,869,874,879,884],{"type":40,"tag":287,"props":865,"children":866},{},[867],{"type":45,"value":868},"Process",{"type":40,"tag":287,"props":870,"children":871},{},[872],{"type":45,"value":873},"Log Files",{"type":40,"tag":287,"props":875,"children":876},{},[877],{"type":45,"value":878},"Outcome",{"type":40,"tag":287,"props":880,"children":881},{},[882],{"type":45,"value":883},"Runtime Selected",{"type":40,"tag":287,"props":885,"children":886},{},[887],{"type":45,"value":888},"FOD?",{"type":40,"tag":303,"props":890,"children":891},{},[892],{"type":40,"tag":283,"props":893,"children":894},{},[895,900,904,908,912],{"type":40,"tag":310,"props":896,"children":897},{},[898],{"type":45,"value":899},"...",{"type":40,"tag":310,"props":901,"children":902},{},[903],{"type":45,"value":899},{"type":40,"tag":310,"props":905,"children":906},{},[907],{"type":45,"value":899},{"type":40,"tag":310,"props":909,"children":910},{},[911],{"type":45,"value":899},{"type":40,"tag":310,"props":913,"children":914},{},[915],{"type":45,"value":899},{"type":40,"tag":147,"props":917,"children":919},{"id":918},"step-3-analyze-problematic-logs",[920],{"type":45,"value":921},"Step 3: Analyze Problematic Logs",{"type":40,"tag":48,"props":923,"children":924},{},[925],{"type":45,"value":926},"For each log file with an unexpected outcome, trace the full activation flow. Read the log top-to-bottom and identify:",{"type":40,"tag":544,"props":928,"children":929},{},[930],{"type":40,"tag":48,"props":931,"children":932},{},[933,934,939,941,947,949,955,957,963,965,970],{"type":45,"value":551},{"type":40,"tag":113,"props":935,"children":936},{},[937],{"type":45,"value":938},"Nested log entries:",{"type":45,"value":940}," The shim's own internal calls can trigger additional log entries within an activation sequence that is already being logged. For example, a ",{"type":40,"tag":172,"props":942,"children":944},{"className":943},[],[945],{"type":45,"value":946},"DllGetClassObject",{"type":45,"value":948}," call may internally call ",{"type":40,"tag":172,"props":950,"children":952},{"className":951},[],[953],{"type":45,"value":954},"ComputeVersionString",{"type":45,"value":956},", which calls ",{"type":40,"tag":172,"props":958,"children":960},{"className":959},[],[961],{"type":45,"value":962},"FindLatestVersion",{"type":45,"value":964},", each generating log lines. When the FOD check runs (\"Checking if feature-on-demand installation would help\"), it re-runs the entire version computation — producing a second ",{"type":40,"tag":172,"props":966,"children":968},{"className":967},[],[969],{"type":45,"value":954},{"type":45,"value":971}," block within the same activation. Don't mistake these nested\u002Fre-entrant entries for separate activation attempts.",{"type":40,"tag":973,"props":974,"children":976},"h4",{"id":975},"_3a-entry-point",[977],{"type":45,"value":978},"3a. Entry Point",{"type":40,"tag":48,"props":980,"children":981},{},[982,984,990,992,998],{"type":45,"value":983},"The first ",{"type":40,"tag":172,"props":985,"children":987},{"className":986},[],[988],{"type":45,"value":989},"FunctionCall:",{"type":45,"value":991}," or ",{"type":40,"tag":172,"props":993,"children":995},{"className":994},[],[996],{"type":45,"value":997},"MethodCall:",{"type":45,"value":999}," line tells you how activation was triggered:",{"type":40,"tag":275,"props":1001,"children":1002},{},[1003,1018],{"type":40,"tag":279,"props":1004,"children":1005},{},[1006],{"type":40,"tag":283,"props":1007,"children":1008},{},[1009,1014],{"type":40,"tag":287,"props":1010,"children":1011},{},[1012],{"type":45,"value":1013},"Entry Point",{"type":40,"tag":287,"props":1015,"children":1016},{},[1017],{"type":45,"value":301},{"type":40,"tag":303,"props":1019,"children":1020},{},[1021,1037,1054,1071,1088,1105],{"type":40,"tag":283,"props":1022,"children":1023},{},[1024,1032],{"type":40,"tag":310,"props":1025,"children":1026},{},[1027],{"type":40,"tag":172,"props":1028,"children":1030},{"className":1029},[],[1031],{"type":45,"value":185},{"type":40,"tag":310,"props":1033,"children":1034},{},[1035],{"type":45,"value":1036},"Managed EXE launch — the binary IS a .NET assembly",{"type":40,"tag":283,"props":1038,"children":1039},{},[1040,1049],{"type":40,"tag":310,"props":1041,"children":1042},{},[1043],{"type":40,"tag":172,"props":1044,"children":1046},{"className":1045},[],[1047],{"type":45,"value":1048},"DllGetClassObject. Clsid: {guid}",{"type":40,"tag":310,"props":1050,"children":1051},{},[1052],{"type":45,"value":1053},"COM activation — something CoCreated a COM class routed through mscoree.dll",{"type":40,"tag":283,"props":1055,"children":1056},{},[1057,1066],{"type":40,"tag":310,"props":1058,"children":1059},{},[1060],{"type":40,"tag":172,"props":1061,"children":1063},{"className":1062},[],[1064],{"type":45,"value":1065},"ClrCreateInstance",{"type":40,"tag":310,"props":1067,"children":1068},{},[1069],{"type":45,"value":1070},"Modern (v4+) hosting API",{"type":40,"tag":283,"props":1072,"children":1073},{},[1074,1083],{"type":40,"tag":310,"props":1075,"children":1076},{},[1077],{"type":40,"tag":172,"props":1078,"children":1080},{"className":1079},[],[1081],{"type":45,"value":1082},"CorBindToRuntimeEx",{"type":40,"tag":310,"props":1084,"children":1085},{},[1086],{"type":45,"value":1087},"Legacy (v1\u002Fv2) hosting API — binds the process to one runtime",{"type":40,"tag":283,"props":1089,"children":1090},{},[1091,1100],{"type":40,"tag":310,"props":1092,"children":1093},{},[1094],{"type":40,"tag":172,"props":1095,"children":1097},{"className":1096},[],[1098],{"type":45,"value":1099},"ICLRMetaHostPolicy::GetRequestedRuntime",{"type":40,"tag":310,"props":1101,"children":1102},{},[1103],{"type":45,"value":1104},"Policy-based hosting API (often called internally after other entry points)",{"type":40,"tag":283,"props":1106,"children":1107},{},[1108,1117],{"type":40,"tag":310,"props":1109,"children":1110},{},[1111],{"type":40,"tag":172,"props":1112,"children":1114},{"className":1113},[],[1115],{"type":45,"value":1116},"LoadLibraryShim",{"type":40,"tag":310,"props":1118,"children":1119},{},[1120],{"type":45,"value":1121},"Legacy API to load a framework DLL by name",{"type":40,"tag":973,"props":1123,"children":1125},{"id":1124},"_3b-input-parameters",[1126],{"type":45,"value":1127},"3b. Input Parameters",{"type":40,"tag":48,"props":1129,"children":1130},{},[1131],{"type":45,"value":1132},"Immediately after the entry point, the log dumps the version computation inputs:",{"type":40,"tag":61,"props":1134,"children":1135},{},[1136,1171,1208,1222,1236],{"type":40,"tag":65,"props":1137,"children":1138},{},[1139,1148,1150,1155,1157,1162,1164,1169],{"type":40,"tag":113,"props":1140,"children":1141},{},[1142],{"type":40,"tag":172,"props":1143,"children":1145},{"className":1144},[],[1146],{"type":45,"value":1147},"IsLegacyBind",{"type":45,"value":1149},": Is this a legacy (pre-v4) activation path? If 1, the shim uses the single-runtime \"legacy\" view of the world. Legacy APIs (",{"type":40,"tag":172,"props":1151,"children":1153},{"className":1152},[],[1154],{"type":45,"value":1082},{"type":45,"value":1156},", ",{"type":40,"tag":172,"props":1158,"children":1160},{"className":1159},[],[1161],{"type":45,"value":946},{"type":45,"value":1163}," for legacy COM, ",{"type":40,"tag":172,"props":1165,"children":1167},{"className":1166},[],[1168],{"type":45,"value":1116},{"type":45,"value":1170},", etc.) set this.",{"type":40,"tag":65,"props":1172,"children":1173},{},[1174,1183,1185,1190,1192,1198,1200,1206],{"type":40,"tag":113,"props":1175,"children":1176},{},[1177],{"type":40,"tag":172,"props":1178,"children":1180},{"className":1179},[],[1181],{"type":45,"value":1182},"IsCapped",{"type":45,"value":1184},": If 1, the shim's roll-forward semantics are capped at Whidbey (v2.0.50727) — it will NOT consider v4.0+ when enumerating installed runtimes. This is the mechanism that makes v4 installation non-impactful: legacy codepaths continue to behave as if v4 doesn't exist. On a v4-only machine with no .NET 3.5, a capped enumeration sees ",{"type":40,"tag":113,"props":1186,"children":1187},{},[1188],{"type":45,"value":1189},"no runtimes at all",{"type":45,"value":1191},". Capping does NOT prevent loading v4+ if a specific v4 version string is explicitly provided (e.g., via ",{"type":40,"tag":172,"props":1193,"children":1195},{"className":1194},[],[1196],{"type":45,"value":1197},"CorBindToRuntimeEx(\"v4.0.30319\", ...)",{"type":45,"value":1199}," or via config with ",{"type":40,"tag":172,"props":1201,"children":1203},{"className":1202},[],[1204],{"type":45,"value":1205},"useLegacyV2RuntimeActivationPolicy",{"type":45,"value":1207},").",{"type":40,"tag":65,"props":1209,"children":1210},{},[1211,1220],{"type":40,"tag":113,"props":1212,"children":1213},{},[1214],{"type":40,"tag":172,"props":1215,"children":1217},{"className":1216},[],[1218],{"type":45,"value":1219},"SkuCheckFlags",{"type":45,"value":1221},": Controls SKU (edition) compatibility checking.",{"type":40,"tag":65,"props":1223,"children":1224},{},[1225,1234],{"type":40,"tag":113,"props":1226,"children":1227},{},[1228],{"type":40,"tag":172,"props":1229,"children":1231},{"className":1230},[],[1232],{"type":45,"value":1233},"ShouldEmulateExeLaunch",{"type":45,"value":1235},": Whether to pretend this is an EXE launch for policy purposes.",{"type":40,"tag":65,"props":1237,"children":1238},{},[1239,1248],{"type":40,"tag":113,"props":1240,"children":1241},{},[1242],{"type":40,"tag":172,"props":1243,"children":1245},{"className":1244},[],[1246],{"type":45,"value":1247},"LegacyBindRequired",{"type":45,"value":1249},": Whether a legacy bind is strictly required.",{"type":40,"tag":973,"props":1251,"children":1253},{"id":1252},"_3c-config-file-processing",[1254],{"type":45,"value":1255},"3c. Config File Processing",{"type":40,"tag":48,"props":1257,"children":1258},{},[1259],{"type":45,"value":1260},"Look for config file parsing results:",{"type":40,"tag":61,"props":1262,"children":1263},{},[1264,1283,1294,1312,1323,1364],{"type":40,"tag":65,"props":1265,"children":1266},{},[1267,1273,1275,1281],{"type":40,"tag":172,"props":1268,"children":1270},{"className":1269},[],[1271],{"type":45,"value":1272},"Parsing config file: {path}",{"type":45,"value":1274}," — the shim is looking for a ",{"type":40,"tag":172,"props":1276,"children":1278},{"className":1277},[],[1279],{"type":45,"value":1280},".config",{"type":45,"value":1282}," file",{"type":40,"tag":65,"props":1284,"children":1285},{},[1286,1292],{"type":40,"tag":172,"props":1287,"children":1289},{"className":1288},[],[1290],{"type":45,"value":1291},"Config File (Open). Result:00000000",{"type":45,"value":1293}," — config file found and opened successfully",{"type":40,"tag":65,"props":1295,"children":1296},{},[1297,1303,1305,1310],{"type":40,"tag":172,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":45,"value":1302},"Config File (Open). Result:80070002",{"type":45,"value":1304}," — ",{"type":40,"tag":113,"props":1306,"children":1307},{},[1308],{"type":45,"value":1309},"config file not found",{"type":45,"value":1311}," (HRESULT for ERROR_FILE_NOT_FOUND)",{"type":40,"tag":65,"props":1313,"children":1314},{},[1315,1321],{"type":40,"tag":172,"props":1316,"children":1318},{"className":1317},[],[1319],{"type":45,"value":1320},"Found config file: {path}",{"type":45,"value":1322}," — config was successfully read",{"type":40,"tag":65,"props":1324,"children":1325},{},[1326,1332,1334,1340,1342,1348,1350,1355,1357,1362],{"type":40,"tag":172,"props":1327,"children":1329},{"className":1328},[],[1330],{"type":45,"value":1331},"UseLegacyV2RuntimeActivationPolicy is set to {0|1}",{"type":45,"value":1333}," — whether ",{"type":40,"tag":172,"props":1335,"children":1337},{"className":1336},[],[1338],{"type":45,"value":1339},"\u003Cstartup useLegacyV2RuntimeActivationPolicy=\"true\">",{"type":45,"value":1341}," is present. When 1, all runtimes are treated as candidates for legacy codepaths — meaning legacy shim APIs can enumerate and choose v4+. This can be used with multiple ",{"type":40,"tag":172,"props":1343,"children":1345},{"className":1344},[],[1346],{"type":45,"value":1347},"\u003CsupportedRuntime>",{"type":45,"value":1349}," entries, with other config options, or even with no ",{"type":40,"tag":172,"props":1351,"children":1353},{"className":1352},[],[1354],{"type":45,"value":1347},{"type":45,"value":1356}," entries at all (in which case legacy APIs can simply enumerate v4). ",{"type":40,"tag":113,"props":1358,"children":1359},{},[1360],{"type":45,"value":1361},"Side effect:",{"type":45,"value":1363}," turns off in-proc SxS with pre-v4 runtimes — locks them out of the process.",{"type":40,"tag":65,"props":1365,"children":1366},{},[1367,1373,1375,1380],{"type":40,"tag":172,"props":1368,"children":1370},{"className":1369},[],[1371],{"type":45,"value":1372},"Config file includes SupportedRuntime entry. Version: vX.Y.Z, SKU: {sku}",{"type":45,"value":1374}," — each ",{"type":40,"tag":172,"props":1376,"children":1378},{"className":1377},[],[1379],{"type":45,"value":1347},{"type":45,"value":1381}," found in config",{"type":40,"tag":48,"props":1383,"children":1384},{},[1385,1390],{"type":40,"tag":113,"props":1386,"children":1387},{},[1388],{"type":45,"value":1389},"Key insight:",{"type":45,"value":1391}," If a process has no config file AND is doing a capped legacy bind, the shim has nothing to direct it to v4.0. It will enumerate installed runtimes (capped to ≤v2.0), find nothing if 3.5 isn't installed, and fail. This is by design — v4 is intentionally invisible to these codepaths to keep v4 installation non-impactful.",{"type":40,"tag":973,"props":1393,"children":1395},{"id":1394},"_3d-version-resolution",[1396],{"type":45,"value":1397},"3d. Version Resolution",{"type":40,"tag":61,"props":1399,"children":1400},{},[1401,1412,1423,1441,1452,1477],{"type":40,"tag":65,"props":1402,"children":1403},{},[1404,1410],{"type":40,"tag":172,"props":1405,"children":1407},{"className":1406},[],[1408],{"type":45,"value":1409},"Installed Runtime: vX.Y.Z. VERSION_ARCHITECTURE: N",{"type":45,"value":1411}," — what's installed on the machine",{"type":40,"tag":65,"props":1413,"children":1414},{},[1415,1421],{"type":40,"tag":172,"props":1416,"children":1418},{"className":1417},[],[1419],{"type":45,"value":1420},"{exe} was built with version: vX.Y.Z",{"type":45,"value":1422}," — version from the binary's PE header (managed assemblies only; native EXEs won't have this)",{"type":40,"tag":65,"props":1424,"children":1425},{},[1426,1432,1434,1439],{"type":40,"tag":172,"props":1427,"children":1429},{"className":1428},[],[1430],{"type":45,"value":1431},"Using supportedRuntime: vX.Y.Z",{"type":45,"value":1433}," — the shim picked a version from the config's ",{"type":40,"tag":172,"props":1435,"children":1437},{"className":1436},[],[1438],{"type":45,"value":1347},{"type":45,"value":1440}," list",{"type":40,"tag":65,"props":1442,"children":1443},{},[1444,1450],{"type":40,"tag":172,"props":1445,"children":1447},{"className":1446},[],[1448],{"type":45,"value":1449},"FindLatestVersion is returning the following version: vX.Y.Z ... V2.0 Capped: {0|1}",{"type":45,"value":1451}," — result of policy-based latest-version search",{"type":40,"tag":65,"props":1453,"children":1454},{},[1455,1461,1462,1468,1470,1475],{"type":40,"tag":172,"props":1456,"children":1458},{"className":1457},[],[1459],{"type":45,"value":1460},"Default version of the runtime on the machine: vX.Y.Z",{"type":45,"value":991},{"type":40,"tag":172,"props":1463,"children":1465},{"className":1464},[],[1466],{"type":45,"value":1467},"(null)",{"type":45,"value":1469}," — what the shim settled on; ",{"type":40,"tag":172,"props":1471,"children":1473},{"className":1472},[],[1474],{"type":45,"value":1467},{"type":45,"value":1476}," means nothing was found",{"type":40,"tag":65,"props":1478,"children":1479},{},[1480,1485,1486,1491],{"type":40,"tag":172,"props":1481,"children":1483},{"className":1482},[],[1484],{"type":45,"value":787},{"type":45,"value":1304},{"type":40,"tag":113,"props":1487,"children":1488},{},[1489],{"type":45,"value":1490},"final decision",{"type":45,"value":1492}," — this is the version that will be loaded",{"type":40,"tag":973,"props":1494,"children":1496},{"id":1495},"_3e-failure-and-fod-path",[1497],{"type":45,"value":1498},"3e. Failure and FOD Path",{"type":40,"tag":48,"props":1500,"children":1501},{},[1502],{"type":45,"value":1503},"If version resolution fails:",{"type":40,"tag":703,"props":1505,"children":1506},{},[1507,1518,1560,1571],{"type":40,"tag":65,"props":1508,"children":1509},{},[1510,1516],{"type":40,"tag":172,"props":1511,"children":1513},{"className":1512},[],[1514],{"type":45,"value":1515},"ERROR: Unable to find a version of the runtime to use",{"type":45,"value":1517}," — the shim found no suitable runtime",{"type":40,"tag":65,"props":1519,"children":1520},{},[1521,1527,1529],{"type":40,"tag":172,"props":1522,"children":1524},{"className":1523},[],[1525],{"type":45,"value":1526},"SEM_FAILCRITICALERRORS is set to {value}",{"type":45,"value":1528}," — checks the process error mode:\n",{"type":40,"tag":61,"props":1530,"children":1531},{},[1532,1542],{"type":40,"tag":65,"props":1533,"children":1534},{},[1535,1540],{"type":40,"tag":113,"props":1536,"children":1537},{},[1538],{"type":45,"value":1539},"Value 0",{"type":45,"value":1541},": Error dialogs and FOD are ALLOWED",{"type":40,"tag":65,"props":1543,"children":1544},{},[1545,1550,1552,1558],{"type":40,"tag":113,"props":1546,"children":1547},{},[1548],{"type":45,"value":1549},"Nonzero",{"type":45,"value":1551}," (any bit set, commonly 0x8001): Error dialogs and FOD are SUPPRESSED. The ",{"type":40,"tag":172,"props":1553,"children":1555},{"className":1554},[],[1556],{"type":45,"value":1557},"SEM_FAILCRITICALERRORS",{"type":45,"value":1559}," flag (0x0001) is inherited from the parent process.",{"type":40,"tag":65,"props":1561,"children":1562},{},[1563,1569],{"type":40,"tag":172,"props":1564,"children":1566},{"className":1565},[],[1567],{"type":45,"value":1568},"Checking if feature-on-demand installation would help",{"type":45,"value":1570}," — the shim re-runs version computation to see if installing .NET 3.5 would resolve the request",{"type":40,"tag":65,"props":1572,"children":1573},{},[1574,1576],{"type":45,"value":1575},"Then either:\n",{"type":40,"tag":61,"props":1577,"children":1578},{},[1579,1594],{"type":40,"tag":65,"props":1580,"children":1581},{},[1582,1588,1589],{"type":40,"tag":172,"props":1583,"children":1585},{"className":1584},[],[1586],{"type":45,"value":1587},"Launching feature-on-demand installation. CmdLine: \"...\\fondue.exe\" \u002Fenable-feature:NetFx3",{"type":45,"value":1304},{"type":40,"tag":113,"props":1590,"children":1591},{},[1592],{"type":45,"value":1593},"FOD dialog shown",{"type":40,"tag":65,"props":1595,"children":1596},{},[1597,1603,1604,1609,1611,1616],{"type":40,"tag":172,"props":1598,"children":1600},{"className":1599},[],[1601],{"type":45,"value":1602},"Could have launched feature-on-demand installation if was not opted out.",{"type":45,"value":1304},{"type":40,"tag":113,"props":1605,"children":1606},{},[1607],{"type":45,"value":1608},"FOD suppressed",{"type":45,"value":1610}," because ",{"type":40,"tag":172,"props":1612,"children":1614},{"className":1613},[],[1615],{"type":45,"value":1557},{"type":45,"value":1617}," was set",{"type":40,"tag":973,"props":1619,"children":1621},{"id":1620},"_3f-multiple-activations-in-one-process",[1622],{"type":45,"value":1623},"3f. Multiple Activations in One Process",{"type":40,"tag":48,"props":1625,"children":1626},{},[1627,1629,1634,1635,1640],{"type":45,"value":1628},"A single log can contain multiple activation sequences. Each begins with a new ",{"type":40,"tag":172,"props":1630,"children":1632},{"className":1631},[],[1633],{"type":45,"value":989},{"type":45,"value":991},{"type":40,"tag":172,"props":1636,"children":1638},{"className":1637},[],[1639],{"type":45,"value":997},{"type":45,"value":1641}," entry. A common pattern:",{"type":40,"tag":703,"props":1643,"children":1644},{},[1645,1665],{"type":40,"tag":65,"props":1646,"children":1647},{},[1648,1650,1655,1657,1663],{"type":45,"value":1649},"First activation via ",{"type":40,"tag":172,"props":1651,"children":1653},{"className":1652},[],[1654],{"type":45,"value":1065},{"type":45,"value":1656}," \u002F ",{"type":40,"tag":172,"props":1658,"children":1660},{"className":1659},[],[1661],{"type":45,"value":1662},"GetRequestedRuntime",{"type":45,"value":1664}," → succeeds (loads v4.0 via config)",{"type":40,"tag":65,"props":1666,"children":1667},{},[1668,1670,1675],{"type":45,"value":1669},"Second activation via ",{"type":40,"tag":172,"props":1671,"children":1673},{"className":1672},[],[1674],{"type":45,"value":946},{"type":45,"value":1676}," (COM) → legacy bind, capped → fails",{"type":40,"tag":48,"props":1678,"children":1679},{},[1680],{"type":45,"value":1681},"This happens when a native EXE (like link.exe or mt.exe) loads the CLR successfully for its primary work, then a secondary COM activation request (e.g., for diasymreader) triggers a separate legacy resolution that can't find v2.0.",{"type":40,"tag":147,"props":1683,"children":1685},{"id":1684},"step-4-check-system-state-if-needed",[1686],{"type":45,"value":1687},"Step 4: Check System State (if needed)",{"type":40,"tag":48,"props":1689,"children":1690},{},[1691],{"type":45,"value":1692},"When log analysis points to a registration or configuration issue, check:",{"type":40,"tag":48,"props":1694,"children":1695},{},[1696,1701],{"type":40,"tag":113,"props":1697,"children":1698},{},[1699],{"type":45,"value":1700},"CLSID Registration",{"type":45,"value":1702}," (for COM activation issues):",{"type":40,"tag":502,"props":1704,"children":1708},{"className":1705,"code":1706,"language":1707,"meta":510,"style":510},"language-powershell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Check the CLSID entry\nGet-ItemProperty 'Registry::HKCR\\CLSID\\{guid}'\nGet-ItemProperty 'Registry::HKCR\\CLSID\\{guid}\\InprocServer32'\nGet-ChildItem 'Registry::HKCR\\CLSID\\{guid}\\InprocServer32' | ForEach-Object {\n    Write-Output \"--- $($_.PSChildName) ---\"\n    Get-ItemProperty \"Registry::$($_.Name)\"\n}\n","powershell",[1709],{"type":40,"tag":172,"props":1710,"children":1711},{"__ignoreMap":510},[1712,1723,1732,1740,1749,1758,1767],{"type":40,"tag":1713,"props":1714,"children":1717},"span",{"class":1715,"line":1716},"line",1,[1718],{"type":40,"tag":1713,"props":1719,"children":1720},{},[1721],{"type":45,"value":1722},"# Check the CLSID entry\n",{"type":40,"tag":1713,"props":1724,"children":1726},{"class":1715,"line":1725},2,[1727],{"type":40,"tag":1713,"props":1728,"children":1729},{},[1730],{"type":45,"value":1731},"Get-ItemProperty 'Registry::HKCR\\CLSID\\{guid}'\n",{"type":40,"tag":1713,"props":1733,"children":1734},{"class":1715,"line":845},[1735],{"type":40,"tag":1713,"props":1736,"children":1737},{},[1738],{"type":45,"value":1739},"Get-ItemProperty 'Registry::HKCR\\CLSID\\{guid}\\InprocServer32'\n",{"type":40,"tag":1713,"props":1741,"children":1743},{"class":1715,"line":1742},4,[1744],{"type":40,"tag":1713,"props":1745,"children":1746},{},[1747],{"type":45,"value":1748},"Get-ChildItem 'Registry::HKCR\\CLSID\\{guid}\\InprocServer32' | ForEach-Object {\n",{"type":40,"tag":1713,"props":1750,"children":1752},{"class":1715,"line":1751},5,[1753],{"type":40,"tag":1713,"props":1754,"children":1755},{},[1756],{"type":45,"value":1757},"    Write-Output \"--- $($_.PSChildName) ---\"\n",{"type":40,"tag":1713,"props":1759,"children":1761},{"class":1715,"line":1760},6,[1762],{"type":40,"tag":1713,"props":1763,"children":1764},{},[1765],{"type":45,"value":1766},"    Get-ItemProperty \"Registry::$($_.Name)\"\n",{"type":40,"tag":1713,"props":1768,"children":1770},{"class":1715,"line":1769},7,[1771],{"type":40,"tag":1713,"props":1772,"children":1773},{},[1774],{"type":45,"value":1775},"}\n",{"type":40,"tag":48,"props":1777,"children":1778},{},[1779,1781,1786],{"type":45,"value":1780},"Key values under ",{"type":40,"tag":172,"props":1782,"children":1784},{"className":1783},[],[1785],{"type":45,"value":177},{"type":45,"value":1787},":",{"type":40,"tag":61,"props":1789,"children":1790},{},[1791,1809,1834,1848,1873],{"type":40,"tag":65,"props":1792,"children":1793},{},[1794,1800,1802,1807],{"type":40,"tag":172,"props":1795,"children":1797},{"className":1796},[],[1798],{"type":45,"value":1799},"(Default)",{"type":45,"value":1801}," should be ",{"type":40,"tag":172,"props":1803,"children":1805},{"className":1804},[],[1806],{"type":45,"value":168},{"type":45,"value":1808}," for CLR-hosted COM objects",{"type":40,"tag":65,"props":1810,"children":1811},{},[1812,1817,1819,1825,1826,1832],{"type":40,"tag":113,"props":1813,"children":1814},{},[1815],{"type":45,"value":1816},"Version subkeys",{"type":45,"value":1818}," (e.g., ",{"type":40,"tag":172,"props":1820,"children":1822},{"className":1821},[],[1823],{"type":45,"value":1824},"2.0.50727",{"type":45,"value":1156},{"type":40,"tag":172,"props":1827,"children":1829},{"className":1828},[],[1830],{"type":45,"value":1831},"4.0.30319",{"type":45,"value":1833},") indicate which runtime versions registered this CLSID",{"type":40,"tag":65,"props":1835,"children":1836},{},[1837,1846],{"type":40,"tag":113,"props":1838,"children":1839},{},[1840],{"type":40,"tag":172,"props":1841,"children":1843},{"className":1842},[],[1844],{"type":45,"value":1845},"ImplementedInThisVersion",{"type":45,"value":1847}," under a version subkey means that runtime version natively implements the COM class (not via managed interop)",{"type":40,"tag":65,"props":1849,"children":1850},{},[1851,1860,1862,1871],{"type":40,"tag":113,"props":1852,"children":1853},{},[1854],{"type":40,"tag":172,"props":1855,"children":1857},{"className":1856},[],[1858],{"type":45,"value":1859},"Assembly",{"type":45,"value":1861}," and ",{"type":40,"tag":113,"props":1863,"children":1864},{},[1865],{"type":40,"tag":172,"props":1866,"children":1868},{"className":1867},[],[1869],{"type":45,"value":1870},"Class",{"type":45,"value":1872}," under a version subkey indicate a managed COM interop registration",{"type":40,"tag":65,"props":1874,"children":1875},{},[1876,1885],{"type":40,"tag":113,"props":1877,"children":1878},{},[1879],{"type":40,"tag":172,"props":1880,"children":1882},{"className":1881},[],[1883],{"type":45,"value":1884},"RuntimeVersion",{"type":45,"value":1886}," under a version subkey specifies which CLR version should host this object",{"type":40,"tag":48,"props":1888,"children":1889},{},[1890],{"type":40,"tag":113,"props":1891,"children":1892},{},[1893],{"type":45,"value":1894},"Installed runtimes:",{"type":40,"tag":502,"props":1896,"children":1898},{"className":1705,"code":1897,"language":1707,"meta":510,"style":510},"Get-ChildItem 'Registry::HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\policy'\n",[1899],{"type":40,"tag":172,"props":1900,"children":1901},{"__ignoreMap":510},[1902],{"type":40,"tag":1713,"props":1903,"children":1904},{"class":1715,"line":1716},[1905],{"type":40,"tag":1713,"props":1906,"children":1907},{},[1908],{"type":45,"value":1897},{"type":40,"tag":48,"props":1910,"children":1911},{},[1912,1917,1919,1924,1926,1932],{"type":40,"tag":113,"props":1913,"children":1914},{},[1915],{"type":45,"value":1916},"Process error mode",{"type":45,"value":1918}," (why FOD did\u002Fdidn't fire):\nThe ",{"type":40,"tag":172,"props":1920,"children":1922},{"className":1921},[],[1923],{"type":45,"value":1557},{"type":45,"value":1925}," flag is inherited from the parent process. If a build system or script sets it (or calls ",{"type":40,"tag":172,"props":1927,"children":1929},{"className":1928},[],[1930],{"type":45,"value":1931},"SetErrorMode",{"type":45,"value":1933},"), all child processes inherit it.",{"type":40,"tag":147,"props":1935,"children":1937},{"id":1936},"step-5-diagnose-and-report",[1938],{"type":45,"value":1939},"Step 5: Diagnose and Report",{"type":40,"tag":48,"props":1941,"children":1942},{},[1943],{"type":45,"value":1944},"Produce a clear diagnosis covering:",{"type":40,"tag":703,"props":1946,"children":1947},{},[1948,1958,1968,1978],{"type":40,"tag":65,"props":1949,"children":1950},{},[1951,1956],{"type":40,"tag":113,"props":1952,"children":1953},{},[1954],{"type":45,"value":1955},"What happened",{"type":45,"value":1957}," — which process(es) had activation issues and what the symptom was",{"type":40,"tag":65,"props":1959,"children":1960},{},[1961,1966],{"type":40,"tag":113,"props":1962,"children":1963},{},[1964],{"type":45,"value":1965},"Why it happened",{"type":45,"value":1967}," — trace through the specific decision path in the shim that led to the outcome",{"type":40,"tag":65,"props":1969,"children":1970},{},[1971,1976],{"type":40,"tag":113,"props":1972,"children":1973},{},[1974],{"type":45,"value":1975},"What controls the behavior",{"type":45,"value":1977}," — identify the specific inputs (config file presence, error mode, CLSID registration, capping state) that determined the outcome",{"type":40,"tag":65,"props":1979,"children":1980},{},[1981,1986],{"type":40,"tag":113,"props":1982,"children":1983},{},[1984],{"type":45,"value":1985},"What changed",{"type":45,"value":1987}," (if applicable) — if the user says behavior changed, identify which input could have changed (error mode from parent process, config file, CLSID registration, installed runtimes)",{"type":40,"tag":54,"props":1989,"children":1991},{"id":1990},"common-scenarios",[1992],{"type":45,"value":1993},"Common Scenarios",{"type":40,"tag":147,"props":1995,"children":1997},{"id":1996},"unexpected-fod-dialogs",[1998],{"type":45,"value":1999},"Unexpected FOD Dialogs",{"type":40,"tag":48,"props":2001,"children":2002},{},[2003,2008,2010,2015,2017,2023,2025,2030,2031,2037],{"type":40,"tag":113,"props":2004,"children":2005},{},[2006],{"type":45,"value":2007},"Pattern:",{"type":45,"value":2009}," ",{"type":40,"tag":172,"props":2011,"children":2013},{"className":2012},[],[2014],{"type":45,"value":946},{"type":45,"value":2016}," → ",{"type":40,"tag":172,"props":2018,"children":2020},{"className":2019},[],[2021],{"type":45,"value":2022},"IsCapped: 1",{"type":45,"value":2024}," → no config file → ",{"type":40,"tag":172,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":45,"value":1467},{"type":45,"value":2016},{"type":40,"tag":172,"props":2032,"children":2034},{"className":2033},[],[2035],{"type":45,"value":2036},"SEM_FAILCRITICALERRORS: 0",{"type":45,"value":2038}," → FOD launched",{"type":40,"tag":48,"props":2040,"children":2041},{},[2042,2047,2049,2054,2056,2061],{"type":40,"tag":113,"props":2043,"children":2044},{},[2045],{"type":45,"value":2046},"Root cause:",{"type":45,"value":2048}," A native EXE is doing COM activation of a CLSID registered under mscoree.dll. This takes the legacy codepath, which is capped at v2.0. With no config file (and no ",{"type":40,"tag":172,"props":2050,"children":2052},{"className":2051},[],[2053],{"type":45,"value":1205},{"type":45,"value":2055},"), v4 is invisible to this codepath. On a machine without .NET 3.5, there are no runtimes visible, and with ",{"type":40,"tag":172,"props":2057,"children":2059},{"className":2058},[],[2060],{"type":45,"value":1557},{"type":45,"value":2062}," not set, the FOD dialog fires.",{"type":40,"tag":48,"props":2064,"children":2065},{},[2066,2071,2073,2078,2080,2085],{"type":40,"tag":113,"props":2067,"children":2068},{},[2069],{"type":45,"value":2070},"Key question:",{"type":45,"value":2072}," Why did ",{"type":40,"tag":172,"props":2074,"children":2076},{"className":2075},[],[2077],{"type":45,"value":1557},{"type":45,"value":2079}," change? It's inherited from the parent. Different launch methods (script vs. direct invocation, different build systems) produce different error modes. The underlying capped-legacy-bind-on-v4-only-machine failure is always there — it's just that ",{"type":40,"tag":172,"props":2081,"children":2083},{"className":2082},[],[2084],{"type":45,"value":1557},{"type":45,"value":2086}," controls whether it manifests as a visible dialog or a silent failure.",{"type":40,"tag":147,"props":2088,"children":2090},{"id":2089},"wrong-runtime-selected",[2091],{"type":45,"value":2092},"Wrong Runtime Selected",{"type":40,"tag":48,"props":2094,"children":2095},{},[2096,2100,2101,2107],{"type":40,"tag":113,"props":2097,"children":2098},{},[2099],{"type":45,"value":2007},{"type":45,"value":2009},{"type":40,"tag":172,"props":2102,"children":2104},{"className":2103},[],[2105],{"type":45,"value":2106},"supportedRuntime",{"type":45,"value":2108}," entries in config list multiple versions; the shim picks the first one that's installed. If v2.0 is listed first and .NET 3.5 is installed, v2.0 wins even though v4.0 is also available.",{"type":40,"tag":48,"props":2110,"children":2111},{},[2112,2116,2118,2123],{"type":40,"tag":113,"props":2113,"children":2114},{},[2115],{"type":45,"value":1389},{"type":45,"value":2117}," Config ",{"type":40,"tag":172,"props":2119,"children":2121},{"className":2120},[],[2122],{"type":45,"value":1347},{"type":45,"value":2124}," entries are evaluated in order. First installed match wins.",{"type":40,"tag":147,"props":2126,"children":2128},{"id":2127},"both-v2-and-v4-loaded",[2129],{"type":45,"value":2130},"Both v2 and v4 Loaded",{"type":40,"tag":48,"props":2132,"children":2133},{},[2134,2138],{"type":40,"tag":113,"props":2135,"children":2136},{},[2137],{"type":45,"value":2007},{"type":45,"value":2139}," Multiple activation sequences in the same process log — one binds v4, another binds v2 (or vice versa). Side-by-side loading of CLR v2 and v4 in the same process IS supported but can cause issues with shared state.",{"type":40,"tag":48,"props":2141,"children":2142},{},[2143,2147,2149,2155],{"type":40,"tag":113,"props":2144,"children":2145},{},[2146],{"type":45,"value":1389},{"type":45,"value":2148}," Look for separate ",{"type":40,"tag":172,"props":2150,"children":2152},{"className":2151},[],[2153],{"type":45,"value":2154},"Decided on runtime",{"type":45,"value":2156}," lines with different versions in the same log file.",{"type":40,"tag":147,"props":2158,"children":2160},{"id":2159},"legacy-runtime-already-bound",[2161],{"type":45,"value":2162},"Legacy Runtime Already Bound",{"type":40,"tag":48,"props":2164,"children":2165},{},[2166,2170,2172,2177,2179,2184],{"type":40,"tag":113,"props":2167,"children":2168},{},[2169],{"type":45,"value":2007},{"type":45,"value":2171}," A legacy codepath succeeds early in the process (e.g., ",{"type":40,"tag":172,"props":2173,"children":2175},{"className":2174},[],[2176],{"type":45,"value":1082},{"type":45,"value":2178}," with an explicit v4 version, or config with ",{"type":40,"tag":172,"props":2180,"children":2182},{"className":2181},[],[2183],{"type":45,"value":1205},{"type":45,"value":2185},"). This sets the legacy runtime to v4.0. All subsequent legacy activations — including capped COM activations that would otherwise fail — silently succeed by reusing the already-bound legacy runtime.",{"type":40,"tag":48,"props":2187,"children":2188},{},[2189,2193],{"type":40,"tag":113,"props":2190,"children":2191},{},[2192],{"type":45,"value":1389},{"type":45,"value":2194}," The ORDER of activations within a process matters. If v4.0 is bound as the legacy runtime first, capped COM activations work. If the capped COM activation happens first (before any legacy runtime is bound), it fails. This means behavior can depend on which component activates first — a race condition in concurrent code can change the outcome.",{"type":40,"tag":54,"props":2196,"children":2198},{"id":2197},"common-pitfalls",[2199],{"type":45,"value":2200},"Common Pitfalls",{"type":40,"tag":275,"props":2202,"children":2203},{},[2204,2220],{"type":40,"tag":279,"props":2205,"children":2206},{},[2207],{"type":40,"tag":283,"props":2208,"children":2209},{},[2210,2215],{"type":40,"tag":287,"props":2211,"children":2212},{},[2213],{"type":45,"value":2214},"Pitfall",{"type":40,"tag":287,"props":2216,"children":2217},{},[2218],{"type":45,"value":2219},"Correct Approach",{"type":40,"tag":303,"props":2221,"children":2222},{},[2223,2259,2272,2290,2303,2323,2355],{"type":40,"tag":283,"props":2224,"children":2225},{},[2226,2238],{"type":40,"tag":310,"props":2227,"children":2228},{},[2229,2231,2236],{"type":45,"value":2230},"Assuming ",{"type":40,"tag":172,"props":2232,"children":2234},{"className":2233},[],[2235],{"type":45,"value":2022},{"type":45,"value":2237}," means v4.0 can never load",{"type":40,"tag":310,"props":2239,"children":2240},{},[2241,2243,2249,2251,2257],{"type":45,"value":2242},"Capping only restricts roll-forward enumeration. v4.0 can still be loaded if: a specific version string is passed explicitly, config has ",{"type":40,"tag":172,"props":2244,"children":2246},{"className":2245},[],[2247],{"type":45,"value":2248},"useLegacyV2RuntimeActivationPolicy=\"true\"",{"type":45,"value":2250}," with ",{"type":40,"tag":172,"props":2252,"children":2254},{"className":2253},[],[2255],{"type":45,"value":2256},"\u003CsupportedRuntime version=\"v4.0\"\u002F>",{"type":45,"value":2258},", or the legacy runtime is already bound to v4+.",{"type":40,"tag":283,"props":2260,"children":2261},{},[2262,2267],{"type":40,"tag":310,"props":2263,"children":2264},{},[2265],{"type":45,"value":2266},"Thinking capping is broken or a bug",{"type":40,"tag":310,"props":2268,"children":2269},{},[2270],{"type":45,"value":2271},"Capping is intentional — it makes v4 installation non-impactful. On a v4-only machine, legacy codepaths correctly see no runtimes. This is working as designed.",{"type":40,"tag":283,"props":2273,"children":2274},{},[2275,2280],{"type":40,"tag":310,"props":2276,"children":2277},{},[2278],{"type":45,"value":2279},"Assuming FOD is controlled per-process",{"type":40,"tag":310,"props":2281,"children":2282},{},[2283,2288],{"type":40,"tag":172,"props":2284,"children":2286},{"className":2285},[],[2287],{"type":45,"value":1557},{"type":45,"value":2289}," is inherited from the parent process. A change in the parent (build system, script, shell) changes behavior for all children.",{"type":40,"tag":283,"props":2291,"children":2292},{},[2293,2298],{"type":40,"tag":310,"props":2294,"children":2295},{},[2296],{"type":45,"value":2297},"Looking only at the first activation in a log",{"type":40,"tag":310,"props":2299,"children":2300},{},[2301],{"type":45,"value":2302},"A single log can contain multiple independent activation sequences. The problematic one is often a secondary COM activation, not the initial CLR load.",{"type":40,"tag":283,"props":2304,"children":2305},{},[2306,2311],{"type":40,"tag":310,"props":2307,"children":2308},{},[2309],{"type":45,"value":2310},"Assuming a missing config file is benign",{"type":40,"tag":310,"props":2312,"children":2313},{},[2314,2316,2321],{"type":45,"value":2315},"For native EXEs doing COM activation with legacy\u002Fcapped bind, the config file (with ",{"type":40,"tag":172,"props":2317,"children":2319},{"className":2318},[],[2320],{"type":45,"value":1205},{"type":45,"value":2322},") is the primary way to make legacy codepaths see v4.0. No config = capped = v4 invisible.",{"type":40,"tag":283,"props":2324,"children":2325},{},[2326,2343],{"type":40,"tag":310,"props":2327,"children":2328},{},[2329,2331,2336,2338],{"type":45,"value":2330},"Adding ",{"type":40,"tag":172,"props":2332,"children":2334},{"className":2333},[],[2335],{"type":45,"value":1347},{"type":45,"value":2337}," without ",{"type":40,"tag":172,"props":2339,"children":2341},{"className":2340},[],[2342],{"type":45,"value":1205},{"type":40,"tag":310,"props":2344,"children":2345},{},[2346,2348,2353],{"type":45,"value":2347},"Without ",{"type":40,"tag":172,"props":2349,"children":2351},{"className":2350},[],[2352],{"type":45,"value":2248},{"type":45,"value":2354},", rolling forward to v4 via config works for the primary EXE load, but legacy codepaths (COM activation, P\u002FInvoke to mscoree.h APIs) remain capped at v2.0. Both are needed for legacy codepaths.",{"type":40,"tag":283,"props":2356,"children":2357},{},[2358,2370],{"type":40,"tag":310,"props":2359,"children":2360},{},[2361,2363,2368],{"type":45,"value":2362},"Setting ",{"type":40,"tag":172,"props":2364,"children":2366},{"className":2365},[],[2367],{"type":45,"value":1205},{"type":45,"value":2369}," without understanding the trade-off",{"type":40,"tag":310,"props":2371,"children":2372},{},[2373],{"type":45,"value":2374},"This attribute turns off in-proc SxS — it locks pre-v4 runtimes out of the process. This is usually fine for build tools but should be considered for apps that need to host both v2 and v4.",{"type":40,"tag":54,"props":2376,"children":2378},{"id":2377},"validation",[2379],{"type":45,"value":2380},"Validation",{"type":40,"tag":48,"props":2382,"children":2383},{},[2384],{"type":45,"value":2385},"Before delivering a diagnosis, verify:",{"type":40,"tag":61,"props":2387,"children":2390},{"className":2388},[2389],"contains-task-list",[2391,2404,2413,2422,2431,2440,2449],{"type":40,"tag":65,"props":2392,"children":2395},{"className":2393},[2394],"task-list-item",[2396,2402],{"type":40,"tag":2397,"props":2398,"children":2401},"input",{"disabled":2399,"type":2400},true,"checkbox",[],{"type":45,"value":2403}," All log files with errors or FOD triggers were analyzed (not just the first one)",{"type":40,"tag":65,"props":2405,"children":2407},{"className":2406},[2394],[2408,2411],{"type":40,"tag":2397,"props":2409,"children":2410},{"disabled":2399,"type":2400},[],{"type":45,"value":2412}," The entry point for each problematic activation was identified",{"type":40,"tag":65,"props":2414,"children":2416},{"className":2415},[2394],[2417,2420],{"type":40,"tag":2397,"props":2418,"children":2419},{"disabled":2399,"type":2400},[],{"type":45,"value":2421}," The capping and legacy bind state was noted for each activation sequence",{"type":40,"tag":65,"props":2423,"children":2425},{"className":2424},[2394],[2426,2429],{"type":40,"tag":2397,"props":2427,"children":2428},{"disabled":2399,"type":2400},[],{"type":45,"value":2430}," Config file presence\u002Fabsence was checked",{"type":40,"tag":65,"props":2432,"children":2434},{"className":2433},[2394],[2435,2438],{"type":40,"tag":2397,"props":2436,"children":2437},{"disabled":2399,"type":2400},[],{"type":45,"value":2439}," SEM_FAILCRITICALERRORS state was noted for FOD-related issues",{"type":40,"tag":65,"props":2441,"children":2443},{"className":2442},[2394],[2444,2447],{"type":40,"tag":2397,"props":2445,"children":2446},{"disabled":2399,"type":2400},[],{"type":45,"value":2448}," Multiple activations within a single log were individually traced",{"type":40,"tag":65,"props":2450,"children":2452},{"className":2451},[2394],[2453,2456],{"type":40,"tag":2397,"props":2454,"children":2455},{"disabled":2399,"type":2400},[],{"type":45,"value":2457}," The diagnosis explains the specific decision path, not just the outcome",{"type":40,"tag":2459,"props":2460,"children":2461},"style",{},[2462],{"type":45,"value":2463},"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":2465,"total":2626},[2466,2482,2495,2510,2526,2540,2560,2570,2582,2592,2605,2616],{"slug":2467,"name":2467,"fn":2468,"description":2469,"org":2470,"tags":2471,"stars":2479,"repoUrl":2480,"updatedAt":2481},"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},[2472,2473,2476],{"name":17,"slug":18,"type":15},{"name":2474,"slug":2475,"type":15},"Engineering","engineering",{"name":2477,"slug":2478,"type":15},"Performance","performance",5535,"https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fmsbuild","2026-07-22T05:37:33.965588",{"slug":2483,"name":2483,"fn":2484,"description":2485,"org":2486,"tags":2487,"stars":22,"repoUrl":23,"updatedAt":2494},"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},[2488,2489,2492,2493],{"name":17,"slug":18,"type":15},{"name":2490,"slug":2491,"type":15},"Code Analysis","code-analysis",{"name":20,"slug":21,"type":15},{"name":2477,"slug":2478,"type":15},"2026-07-12T08:23:25.400375",{"slug":2496,"name":2496,"fn":2497,"description":2498,"org":2499,"tags":2500,"stars":22,"repoUrl":23,"updatedAt":2509},"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},[2501,2502,2505,2506],{"name":17,"slug":18,"type":15},{"name":2503,"slug":2504,"type":15},"Android","android",{"name":20,"slug":21,"type":15},{"name":2507,"slug":2508,"type":15},"Microsoft","microsoft","2026-07-12T08:23:21.595572",{"slug":2511,"name":2511,"fn":2512,"description":2513,"org":2514,"tags":2515,"stars":22,"repoUrl":23,"updatedAt":2525},"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},[2516,2517,2518,2521,2524],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":2519,"slug":2520,"type":15},"iOS","ios",{"name":2522,"slug":2523,"type":15},"macOS","macos",{"name":13,"slug":14,"type":15},"2026-07-12T08:23:20.369986",{"slug":2527,"name":2527,"fn":2528,"description":2529,"org":2530,"tags":2531,"stars":22,"repoUrl":23,"updatedAt":2539},"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},[2532,2533,2536],{"name":2490,"slug":2491,"type":15},{"name":2534,"slug":2535,"type":15},"QA","qa",{"name":2537,"slug":2538,"type":15},"Testing","testing","2026-07-12T08:23:51.277743",{"slug":2541,"name":2541,"fn":2542,"description":2543,"org":2544,"tags":2545,"stars":22,"repoUrl":23,"updatedAt":2559},"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},[2546,2547,2550,2553,2556],{"name":17,"slug":18,"type":15},{"name":2548,"slug":2549,"type":15},"Blazor","blazor",{"name":2551,"slug":2552,"type":15},"C#","csharp",{"name":2554,"slug":2555,"type":15},"UI Components","ui-components",{"name":2557,"slug":2558,"type":15},"Web Development","web-development","2026-07-15T06:03:29.216359",{"slug":2561,"name":2561,"fn":2562,"description":2563,"org":2564,"tags":2565,"stars":22,"repoUrl":23,"updatedAt":2569},"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},[2566,2567,2568],{"name":2490,"slug":2491,"type":15},{"name":20,"slug":21,"type":15},{"name":2507,"slug":2508,"type":15},"2026-07-12T08:21:34.637923",{"slug":2571,"name":2571,"fn":2572,"description":2573,"org":2574,"tags":2575,"stars":22,"repoUrl":23,"updatedAt":2581},"binlog-generation","generate MSBuild binary logs for diagnostics","Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding \u002Fbl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors or performance. Requires MSBuild 17.8+ \u002F .NET 8 SDK+ for {} placeholder; PowerShell needs -bl:{{}}. DO NOT USE FOR: non-MSBuild build systems (npm, Maven, CMake), analyzing an existing binlog (use binlog-failure-analysis instead).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2576,2579,2580],{"name":2577,"slug":2578,"type":15},"Build","build",{"name":20,"slug":21,"type":15},{"name":2474,"slug":2475,"type":15},"2026-07-19T05:38:19.340791",{"slug":2583,"name":2583,"fn":2584,"description":2585,"org":2586,"tags":2587,"stars":22,"repoUrl":23,"updatedAt":2591},"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},[2588,2589,2590],{"name":17,"slug":18,"type":15},{"name":2474,"slug":2475,"type":15},{"name":2477,"slug":2478,"type":15},"2026-07-19T05:38:18.364937",{"slug":2593,"name":2593,"fn":2594,"description":2595,"org":2596,"tags":2597,"stars":22,"repoUrl":23,"updatedAt":2604},"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},[2598,2599,2602,2603],{"name":2474,"slug":2475,"type":15},{"name":2600,"slug":2601,"type":15},"Monitoring","monitoring",{"name":2477,"slug":2478,"type":15},{"name":2537,"slug":2538,"type":15},"2026-07-12T08:21:35.865649",{"slug":2606,"name":2606,"fn":2607,"description":2608,"org":2609,"tags":2610,"stars":22,"repoUrl":23,"updatedAt":2615},"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},[2611,2612,2613,2614],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":2474,"slug":2475,"type":15},{"name":2477,"slug":2478,"type":15},"2026-07-12T08:21:40.961722",{"slug":2617,"name":2617,"fn":2618,"description":2619,"org":2620,"tags":2621,"stars":22,"repoUrl":23,"updatedAt":2625},"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},[2622,2623,2624],{"name":20,"slug":21,"type":15},{"name":2474,"slug":2475,"type":15},{"name":2534,"slug":2535,"type":15},"2026-07-19T05:38:14.336279",144,{"items":2628,"total":2677},[2629,2636,2643,2651,2657,2665,2671],{"slug":2483,"name":2483,"fn":2484,"description":2485,"org":2630,"tags":2631,"stars":22,"repoUrl":23,"updatedAt":2494},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2632,2633,2634,2635],{"name":17,"slug":18,"type":15},{"name":2490,"slug":2491,"type":15},{"name":20,"slug":21,"type":15},{"name":2477,"slug":2478,"type":15},{"slug":2496,"name":2496,"fn":2497,"description":2498,"org":2637,"tags":2638,"stars":22,"repoUrl":23,"updatedAt":2509},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2639,2640,2641,2642],{"name":17,"slug":18,"type":15},{"name":2503,"slug":2504,"type":15},{"name":20,"slug":21,"type":15},{"name":2507,"slug":2508,"type":15},{"slug":2511,"name":2511,"fn":2512,"description":2513,"org":2644,"tags":2645,"stars":22,"repoUrl":23,"updatedAt":2525},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2646,2647,2648,2649,2650],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":2519,"slug":2520,"type":15},{"name":2522,"slug":2523,"type":15},{"name":13,"slug":14,"type":15},{"slug":2527,"name":2527,"fn":2528,"description":2529,"org":2652,"tags":2653,"stars":22,"repoUrl":23,"updatedAt":2539},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2654,2655,2656],{"name":2490,"slug":2491,"type":15},{"name":2534,"slug":2535,"type":15},{"name":2537,"slug":2538,"type":15},{"slug":2541,"name":2541,"fn":2542,"description":2543,"org":2658,"tags":2659,"stars":22,"repoUrl":23,"updatedAt":2559},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2660,2661,2662,2663,2664],{"name":17,"slug":18,"type":15},{"name":2548,"slug":2549,"type":15},{"name":2551,"slug":2552,"type":15},{"name":2554,"slug":2555,"type":15},{"name":2557,"slug":2558,"type":15},{"slug":2561,"name":2561,"fn":2562,"description":2563,"org":2666,"tags":2667,"stars":22,"repoUrl":23,"updatedAt":2569},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2668,2669,2670],{"name":2490,"slug":2491,"type":15},{"name":20,"slug":21,"type":15},{"name":2507,"slug":2508,"type":15},{"slug":2571,"name":2571,"fn":2572,"description":2573,"org":2672,"tags":2673,"stars":22,"repoUrl":23,"updatedAt":2581},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2674,2675,2676],{"name":2577,"slug":2578,"type":15},{"name":20,"slug":21,"type":15},{"name":2474,"slug":2475,"type":15},96]