update-dotnet-version
Comprehensive one-shot .NET version upgrade with SDK, TFM, packages, and build validation
What this skill does
# /dotnet:update-dotnet-version
**Flagship command:** Comprehensive .NET version upgrade that handles SDK installation, TFM updates, package compatibility, and build validation with automatic error resolution.
## Arguments
Parse arguments from `$ARGUMENTS`:
| Flag | Description | Default |
|------|-------------|---------|
| `--version <version>` | Target .NET version (e.g., 10, 10.0) | Latest stable |
| `--check-only` | Analyze without making changes | false |
| `--force` | Skip compatibility warnings and proceed | false |
| `--skip-packages` | Skip package upgrades | false |
| `--skip-build` | Skip build validation | false |
## Workflow Overview
```text
┌─────────────────────────────────────────────────────────────┐
│ /dotnet:update-dotnet-version │
├─────────────────────────────────────────────────────────────┤
│ 1. Pre-flight Analysis │
│ ├── Detect current TFM across all projects │
│ ├── Check package compatibility with target │
│ └── Report blockers │
├─────────────────────────────────────────────────────────────┤
│ 2. SDK Installation │
│ ├── Check if target SDK installed │
│ └── Install via /dotnet:install-sdk if needed │
├─────────────────────────────────────────────────────────────┤
│ 3. Update global.json │
│ └── Set SDK version and rollForward policy │
├─────────────────────────────────────────────────────────────┤
│ 4. Update Target Frameworks │
│ ├── Update <TargetFramework> in all .csproj │
│ ├── Update <LangVersion> if needed │
│ └── Update Directory.Build.props if centralized │
├─────────────────────────────────────────────────────────────┤
│ 5. Upgrade Packages │
│ └── Run /dotnet:upgrade-nuget-packages --major --auto │
├─────────────────────────────────────────────────────────────┤
│ 6. Build & Fix Loop │
│ ├── Run dotnet build │
│ ├── If errors: spawn build-fixer agent │
│ └── Retry up to 5 times │
├─────────────────────────────────────────────────────────────┤
│ 7. Verification │
│ ├── Run tests if available │
│ └── Report final status │
└─────────────────────────────────────────────────────────────┘
```
## Detailed Workflow
### Phase 1: Pre-flight Analysis
**1.1 Detect Current State:**
```bash
# Find all project files
find . -name "*.csproj" -type f
# Extract current TFMs
grep -h "<TargetFramework" **/*.csproj | sort -u
```
Parse and report:
```text
Current .NET Version Analysis
Projects found: 12
Current TFM: net9.0 (10 projects), net8.0 (2 projects)
Target TFM: net10.0
Mixed TFM detected: 2 projects on net8.0
- src/Legacy/Legacy.csproj
- tests/Legacy.Tests/Legacy.Tests.csproj
```
**1.2 Package Compatibility Check:**
For each unique package, check .NET 10 support:
```text
Use mcp__perplexity__search:
query: "<package-name> .NET 10 support compatibility January 2026"
```
Report findings:
```text
Package Compatibility Analysis
Compatible (confirmed):
- Microsoft.Extensions.* (10.0.0 available)
- Serilog (4.0.0 supports net10.0)
- xunit (2.9.0 supports net10.0)
Needs Upgrade:
- Newtonsoft.Json 12.0.0 -> 13.0.3 (net10.0 support)
- AutoMapper 11.0.0 -> 13.0.0 (net10.0 support)
Potential Blockers:
- OldLibrary 2.0.0 - No .NET 10 support found
Options: Find alternative, wait for update, or remove dependency
Unknown (verify manually):
- CustomInternalLib 1.0.0
```
**1.3 Breaking Changes Research:**
```text
Use mcp__microsoft-learn__microsoft_docs_search:
query: ".NET 10 breaking changes migration from .NET 9"
Use mcp__perplexity__reason:
query: ".NET 9 to .NET 10 migration breaking changes C# 14 what to watch for"
```
Report relevant breaking changes:
```text
Breaking Changes to Watch
.NET 10 Breaking Changes:
- System.Text.Json: New source generator requirements
- ASP.NET Core: Minimal API changes
- EF Core: Query behavior changes
C# 14 New Features Available:
- Field keyword in properties
- Collection expressions improvements
- Extension types (preview)
```
**1.4 Decision Point:**
If `--check-only`:
- Report analysis and exit
If blockers found and NOT `--force`:
```text
Blockers Found - Cannot Proceed
1. OldLibrary 2.0.0 has no .NET 10 support
Options:
1. Remove OldLibrary dependency first
2. Run with --force to proceed anyway (may fail)
3. Cancel and resolve manually
[AskUserQuestion with options]
```
### Phase 2: SDK Installation
Check if target SDK is installed:
```bash
dotnet --list-sdks | grep "^10\."
```
If not installed:
```text
.NET 10 SDK not found. Installing...
[Invoke /dotnet:install-sdk --version 10.0 --update-global-json]
```
### Phase 3: Update global.json
Create or update global.json:
```json
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestPatch"
}
}
```
### Phase 4: Update Target Frameworks
**4.1 Check for centralized TFM:**
Look for Directory.Build.props with:
```xml
<TargetFramework>net9.0</TargetFramework>
```
If found, update only Directory.Build.props.
**4.2 Update individual projects:**
For each .csproj file:
```xml
<!-- Before -->
<TargetFramework>net9.0</TargetFramework>
<!-- After -->
<TargetFramework>net10.0</TargetFramework>
```
**4.3 Update LangVersion if explicit:**
```xml
<!-- If LangVersion is set explicitly -->
<LangVersion>13.0</LangVersion>
<!-- Update to -->
<LangVersion>14.0</LangVersion>
<!-- Or remove to use SDK default -->
```
**4.4 Handle multi-targeting:**
```xml
<!-- Before -->
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<!-- After -->
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
```
### Phase 5: Upgrade Packages
Unless `--skip-packages`:
```text
Upgrading packages for .NET 10 compatibility...
[Invoke internal package upgrade logic]
```
Focus on:
- Microsoft.* packages (align with .NET version)
- Packages with known .NET 10 versions
- Security-vulnerable packages
### Phase 6: Build & Fix Loop
**6.1 Initial Build:**
```bash
dotnet build --verbosity minimal
```
**6.2 If errors, spawn build-fixer:**
```text
Build failed with 12 errors. Attempting auto-fix...
[Task: dotnet:build-fixer with error context]
```
**6.3 Retry loop:**
```text
Fix attempt 1/5:
- Fixed 8 errors
- 4 errors remaining
Fix attempt 2/5:
- Fixed 3 errors
- 1 error remaining
Fix attempt 3/5:
- Fixed 1 error
- Build successful!
```
**6.4 Max attempts reached:**
```text
Build still failing after 5 fix attempts.
Remaining errors:
CS0012: Type 'OldType' is defined in assembly not referenced
These errors require manual intervention:
1. OldLibrary uses types not available in .NET 10
2. Consider removing or replacing OldLibrary
Partial upgrade complete. Manual fixes required.
```
### Phase 7: Verification
**7.1 Run tests (if available):**
```bash
dotnet test --no-build
```
**7.2 Report final status:**
## Output Format
**Check-Only Mode:**
```text
.NET Version Upgrade Analysis (--check-only)
Current: net9.0
Target: net10.0
Projects: 12
Package Compatibility:
Compatible: 45 packages
Needs Upgrade: 8 packages
Blockers: 1 package (OldLibrary)
Breaking Changes: 3 relevant changes found
- System.Text.Json source generator changes
- ASP.NET Core minimal API updates
- EF Core query translation changes
Recommendation: Resolve OldLibrary dependency before upgrading.
Run without --check-only to proceed with upgrade.
```
**Successful Upgrade:Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.