alpha

Guides an AI agent through upgrading C#/.NET projects: detecting current framework versions, planning upgrade order, handling breaking changes, NuGet and CI/CD updates, and validating results.
description: 'Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation.'
name: '.NET Upgrade'
tools: ['codebase', 'edit/editFiles', 'search', 'runCommands', 'runTasks', 'runTests', 'problems', 'changes', 'usages', 'findTestFiles', 'testFailure', 'terminalLastCommand', 'terminalSelection', 'web/fetch', 'microsoft.docs.mcp']
.NET Framework upgrade specialist for comprehensive project migration
Tags: dotnet, upgrade, migration, framework, modernization
Discover and plan your .NET upgrade journey!
---
mode: dotnet-upgrade
title: Analyze current .NET framework versions and create upgrade plan
---
Analyze the repository and list each project's current TargetFramework
along with the latest available LTS version from Microsoft's release schedule.
Create an upgrade strategy prioritizing least-dependent projects first.
The upgrade chat mode automatically adapts to your repository's current .NET version and provides context-aware upgrade guidance to the next stable version.
It will help you:
Execute comprehensive .NET framework upgrades with structured guidance!
The instructions provide:
Use these instructions when implementing upgrade plans to ensure proper execution and validation.
Quick access to specialized upgrade analysis prompts!
The prompts collection includes ready-to-use queries for:
Use these prompts for targeted analysis of specific upgrade aspects.
*.sln and *.csproj files in the repository.+2 years ahead of the existing version.net6.0 → net8.0, or net7.0 → net9.0).To automatically detect the current framework versions across the solution:
# 1. Check global SDKs installed
dotnet --list-sdks
# 2. Detect project-level TargetFrameworks
find . -name "*.csproj" -exec grep -H "<TargetFramework" {} \;
# 3. Optional: summarize unique framework versions
grep -r "<TargetFramework" **/*.csproj | sed 's/.*<TargetFramework>//;s/<\/TargetFramework>//' | sort | uniq
# 4. Verify runtime environment
dotnet --info | grep "Version"
Chat Prompt:
"Analyze the repository and list each project’s current TargetFramework along with the latest available LTS version from Microsoft’s release schedule."
# List all projects
dotnet sln list
# Check current target frameworks for each project
grep -H "TargetFramework" **/*.csproj
# Check outdated packages
dotnet list <ProjectName>.csproj package --outdated
# Generate dependency graph
dotnet msbuild <ProjectName>.csproj /t:GenerateRestoreGraphFile /p:RestoreGraphOutputPath=graph.json
Chat Prompt:
"Analyze the solution and summarize each project’s current TargetFramework and suggest the appropriate next LTS upgrade version."
TargetFramework starts with netcoreapp, net5.0+, net6.0+, etc. → Modern .NETnetstandard* → .NET Standard (migrate to current .NET version)net4* → .NET Framework (migrate via intermediate step to .NET 8+)Chat Prompt:
"Generate the optimal upgrade order for this repository, prioritizing least-dependent projects first."
upgrade/<project>-to-<targetVersion><TargetFramework> in .csproj to the suggested version (e.g., net9.0)dotnet restore
dotnet list package --outdated
dotnet add package <PackageName> --version <LatestVersion>
dotnet build <ProjectName>.csproj
dotnet test <ProjectName>.Tests.csproj
.NET Upgrade Assistant for initial recommendations.Microsoft.Azure.* → Azure.*).Startup.cs → Program.cs top-level statements).Chat Prompt:
"List deprecated or incompatible APIs when upgrading from <currentVersion> to <targetVersion> for <ProjectName>."
Ensure pipelines use the detected target version dynamically:
Azure DevOps
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '$(TargetDotNetVersion).x'
GitHub Actions
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '${{ env.TargetDotNetVersion }}.x'
upgrade/<project>-to-<targetVersion>Chat Prompt:
"Suggest a rollback and validation plan if the .NET upgrade for <ProjectName> introduces build or runtime regressions."
dotnet --list-sdks.© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Sea turtle carrying floating film studio island
Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.
image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost
Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.
video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village
Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.
image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape
Loading reviews…
Loading comments…