Open Closed

Is ABP 9.x is compatible with .net 8 #10080


User avatar
0
priyankasynapxe created

ABP Framework version: v8.3.4

UI Type: React

Database System: EF Core (SQL Server)

Tiered (for MVC) or Auth Server Separated (for Angular): yes

As per ticket https://abp.io/support/questions/10045/security-vulnerability-for-the-VoloAbpCli-834#new-answer I got the confirmation that I can upgrade with abp to 9.xa for .net 8.

but when I'm trying to upgrade, I'm getting the below error:

Please confirm if I can go by v9 with .net 8.

Thanks,

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    1. Solution
    • ABP 9.x targets .NET 9. The official migration guide states that if you plan to use ABP 9.0, you need to migrate your solutions to .NET 9.0. Therefore, ABP 9.0/9.1 packages (for example, Volo.Saas.Host.Application 9.0.0) are not compatible with net8.0 and will produce NU1202 (exactly like in your screenshot), because those packages include net9.0 TFMs.

    • What you can do:

      • Option A (stay on .NET 8): Keep your solution on ABP 8.x (latest 8.3.4) which fully supports .NET 8.
      • Option B (move to ABP 9.x): Upgrade your solution to .NET 9 (update TargetFramework to net9.0 and update Microsoft.* packages to 9.0.0) and then update ABP to 9.x.
    • Minimal steps for Option B (upgrade to .NET 9 + ABP 9.x):

      1. Install .NET 9 SDK.
      2. Change all project <TargetFramework> to net9.0 (and update global.json if present).
      3. Upgrade Microsoft.* NuGet packages to 9.0.0.
      4. abp update (to move ABP packages to 9.x).
      5. Apply the ABP 9 migration adjustments (e.g., MapAbpStaticAssets if applicable), as per the guide.
    • Why your error happens:

      • The package Volo.Saas.Host.Application 9.0.0 only provides net9.0; your project targets net8.0. NuGet raises NU1202: “not compatible with net8.0”.
    1. Sources
    • ABP 9.0 migration guide (confirms ABP upgraded to .NET 9 and requires migrating to .NET 9 when using ABP 9): https://abp.io/docs/latest/release-info/migration-guides/abp-9-0
    • Migration guides index: https://abp.io/docs/latest/release-info/migration-guides
    • ABP now supports .NET 9 (ABP community article summarizing dual support and upgrade path): https://abp.io/community/articles/abp-now-supports-.net-9-zpkznc4f
    • ABP 9.0 released (how to upgrade, notes): https://abp.io/community/articles/aqeuzs2m

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you install the .NET 9 SDK and update all project <TargetFramework> to net9.0?

    Thanks,

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.