[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DZRMGPYXYFYNWSFMDTY0QW":3,"skill-same:01M6DZRMGPYXYFYNWSFMDTY0QW":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6DZRMGPYXYFYNWSFMDTY0QW","setup-local-sdk",null,"Install a .NET SDK locally for safe preview testing, specific-version pinning, or reproducible team setups — without modifying the system-wide installation. USE FOR: trying .NET previews safely, testing specific SDK versions, installing MAUI or other workloads on a preview, updating or replacing an existing local SDK, creating reproducible team\u002FCI install scripts, configuring global.json paths. DO NOT USE FOR: system-wide SDK installs, .NET hosts older than 10, runtime-only installs, or projects not using SDK-style commands.","managedcode\u002Fdotnet-skills","managedcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78253589?v=4","01M6DYDJR3EG8KB5G4PC65XCTT","Managed Code","01M6DYDJX0ZT432N04NYJW89DN",512,"MIT","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet\u002Fskills\u002Fsetup-local-sdk\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"sdk","setup local sdk","setup","local","version","for","hosts","paths","scripts","style","runtime","commands","installation","preview","do","only","testing","use","install","json","system","projects","team","Reproducible","ci","safe","2026-11-10 10:12:30",false,"---\nname: setup-local-sdk\nlicense: MIT\ndescription: >\n  Install a .NET SDK locally for safe preview testing, specific-version pinning, or\n  reproducible team setups — without modifying the system-wide installation.\n  USE FOR: trying .NET previews safely, testing specific SDK versions, installing MAUI\n  or other workloads on a preview, updating or replacing an existing local SDK,\n  creating reproducible team\u002FCI install scripts, configuring global.json paths.\n  DO NOT USE FOR: system-wide SDK installs, .NET hosts older than 10, runtime-only\n  installs, or projects not using SDK-style commands.\n---\n\n# setup-local-sdk\n\n## Purpose\n\nGuide the user through installing a .NET SDK into a project-local `.dotnet\u002F`\ndirectory and wiring it up via the `global.json` `paths` feature (.NET 10+).\nThe examples use .NET 11, but this works with any version — prerelease or stable.\n\nThe result is a fully isolated SDK that:\n- Does **not** modify the system-wide .NET installation.\n- Is picked up automatically by `dotnet` commands from the project root.\n- Can be deleted to revert (`rm -rf .dotnet\u002F` or `Remove-Item -Recurse -Force .\\.dotnet`).\n\n## When NOT to use\n\n- User wants a **system-wide** install — direct to the official installer.\n- Host `dotnet` is **older than v10** — `paths` doesn't exist; explain and stop.\n- User needs a **runtime-only** install — `paths` applies to SDK resolution only.\n\n## Inputs \u002F Prerequisites\n\n| Input | Required | Default | Notes |\n|---|---|---|---|\n| Channel or version | No | `11.0` | e.g. `11.0`, `STS`, `LTS`, or an exact version like `11.0.100-preview.2.26159.112` |\n| Quality | No | `preview` | One of: `daily`, `preview`, `ga` |\n| jq | No | — | Optional for bash team scripts when patching an existing `global.json`; without it, do not overwrite the file |\n\n### Prerequisites\n\n1. **A .NET 10+ SDK is installed globally** — run `dotnet --version`; major ≥ 10.\n2. **curl** (macOS\u002FLinux) or **PowerShell** (Windows) is available.\n\n## Workflow\n\n### Step 1 — Clarify what to install\n\nIf the user didn't specify, ask what .NET SDK version they want (e.g., \"latest\n.NET 11 preview\" or an exact version like `11.0.100-preview.2.26159.112`).\nMap the answer to `--channel`\u002F`--quality` or `--version` flags.\n\n### Step 2 — Verify .NET 10+ host\n\nIf the user already provided `dotnet --version` output, treat that as the\nauthoritative version for their machine. Do not override it with the agent\nworkspace's version; if the two differ, explain that the workspace differs and\ncontinue advising for the user's machine.\n\n```bash\ndotnet --version\n```\n\nIf major version \u003C 10, stop before downloading anything: the `paths` feature\nrequires a .NET 10+ host SDK. Tell the user to install .NET 10 or later\nsystem-wide first, then return to the local SDK setup.\n\n### Step 3 — Detect operating system\n\nRun `uname -s 2>\u002Fdev\u002Fnull`. If it succeeds (including `MINGW*`, `MSYS*`, `CYGWIN*` —\nthese are bash-capable environments like Git Bash) → use bash\u002F`dotnet-install.sh`.\nIf it fails (native Windows without Git Bash) → use PowerShell\u002F`dotnet-install.ps1`.\n\n### Step 4 — Check for existing local SDK\n\n**macOS \u002F Linux:**\n\n```bash\ntest -d .dotnet && echo \"exists\" || echo \"not found\"\n```\n\n**Windows (PowerShell):**\n\n```powershell\nif (Test-Path -LiteralPath .\\.dotnet) { \"exists\" } else { \"not found\" }\n```\n\nIf `.dotnet\u002F` exists, ask: update with the new version, or skip and keep it?\n\n### Step 5 — Download and run the install script\n\n**macOS \u002F Linux:**\n\n```bash\nINSTALL_SCRIPT=\"$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fdotnet-install.XXXXXX\")\"\ntrap 'rm -f \"$INSTALL_SCRIPT\"' EXIT\ncurl -fsSL https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.sh -o \"$INSTALL_SCRIPT\"\nbash \"$INSTALL_SCRIPT\" --channel \u003CCHANNEL> --quality \u003CQUALITY> --install-dir .dotnet\n```\n\n**Windows (PowerShell):**\n\n```powershell\n$installScript = Join-Path $env:TEMP \"dotnet-install-$([guid]::NewGuid()).ps1\"\ntry {\n    Invoke-WebRequest -Uri 'https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.ps1' -OutFile $installScript\n    & $installScript -Channel \u003CCHANNEL> -Quality \u003CQUALITY> -InstallDir .dotnet\n}\nfinally {\n    if (Test-Path -LiteralPath $installScript) {\n        Remove-Item -LiteralPath $installScript -Force\n    }\n}\n```\n\nFor exact versions: use `--version \u003CVERSION>` (bash) or `-Version \u003CVERSION>` (PowerShell)\ninstead of channel\u002Fquality flags. The install scripts are from Microsoft's official\nURLs: `https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.sh` and `https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.ps1`.\n\n### Step 6 — Identify the installed version\n\n```bash\n.\u002F.dotnet\u002Fdotnet --version          # macOS\u002FLinux\n.\\.dotnet\\dotnet.exe --version      # Windows\n```\n\nRecord the exact version string (e.g., `11.0.100-preview.2.26159.112`) for `global.json`.\n\n### Step 7 — Create or update global.json\n\n```json\n{\n  \"sdk\": {\n    \"version\": \"\u003CINSTALLED_VERSION>\",\n    \"allowPrerelease\": true,\n    \"rollForward\": \"latestFeature\",\n    \"paths\": [\".dotnet\", \"$host$\"],\n    \"errorMessage\": \"Required .NET SDK not found. Run .\u002Finstall-dotnet.sh (or .ps1) to install it locally.\"\n  }\n}\n```\n\n- `paths`: `.dotnet` first (local priority), `$host$` = system-wide fallback.\n- `rollForward: \"latestFeature\"`: use for latest-preview or floating feature-band installs.\n- Exact version requests: use `rollForward: \"disable\"` so SDK resolution doesn't move to a different feature band.\n- `allowPrerelease`: set to `true` only when installing a prerelease SDK. Omit for stable versions.\n- `errorMessage`: include only when team install scripts are created (Step 10). Otherwise omit.\n\nIf `global.json` already exists, **merge** carefully: preserve existing properties (`msbuild-sdks`,\n`tools`, etc.) and only add\u002Fupdate the `sdk` section. Read the existing file first, update\u002Fadd\nthe `sdk` object, then write it back. This ensures cross-project config (e.g., MSBuild settings)\nisn't lost. Always back up the original file (e.g., `global.json.bak`) before modifying.\n\n**Minimal config** (when version pinning isn't needed):\n`{\"sdk\":{\"paths\":[\".dotnet\",\"$host$\"]}}`\n\n### Step 8 — Update .gitignore\n\n**macOS \u002F Linux (or Git Bash):**\n\n```bash\ngrep -qxF '.dotnet\u002F' .gitignore 2>\u002Fdev\u002Fnull || printf '\\n.dotnet\u002F\\n' >> .gitignore\n```\n\n**Windows (PowerShell):**\n\n```powershell\nif (-not (Test-Path .gitignore) -or -not (Select-String -Path .gitignore -Pattern '^\\.dotnet\u002F$' -Quiet)) {\n    Add-Content -Path .gitignore -Value '.dotnet\u002F'\n}\n```\n\n### Step 9 — Install workloads (if requested)\n\nOnly do this after `global.json` and `.gitignore` are complete, so a slow or\nplatform-limited workload install does not prevent the base local SDK setup from\nbeing usable.\n\nIf the user mentioned MAUI, mobile, workload, Blazor WASM, or cross-platform,\ninstall using the **local** binary (no sudo needed):\n\n```bash\n.\u002F.dotnet\u002Fdotnet workload install \u003Cworkload>       # macOS\u002FLinux\n.\\.dotnet\\dotnet.exe workload install \u003Cworkload>   # Windows\n```\n\nVerify: `.\u002F.dotnet\u002Fdotnet workload list` (or `.\\.dotnet\\dotnet.exe workload list`).\n\nFor MAUI, pick a workload supported by the current OS and target platform. On\nLinux, the full `maui` meta-workload is not available; use a supported workload\nsuch as `maui-android` when Android is the target, or explain the platform\nlimitation and ask which target to configure.\n\n> **Always use the local dotnet binary for workload commands.** Workload metadata\n> is stored relative to the host process's dotnet root. The system `dotnet` puts\n> metadata in the wrong location. (See [dotnet\u002Fsdk#49825](https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fsdk\u002Fissues\u002F49825).)\n\n### Step 10 — Create team install scripts\n\nCreate if user mentioned \"team\", \"share\", \"CI\", \"scripts\", etc. Otherwise offer.\nThese examples back up `global.json` and preserve existing settings. The bash script\nuses `jq` when an existing `global.json` must be patched; if `jq` is unavailable,\nit refuses to overwrite the file and prints the settings to merge manually.\nAdapt script variables to the install choice from Step 1: exact versions should\nuse `--version` \u002F `-Version` and `rollForward: \"disable\"`; channel installs should\nuse channel\u002Fquality and only set `allowPrerelease: true` for prerelease SDKs.\nIf `global.json` already pins `sdk.version` and the user mainly needs team\nscripts, reuse that version in the scripts and update `global.json` first; do\nnot start a long SDK download just to discover the version. When the user asks\nfor both setup and scripts, create the scripts\u002Fconfig before any long install so\nthe reproducible setup exists even if download or workload installation is slow.\n\n**install-dotnet.sh:**\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\nINSTALL_DIR=\".dotnet\"\nCHANNEL=\"11.0\"\nQUALITY=\"preview\"\nVERSION=\"\"\nROLL_FORWARD=\"latestFeature\"\nALLOW_PRERELEASE=\"true\"\nWORKLOADS=(\"${@}\")\nERROR_MESSAGE=\"Required .NET SDK not found. Run .\u002Finstall-dotnet.sh (or .ps1) to install it locally.\"\nINSTALL_SCRIPT=\"$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fdotnet-install.XXXXXX\")\"\nGLOBAL_JSON_TMP=\"\"\ncleanup() {\n    rm -f \"$INSTALL_SCRIPT\"\n    [ -n \"$GLOBAL_JSON_TMP\" ] && rm -f \"$GLOBAL_JSON_TMP\"\n}\ntrap cleanup EXIT\ncurl -fsSL https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.sh -o \"$INSTALL_SCRIPT\"\nINSTALL_ARGS=(--install-dir \"$INSTALL_DIR\")\nif [ -n \"$VERSION\" ]; then\n    INSTALL_ARGS+=(--version \"$VERSION\")\n    ROLL_FORWARD=\"disable\"\nelse\n    INSTALL_ARGS+=(--channel \"$CHANNEL\" --quality \"$QUALITY\")\nfi\nbash \"$INSTALL_SCRIPT\" \"${INSTALL_ARGS[@]}\"\nSDK_VERSION=$(\"$INSTALL_DIR\u002Fdotnet\" --version)\nwrite_global_json() {\n    if [ -f global.json ]; then\n        cp global.json global.json.bak\n        if ! command -v jq >\u002Fdev\u002Fnull 2>&1; then\n            echo \"global.json exists; install succeeded, but this script will not overwrite it without jq.\" >&2\n            echo \"Merge these sdk settings manually so existing global.json properties are preserved:\" >&2\n            cat >&2 \u003C\u003CEOF\n{\n  \"sdk\": {\n    \"version\": \"$SDK_VERSION\",\n    \"allowPrerelease\": $ALLOW_PRERELEASE,\n    \"rollForward\": \"$ROLL_FORWARD\",\n    \"paths\": [\".dotnet\", \"\\$host\\$\"],\n    \"errorMessage\": \"$ERROR_MESSAGE\"\n  }\n}\nEOF\n            exit 1\n        fi\n        GLOBAL_JSON_TMP=\"$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fglobal-json.XXXXXX\")\"\n        jq --arg version \"$SDK_VERSION\" --arg rollForward \"$ROLL_FORWARD\" --argjson allowPrerelease \"$ALLOW_PRERELEASE\" --arg errorMessage \"$ERROR_MESSAGE\" '\n          .sdk = ((.sdk \u002F\u002F {}) + {\n            version: $version,\n            allowPrerelease: $allowPrerelease,\n            rollForward: $rollForward,\n            paths: [\".dotnet\", \"$host$\"],\n            errorMessage: $errorMessage\n          })\n        ' global.json > \"$GLOBAL_JSON_TMP\"\n        mv \"$GLOBAL_JSON_TMP\" global.json\n        GLOBAL_JSON_TMP=\"\"\n    else\n        cat > global.json \u003C\u003CEOF\n{\n  \"sdk\": {\n    \"version\": \"$SDK_VERSION\",\n    \"allowPrerelease\": $ALLOW_PRERELEASE,\n    \"rollForward\": \"$ROLL_FORWARD\",\n    \"paths\": [\".dotnet\", \"\\$host\\$\"],\n    \"errorMessage\": \"$ERROR_MESSAGE\"\n  }\n}\nEOF\n    fi\n}\nwrite_global_json\ngrep -qxF '.dotnet\u002F' .gitignore 2>\u002Fdev\u002Fnull || printf '\\n.dotnet\u002F\\n' >> .gitignore\n[ ${#WORKLOADS[@]} -gt 0 ] && \"$INSTALL_DIR\u002Fdotnet\" workload install \"${WORKLOADS[@]}\"\necho \"Done. SDK: $SDK_VERSION\"\n```\n\n```bash\nchmod +x install-dotnet.sh\n```\n\n**install-dotnet.ps1:**\n\n```powershell\nparam([string[]]$Workloads = @())\n$ErrorActionPreference = 'Stop'\n$installDir = '.dotnet'; $channel = '11.0'; $quality = 'preview'\n$version = ''; $rollForward = 'latestFeature'; $allowPrerelease = $true\n$errorMessage = 'Required .NET SDK not found. Run .\u002Finstall-dotnet.sh (or .ps1) to install it locally.'\n$installScript = Join-Path $env:TEMP \"dotnet-install-$([guid]::NewGuid()).ps1\"\ntry {\n    Invoke-WebRequest -Uri 'https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.ps1' -OutFile $installScript\n    $installArgs = @('-InstallDir', $installDir)\n    if ($version) {\n        $installArgs += @('-Version', $version)\n        $rollForward = 'disable'\n    } else {\n        $installArgs += @('-Channel', $channel, '-Quality', $quality)\n    }\n    & $installScript @installArgs\n}\nfinally {\n    if (Test-Path -LiteralPath $installScript) {\n        Remove-Item -LiteralPath $installScript -Force\n    }\n}\n$sdkVersion = & \"$installDir\\dotnet.exe\" --version\n$globalJson = if (Test-Path 'global.json') {\n    Copy-Item 'global.json' 'global.json.bak'\n    Get-Content -Path 'global.json' -Raw | ConvertFrom-Json\n} else {\n    [pscustomobject]@{}\n}\nif (-not $globalJson.PSObject.Properties['sdk']) {\n    $globalJson | Add-Member -MemberType NoteProperty -Name 'sdk' -Value ([pscustomobject]@{})\n}\n$updates = [ordered]@{\n    version = $sdkVersion\n    allowPrerelease = $allowPrerelease\n    rollForward = $rollForward\n    paths = @('.dotnet', '$host$')\n    errorMessage = $errorMessage\n}\nforeach ($entry in $updates.GetEnumerator()) {\n    $property = $globalJson.sdk.PSObject.Properties[$entry.Key]\n    if ($property) {\n        $property.Value = $entry.Value\n    } else {\n        $globalJson.sdk | Add-Member -MemberType NoteProperty -Name $entry.Key -Value $entry.Value\n    }\n}\n$globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path 'global.json' -Encoding UTF8\nif (-not (Test-Path .gitignore) -or -not (Select-String -Path .gitignore -Pattern '^\\.dotnet\u002F$' -Quiet)) {\n    Add-Content -Path .gitignore -Value '.dotnet\u002F'\n}\nif ($Workloads.Count -gt 0) { & \"$installDir\\dotnet.exe\" workload install @Workloads }\nWrite-Host \"Done. SDK: $sdkVersion\"\n```\n\nCommit these scripts to the repo so teammates can run them.\n\n### Step 11 — Verify SDK resolution\n\n```bash\ndotnet --version\n```\n\nOutput should match the locally installed version. If not, check: global.json\nlocation, `paths` array contents, host dotnet version ≥ 10.\n\n### Step 12 — Summarize and explain cleanup\n\nTell the user: SDK installed, global.json configured, .dotnet\u002F gitignored, system\ninstall untouched. Cleanup: delete `.dotnet\u002F`, remove `paths`\u002F`errorMessage` from\nglobal.json, optionally delete install scripts. Include the final `global.json`\n`sdk` values (or a short snippet) so the user can see the configured version,\n`paths`, and any `errorMessage`. If workloads were requested, include the local\n`dotnet workload install ...` command used and the workload verification result\nor the exact blocker if the workload could not be installed.\n\n## Common pitfalls\n\n| Pitfall | Cause | Fix |\n|---|---|---|\n| `paths` ignored | Host `dotnet` \u003C v10 | Install .NET 10+ system-wide |\n| Wrong SDK resolves | `global.json` in parent directory | Check for global.json up the tree |\n| Teammates get \"SDK not found\" | `.dotnet\u002F` gitignored, no install script run | Use `errorMessage` in global.json |\n| Workloads missing | Used system `dotnet` instead of local | Use `.\u002F.dotnet\u002Fdotnet workload install` |\n| `dotnet app.dll` wrong runtime | `paths` is SDK-only, not apphost | Use `dotnet run` or set `DOTNET_ROOT` |\n","# setup-local-sdk\n\n## Purpose\n\nGuide the user through installing a .NET SDK into a project-local `.dotnet\u002F`\ndirectory and wiring it up via the `global.json` `paths` feature (.NET 10+).\nThe examples use .NET 11, but this works with any version — prerelease or stable.\n\nThe result is a fully isolated SDK that:\n- Does **not** modify the system-wide .NET installation.\n- Is picked up automatically by `dotnet` commands from the project root.\n- Can be deleted to revert (`rm -rf .dotnet\u002F` or `Remove-Item -Recurse -Force .\\.dotnet`).\n\n## When NOT to use\n\n- User wants a **system-wide** install — direct to the official installer.\n- Host `dotnet` is **older than v10** — `paths` doesn't exist; explain and stop.\n- User needs a **runtime-only** install — `paths` applies to SDK resolution only.\n\n## Inputs \u002F Prerequisites\n\n| Input | Required | Default | Notes |\n|---|---|---|---|\n| Channel or version | No | `11.0` | e.g. `11.0`, `STS`, `LTS`, or an exact version like `11.0.100-preview.2.26159.112` |\n| Quality | No | `preview` | One of: `daily`, `preview`, `ga` |\n| jq | No | — | Optional for bash team scripts when patching an existing `global.json`; without it, do not overwrite the file |\n\n### Prerequisites\n\n1. **A .NET 10+ SDK is installed globally** — run `dotnet --version`; major ≥ 10.\n2. **curl** (macOS\u002FLinux) or **PowerShell** (Windows) is available.\n\n## Workflow\n\n### Step 1 — Clarify what to install\n\nIf the user didn't specify, ask what .NET SDK version they want (e.g., \"latest\n.NET 11 preview\" or an exact version like `11.0.100-preview.2.26159.112`).\nMap the answer to `--channel`\u002F`--quality` or `--version` flags.\n\n### Step 2 — Verify .NET 10+ host\n\nIf the user already provided `dotnet --version` output, treat that as the\nauthoritative version for their machine. Do not override it with the agent\nworkspace's version; if the two differ, explain that the workspace differs and\ncontinue advising for the user's machine.\n\n```bash\ndotnet --version\n```\n\nIf major version \u003C 10, stop before downloading anything: the `paths` feature\nrequires a .NET 10+ host SDK. Tell the user to install .NET 10 or later\nsystem-wide first, then return to the local SDK setup.\n\n### Step 3 — Detect operating system\n\nRun `uname -s 2>\u002Fdev\u002Fnull`. If it succeeds (including `MINGW*`, `MSYS*`, `CYGWIN*` —\nthese are bash-capable environments like Git Bash) → use bash\u002F`dotnet-install.sh`.\nIf it fails (native Windows without Git Bash) → use PowerShell\u002F`dotnet-install.ps1`.\n\n### Step 4 — Check for existing local SDK\n\n**macOS \u002F Linux:**\n\n```bash\ntest -d .dotnet && echo \"exists\" || echo \"not found\"\n```\n\n**Windows (PowerShell):**\n\n```powershell\nif (Test-Path -LiteralPath .\\.dotnet) { \"exists\" } else { \"not found\" }\n```\n\nIf `.dotnet\u002F` exists, ask: update with the new version, or skip and keep it?\n\n### Step 5 — Download and run the install script\n\n**macOS \u002F Linux:**\n\n```bash\nINSTALL_SCRIPT=\"$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fdotnet-install.XXXXXX\")\"\ntrap 'rm -f \"$INSTALL_SCRIPT\"' EXIT\ncurl -fsSL https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.sh -o \"$INSTALL_SCRIPT\"\nbash \"$INSTALL_SCRIPT\" --channel \u003CCHANNEL> --quality \u003CQUALITY> --install-dir .dotnet\n```\n\n**Windows (PowerShell):**\n\n```powershell\n$installScript = Join-Path $env:TEMP \"dotnet-install-$([guid]::NewGuid()).ps1\"\ntry {\n    Invoke-WebRequest -Uri 'https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.ps1' -OutFile $installScript\n    & $installScript -Channel \u003CCHANNEL> -Quality \u003CQUALITY> -InstallDir .dotnet\n}\nfinally {\n    if (Test-Path -LiteralPath $installScript) {\n        Remove-Item -LiteralPath $installScript -Force\n    }\n}\n```\n\nFor exact versions: use `--version \u003CVERSION>` (bash) or `-Version \u003CVERSION>` (PowerShell)\ninstead of channel\u002Fquality flags. The install scripts are from Microsoft's official\nURLs: `https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.sh` and `https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.ps1`.\n\n### Step 6 — Identify the installed version\n\n```bash\n.\u002F.dotnet\u002Fdotnet --version          # macOS\u002FLinux\n.\\.dotnet\\dotnet.exe --version      # Windows\n```\n\nRecord the exact version string (e.g., `11.0.100-preview.2.26159.112`) for `global.json`.\n\n### Step 7 — Create or update global.json\n\n```json\n{\n  \"sdk\": {\n    \"version\": \"\u003CINSTALLED_VERSION>\",\n    \"allowPrerelease\": true,\n    \"rollForward\": \"latestFeature\",\n    \"paths\": [\".dotnet\", \"$host$\"],\n    \"errorMessage\": \"Required .NET SDK not found. Run .\u002Finstall-dotnet.sh (or .ps1) to install it locally.\"\n  }\n}\n```\n\n- `paths`: `.dotnet` first (local priority), `$host$` = system-wide fallback.\n- `rollForward: \"latestFeature\"`: use for latest-preview or floating feature-band installs.\n- Exact version requests: use `rollForward: \"disable\"` so SDK resolution doesn't move to a different feature band.\n- `allowPrerelease`: set to `true` only when installing a prerelease SDK. Omit for stable versions.\n- `errorMessage`: include only when team install scripts are created (Step 10). Otherwise omit.\n\nIf `global.json` already exists, **merge** carefully: preserve existing properties (`msbuild-sdks`,\n`tools`, etc.) and only add\u002Fupdate the `sdk` section. Read the existing file first, update\u002Fadd\nthe `sdk` object, then write it back. This ensures cross-project config (e.g., MSBuild settings)\nisn't lost. Always back up the original file (e.g., `global.json.bak`) before modifying.\n\n**Minimal config** (when version pinning isn't needed):\n`{\"sdk\":{\"paths\":[\".dotnet\",\"$host$\"]}}`\n\n### Step 8 — Update .gitignore\n\n**macOS \u002F Linux (or Git Bash):**\n\n```bash\ngrep -qxF '.dotnet\u002F' .gitignore 2>\u002Fdev\u002Fnull || printf '\\n.dotnet\u002F\\n' >> .gitignore\n```\n\n**Windows (PowerShell):**\n\n```powershell\nif (-not (Test-Path .gitignore) -or -not (Select-String -Path .gitignore -Pattern '^\\.dotnet\u002F$' -Quiet)) {\n    Add-Content -Path .gitignore -Value '.dotnet\u002F'\n}\n```\n\n### Step 9 — Install workloads (if requested)\n\nOnly do this after `global.json` and `.gitignore` are complete, so a slow or\nplatform-limited workload install does not prevent the base local SDK setup from\nbeing usable.\n\nIf the user mentioned MAUI, mobile, workload, Blazor WASM, or cross-platform,\ninstall using the **local** binary (no sudo needed):\n\n```bash\n.\u002F.dotnet\u002Fdotnet workload install \u003Cworkload>       # macOS\u002FLinux\n.\\.dotnet\\dotnet.exe workload install \u003Cworkload>   # Windows\n```\n\nVerify: `.\u002F.dotnet\u002Fdotnet workload list` (or `.\\.dotnet\\dotnet.exe workload list`).\n\nFor MAUI, pick a workload supported by the current OS and target platform. On\nLinux, the full `maui` meta-workload is not available; use a supported workload\nsuch as `maui-android` when Android is the target, or explain the platform\nlimitation and ask which target to configure.\n\n> **Always use the local dotnet binary for workload commands.** Workload metadata\n> is stored relative to the host process's dotnet root. The system `dotnet` puts\n> metadata in the wrong location. (See [dotnet\u002Fsdk#49825](https:\u002F\u002Fgithub.com\u002Fdotnet\u002Fsdk\u002Fissues\u002F49825).)\n\n### Step 10 — Create team install scripts\n\nCreate if user mentioned \"team\", \"share\", \"CI\", \"scripts\", etc. Otherwise offer.\nThese examples back up `global.json` and preserve existing settings. The bash script\nuses `jq` when an existing `global.json` must be patched; if `jq` is unavailable,\nit refuses to overwrite the file and prints the settings to merge manually.\nAdapt script variables to the install choice from Step 1: exact versions should\nuse `--version` \u002F `-Version` and `rollForward: \"disable\"`; channel installs should\nuse channel\u002Fquality and only set `allowPrerelease: true` for prerelease SDKs.\nIf `global.json` already pins `sdk.version` and the user mainly needs team\nscripts, reuse that version in the scripts and update `global.json` first; do\nnot start a long SDK download just to discover the version. When the user asks\nfor both setup and scripts, create the scripts\u002Fconfig before any long install so\nthe reproducible setup exists even if download or workload installation is slow.\n\n**install-dotnet.sh:**\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\nINSTALL_DIR=\".dotnet\"\nCHANNEL=\"11.0\"\nQUALITY=\"preview\"\nVERSION=\"\"\nROLL_FORWARD=\"latestFeature\"\nALLOW_PRERELEASE=\"true\"\nWORKLOADS=(\"${@}\")\nERROR_MESSAGE=\"Required .NET SDK not found. Run .\u002Finstall-dotnet.sh (or .ps1) to install it locally.\"\nINSTALL_SCRIPT=\"$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fdotnet-install.XXXXXX\")\"\nGLOBAL_JSON_TMP=\"\"\ncleanup() {\n    rm -f \"$INSTALL_SCRIPT\"\n    [ -n \"$GLOBAL_JSON_TMP\" ] && rm -f \"$GLOBAL_JSON_TMP\"\n}\ntrap cleanup EXIT\ncurl -fsSL https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.sh -o \"$INSTALL_SCRIPT\"\nINSTALL_ARGS=(--install-dir \"$INSTALL_DIR\")\nif [ -n \"$VERSION\" ]; then\n    INSTALL_ARGS+=(--version \"$VERSION\")\n    ROLL_FORWARD=\"disable\"\nelse\n    INSTALL_ARGS+=(--channel \"$CHANNEL\" --quality \"$QUALITY\")\nfi\nbash \"$INSTALL_SCRIPT\" \"${INSTALL_ARGS[@]}\"\nSDK_VERSION=$(\"$INSTALL_DIR\u002Fdotnet\" --version)\nwrite_global_json() {\n    if [ -f global.json ]; then\n        cp global.json global.json.bak\n        if ! command -v jq >\u002Fdev\u002Fnull 2>&1; then\n            echo \"global.json exists; install succeeded, but this script will not overwrite it without jq.\" >&2\n            echo \"Merge these sdk settings manually so existing global.json properties are preserved:\" >&2\n            cat >&2 \u003C\u003CEOF\n{\n  \"sdk\": {\n    \"version\": \"$SDK_VERSION\",\n    \"allowPrerelease\": $ALLOW_PRERELEASE,\n    \"rollForward\": \"$ROLL_FORWARD\",\n    \"paths\": [\".dotnet\", \"\\$host\\$\"],\n    \"errorMessage\": \"$ERROR_MESSAGE\"\n  }\n}\nEOF\n            exit 1\n        fi\n        GLOBAL_JSON_TMP=\"$(mktemp \"${TMPDIR:-\u002Ftmp}\u002Fglobal-json.XXXXXX\")\"\n        jq --arg version \"$SDK_VERSION\" --arg rollForward \"$ROLL_FORWARD\" --argjson allowPrerelease \"$ALLOW_PRERELEASE\" --arg errorMessage \"$ERROR_MESSAGE\" '\n          .sdk = ((.sdk \u002F\u002F {}) + {\n            version: $version,\n            allowPrerelease: $allowPrerelease,\n            rollForward: $rollForward,\n            paths: [\".dotnet\", \"$host$\"],\n            errorMessage: $errorMessage\n          })\n        ' global.json > \"$GLOBAL_JSON_TMP\"\n        mv \"$GLOBAL_JSON_TMP\" global.json\n        GLOBAL_JSON_TMP=\"\"\n    else\n        cat > global.json \u003C\u003CEOF\n{\n  \"sdk\": {\n    \"version\": \"$SDK_VERSION\",\n    \"allowPrerelease\": $ALLOW_PRERELEASE,\n    \"rollForward\": \"$ROLL_FORWARD\",\n    \"paths\": [\".dotnet\", \"\\$host\\$\"],\n    \"errorMessage\": \"$ERROR_MESSAGE\"\n  }\n}\nEOF\n    fi\n}\nwrite_global_json\ngrep -qxF '.dotnet\u002F' .gitignore 2>\u002Fdev\u002Fnull || printf '\\n.dotnet\u002F\\n' >> .gitignore\n[ ${#WORKLOADS[@]} -gt 0 ] && \"$INSTALL_DIR\u002Fdotnet\" workload install \"${WORKLOADS[@]}\"\necho \"Done. SDK: $SDK_VERSION\"\n```\n\n```bash\nchmod +x install-dotnet.sh\n```\n\n**install-dotnet.ps1:**\n\n```powershell\nparam([string[]]$Workloads = @())\n$ErrorActionPreference = 'Stop'\n$installDir = '.dotnet'; $channel = '11.0'; $quality = 'preview'\n$version = ''; $rollForward = 'latestFeature'; $allowPrerelease = $true\n$errorMessage = 'Required .NET SDK not found. Run .\u002Finstall-dotnet.sh (or .ps1) to install it locally.'\n$installScript = Join-Path $env:TEMP \"dotnet-install-$([guid]::NewGuid()).ps1\"\ntry {\n    Invoke-WebRequest -Uri 'https:\u002F\u002Fdot.net\u002Fv1\u002Fdotnet-install.ps1' -OutFile $installScript\n    $installArgs = @('-InstallDir', $installDir)\n    if ($version) {\n        $installArgs += @('-Version', $version)\n        $rollForward = 'disable'\n    } else {\n        $installArgs += @('-Channel', $channel, '-Quality', $quality)\n    }\n    & $installScript @installArgs\n}\nfinally {\n    if (Test-Path -LiteralPath $installScript) {\n        Remove-Item -LiteralPath $installScript -Force\n    }\n}\n$sdkVersion = & \"$installDir\\dotnet.exe\" --version\n$globalJson = if (Test-Path 'global.json') {\n    Copy-Item 'global.json' 'global.json.bak'\n    Get-Content -Path 'global.json' -Raw | ConvertFrom-Json\n} else {\n    [pscustomobject]@{}\n}\nif (-not $globalJson.PSObject.Properties['sdk']) {\n    $globalJson | Add-Member -MemberType NoteProperty -Name 'sdk' -Value ([pscustomobject]@{})\n}\n$updates = [ordered]@{\n    version = $sdkVersion\n    allowPrerelease = $allowPrerelease\n    rollForward = $rollForward\n    paths = @('.dotnet', '$host$')\n    errorMessage = $errorMessage\n}\nforeach ($entry in $updates.GetEnumerator()) {\n    $property = $globalJson.sdk.PSObject.Properties[$entry.Key]\n    if ($property) {\n        $property.Value = $entry.Value\n    } else {\n        $globalJson.sdk | Add-Member -MemberType NoteProperty -Name $entry.Key -Value $entry.Value\n    }\n}\n$globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path 'global.json' -Encoding UTF8\nif (-not (Test-Path .gitignore) -or -not (Select-String -Path .gitignore -Pattern '^\\.dotnet\u002F$' -Quiet)) {\n    Add-Content -Path .gitignore -Value '.dotnet\u002F'\n}\nif ($Workloads.Count -gt 0) { & \"$installDir\\dotnet.exe\" workload install @Workloads }\nWrite-Host \"Done. SDK: $sdkVersion\"\n```\n\nCommit these scripts to the repo so teammates can run them.\n\n### Step 11 — Verify SDK resolution\n\n```bash\ndotnet --version\n```\n\nOutput should match the locally installed version. If not, check: global.json\nlocation, `paths` array contents, host dotnet version ≥ 10.\n\n### Step 12 — Summarize and explain cleanup\n\nTell the user: SDK installed, global.json configured, .dotnet\u002F gitignored, system\ninstall untouched. Cleanup: delete `.dotnet\u002F`, remove `paths`\u002F`errorMessage` from\nglobal.json, optionally delete install scripts. Include the final `global.json`\n`sdk` values (or a short snippet) so the user can see the configured version,\n`paths`, and any `errorMessage`. If workloads were requested, include the local\n`dotnet workload install ...` command used and the workload verification result\nor the exact blocker if the workload could not be installed.\n\n## Common pitfalls\n\n| Pitfall | Cause | Fix |\n|---|---|---|\n| `paths` ignored | Host `dotnet` \u003C v10 | Install .NET 10+ system-wide |\n| Wrong SDK resolves | `global.json` in parent directory | Check for global.json up the tree |\n| Teammates get \"SDK not found\" | `.dotnet\u002F` gitignored, no install script run | Use `errorMessage` in global.json |\n| Workloads missing | Used system `dotnet` instead of local | Use `.\u002F.dotnet\u002Fdotnet workload install` |\n| `dotnet app.dll` wrong runtime | `paths` is SDK-only, not apphost | Use `dotnet run` or set `DOTNET_ROOT` |\n",{"name":5,"license":15,"description":7},"main","497cc9aba79a931ac6fb8d36a48cc22fe3d6d74b","external-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet\u002Fskills\u002Fsetup-local-sdk",41,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills","https:\u002F\u002Fskills.managed-code.com","https:\u002F\u002Fgithub.com\u002Fmanagedcode","https:\u002F\u002Fwww.managed-code.com","Open Source Community for .NET Developers: Reliable, Actively Maintained, and Community-Driven. Made in Ukraine 🇺🇦 with ❤️","2026-11-11 19:34:28",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add managedcode\u002Fdotnet-skills --skill setup-local-sdk",{"tool":66,"command":67},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill setup-local-sdk",{"tool":69,"command":70},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill setup-local-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet\u002Fskills\u002Fsetup-local-sdk\u002FSKILL.md",true,[74],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"index.json","REFERENCE","参考文档",707,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-sca\u002Findex.json",[81,117,141,170,180,204],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":97,"publishedAt":45},"01M6DYQE1Y9FHAQHEDTVFQ3447","xtwitter-scraper","Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway draws. USE FOR: integrating the XTwitterScraper NuGet package; reviewing Xquik API client usage; modeling API-key configuration, pagination, binary exports, raw responses, retries, and webhook\u002Fevent flows in .NET. DO NOT USE FOR: unrelated stacks; direct browser automation; generic social-media strategy; or code that does not call Xquik. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FXTwitterScraper\u002Fskills\u002Fxtwitter-scraper\u002FSKILL.md",[87,92],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,30,115,116],"xtwitter scraper","browser automation","workflows","run","code","browser","search","repository","api","Media","api client","access","edit","unrelated","webhooks","files","social","modeling","webhook",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":129,"publishedAt":45},"01M6DYQ9S4PE1H6G8MCH9T21HR","sep","Use Sep for high-performance separated-value parsing and writing in .NET, including delimiter inference, explicit parser\u002Fwriter options, and low-allocation row\u002Fcolumn workflows. USE FOR: delimited data needs are performance-sensitive and allocation-aware; project needs explicit control over separator inference, escaping, trimming, and header behavior;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FSep\u002Fskills\u002Fsep\u002FSKILL.md",[123,126],{"categoryNo":124,"categoryName":125,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":127,"categoryName":128,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000036","内容创作者",[119,130,131,100,132,101,105,133,134,135,110,136,111,113,33,137,138,139,30,140],"writing","performance","tasks","data","parsing","parser","context","writer","options","project","high-performance",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":45},"01M6DZS2DNEPXCGGF6SSCW6G5V","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fwebgpu-claude-skill\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[148,149,150,21,151,152,153,154,155,156,157,158,36,159,160,161,162,163,164,165,24,166,167,168,169],"webgpu","threejs","webgpu threejs tsl","shaders","gpu","integration","applications","js","node","syntax","guide","language","three","compute","post","processing","with","renderer","materials","wgsl","effects","when",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":45},"01M6DZS0BQXW2B56A289XF1X76","roslynk","Use Roslynk for semantic inspection and edits of *.cs, *.razor and *.cshtml solution files.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Froslynk\u002Fskills\u002Froslynk\u002FSKILL.md",[],[172,36,113,177,178,24,179],"semantic","razor","inspection",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":45},"01M6DZRW6MEJCVW80K3S4XV60K","system-text-json-net11","Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed generic `JsonSerializerOptions.GetTypeInfo` and `JsonSerializerOptions.TryGetTypeInfo` metadata accessors (generic overloads that return a typed `JsonTypeInfo`). USE ONLY when the user is targeting net11.0 or later and needs PascalCase JSON property or dictionary-key names without writing a custom naming policy, a strongly-typed generic `JsonTypeInfo` instead of the non-generic `JsonTypeInfo`, or a no-throw way to probe whether a type's serialization metadata is resolved. DO NOT USE when the target is earlier than net11.0, the requested behavior uses an established pre-net11 naming policy, or the user explicitly selected another JSON library.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[39,38,187,188,130,189,190,191,192,193,194,36,34,195,196,197,33,198,199,200,201,24,202,203,169],"text","system text json net11","policy","metadata","library","serialization","behavior","user","probe","guidance","later","type","dictionary","naming","targeting","custom","generic",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":212,"publishedAt":45},"01M6DZRRJP3S662NFSG1RSPQQ7","process-api-net11","Provides guidance on the new System.Diagnostics.Process APIs introduced in .NET 11: Process.Run, Process.RunAndCaptureText, Process.StartAndForget, Process.ReadAllText\u002FBytes\u002FLines, KillOnParentExit, InheritedHandles, and StartDetached. USE FOR: starting, orchestrating, or capturing output from external processes in applications targeting net11.0 or later. DO NOT USE FOR: applications targeting .NET 10 or earlier, or basic pre-.NET 11 Process.Start usage without new APIs.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fprocess-api-net11\u002FSKILL.md",[210,211],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},[106,213,214,215,101,216,154,39,36,196,197,33,217,218,219,220,201,24,221],"process","process api net11","diagnostics","start","basic","processes","output","usage","new"]