Skip to main content

Claude/ChatGPT Prompt to Plan a .NET Framework 4.8 to .NET 9 Migration

Phased migration roadmap from legacy .NET Framework 4.8 to .NET 9: blocker libraries, side-by-side deploy, CI/CD changes, and milestones you can ship against.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt
You are a senior .NET architect who has done framework migrations under load. Be specific -- name tools, APIs, and likely blockers, not generic advice.

Context:
- App: ASP.NET MVC monolith
- Codebase size: ~250k lines, 8 projects
- Hard deadline: 6 months, no feature freeze

Deliverables:
1. Assessment using the .NET Upgrade Assistant: what it auto-fixes vs flags.
2. Top 10 suspect blocker libraries (System.Web, WCF, AppDomains, etc.) with replacements.
3. Side-by-side deployment so old and new run together during cutover.
4. CI/CD changes: SDK-style projects, new build targets, test runner updates.
5. Configuration migration: web.config to appsettings.json and the gotchas.
6. Performance expectations and a phased plan with milestones and exit criteria.

Output: a phased roadmap table (phase, scope, exit criteria, risk).

What this prompt does

This prompt casts the model as a senior .NET architect who has done migrations under load and asks for a specific, phased roadmap from .NET Framework 4.8 to .NET 9. You provide [app_type], [codebase_size], and [deadline], and it returns an Upgrade Assistant assessment, the top 10 likely blocker libraries with replacements, a side-by-side deployment plan, CI/CD changes, configuration migration guidance, and a phased plan with milestones and exit criteria.

The structure works because it surfaces blockers first, where they belong. In framework migrations the syntax is rarely the problem — it's one library with no modern equivalent that stalls a whole phase. By asking for the top 10 suspect libraries (System.Web, WCF, AppDomains) with replacements early, the prompt forces those risks into the open in week one. [deadline] shapes how aggressively the phases are sequenced, [codebase_size] informs the effort estimates, and [app_type] (for example, an ASP.NET MVC monolith) tells the model which framework-specific traps to expect. Pairing the Upgrade Assistant assessment with a side-by-side deployment plan is deliberate: it lets you move incrementally and keep shipping, instead of betting the whole modernisation on one high-risk cutover weekend.

When to use it

  • You're planning a .NET Framework 4.8 to .NET 9 move and need a credible roadmap.
  • You want blocker libraries surfaced in week one, before they detonate mid-migration.
  • You need a side-by-side deployment strategy so old and new run together during cutover.
  • You're converting web.config to appsettings.json and want the gotchas listed.
  • You have a hard deadline and need phases with real exit criteria.
  • You're moving to SDK-style projects and need the CI/CD changes mapped.

Example output

Expect a phased roadmap table with columns for phase, scope, exit criteria, and risk, preceded by the Upgrade Assistant assessment splitting auto-fixes from manual flags, a list of the top 10 suspect blocker libraries with suggested replacements, the side-by-side deployment approach, and the configuration migration notes. Each phase has clear exit criteria so you know when it's actually done.

Pro tips

  • Make [app_type] specific — WCF services, Web Forms, and MVC monoliths each have different blocker profiles.
  • Use [codebase_size] honestly so the effort and phasing estimates are grounded in reality.
  • Set [deadline] truthfully; "no feature freeze" changes the plan substantially versus a quiet window.
  • Spike the riskiest dependency the model flags before you commit to the timeline; one unportable library can move every milestone.
  • Treat the Upgrade Assistant split as a starting estimate, then run the tool on a branch to confirm.
  • Ask it to expand any single phase into a detailed task list once you've validated the overall shape.
  • Define exit criteria you can actually test for each phase, so "done" is a passing build and green tests, not a feeling.
  • Pay close attention to the web.config to appsettings.json gotchas; configuration mismatches cause runtime failures that compile cleanly and only surface in production.

Frequently Asked Questions

Does this actually migrate my code, or just plan the migration?
It produces a planning roadmap, not the migrated code. It identifies blocker libraries, deployment strategy, CI/CD changes, and phased milestones, but the actual code changes are work you carry out using the plan and tools like the .NET Upgrade Assistant.
How does it handle libraries with no .NET 9 equivalent?
It surfaces the top 10 suspect blocker libraries — things like System.Web, WCF, and AppDomains — early and suggests replacements. The intent is to expose unportable dependencies in week one so you can spike them before locking the timeline.
Can it account for a fixed deadline with no feature freeze?
Yes. Set `[deadline]` to your real constraint, including whether features keep shipping during the migration. A no-freeze deadline changes the phasing and the side-by-side deployment plan compared to a quiet window.
What does the side-by-side deployment step give me?
It describes running the old .NET Framework app and the new .NET 9 app together during cutover, so you migrate incrementally rather than in one risky switch. This reduces the blast radius if a phase has problems in production.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in C# & .NET Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

AI assistant · trained on my work

👋

Hey there!

Quick Actions

WhatsApp Direct line to me

Chat on WhatsApp

+880 1723 741224 · Replies within the hour on working days

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

mejba.13@gmail.com

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support