Skip to content
Back to skills

Upgrade Runtime

ASecurity

Upgrade the .NET SDK / ASP.NET Core target framework or a major dependency version, updating every place the version is pinned (global.json, csproj, lock files, Dockerfile, CI/CD, docs). Use for .NET LTS upgrades or major package bumps.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
developmentdockerazuregitapici/cd

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add nanotaboada/Dotnet.Samples.AspNetCore.WebApi --skill upgrade-runtime --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Upgrade Runtime?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Upgrade Runtime
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nanotaboada-upgrade-runtime/badge)](https://www.skillsdirectory.com/skills/nanotaboada-upgrade-runtime)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: upgrade-runtime
description: Upgrade the .NET SDK / ASP.NET Core target framework or a major dependency version, updating every place the version is pinned (global.json, csproj, lock files, Dockerfile, CI/CD, docs). Use for .NET LTS upgrades or major package bumps.
---

# Upgrade the runtime

Dependencies, CI/CD, and Docker are on the "ask before changing" list: confirm
the target version with the user and make sure an issue exists first.

Target only LTS releases of .NET (even-numbered majors such as 10, 12); skip
STS releases. Patch and minor dependency bumps are handled by Dependabot and do
not need this skill.

## Where the version lives

| File | What to change |
| ---- | -------------- |
| `global.json` | `sdk.version` |
| `src/Dotnet.Samples.AspNetCore.WebApi/*.csproj` | `<TargetFramework>`, every `PackageReference` version (check each package for a release that supports the new framework) |
| `test/Dotnet.Samples.AspNetCore.WebApi.Tests/*.csproj` | `<TargetFramework>`, test package versions |
| `packages.lock.json` (both projects) | regenerate with `dotnet restore --force-evaluate` |
| `Dockerfile` | `dotnet/sdk:<ver>` builder and `dotnet/aspnet:<ver>-alpine` runtime images |
| `.github/workflows/dotnet-ci.yml`, `dotnet-cd.yml` | `DOTNET_VERSION` env |
| `azure-pipelines.yml` | .NET version used by the pipeline, if pinned |
| `README.md`, `CLAUDE.md` | version mentions in the overview, badges, and Tech Stack |

## Steps

1. Update every file in the table; search for the old version string
   (e.g. `net9.0`, `9.0`) to catch anything missed.
2. Read the official breaking-changes list for the new version and fix
   compile errors and warnings.
3. Run `dotnet build --configuration Release` and
   `dotnet test --settings .runsettings`.
4. Run `docker compose build` and `docker compose up` to confirm the image
   starts and `GET /health` returns `200`.
5. If the upgrade changes an architectural decision, add an ADR (see the
   `create-adr` skill).
6. Run `/pre-commit`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.