Not Able to install some Nuget Packages

BS Grewal 0 Reputation points
2025-01-25T06:39:18.3766667+00:00

Hi

I am getting following errors while installing EntityFrameworkCoreTools and EntityFramWorkDesign form Nuget Packages Manager.

Please help me, I tried to install these on both .NET framewok 9.0 and 8.0 Thanks

*Package Microsoft.CodeAnalysis.Common 4.8.0 is not compatible with net9.0 (.NETCoreApp,Version=v9.0).Package Microsoft.CodeAnalysis.Common 4.8.0 does not support any target frameworks.

Package Microsoft.CodeAnalysis.CSharp 4.8.0 is not compatible with net9.0 (.NETCoreApp,Version=v9.0).Package Microsoft.CodeAnalysis.CSharp 4.8.0 does not support any target frameworks.

Package Microsoft.CodeAnalysis.CSharp.Workspaces 4.8.0 is not compatible with net9.0 (.NETCoreApp,Version=v9.0). Package Microsoft.CodeAnalysis.CSharp.Workspaces 4.8.0 does not support any target frameworks.

Package Microsoft.CodeAnalysis.Workspaces.Common 4.8.0 is not compatible with net9.0 (.NETCoreApp,Version=v9.0). Package Microsoft.CodeAnalysis.Workspaces.Common 4.8.0 does not support any target frameworks.

Package Microsoft.Build.Framework 17.8.3 is not compatible with net9.0 (.NETCoreApp,Version=v9.0).Package Microsoft.Build.Framework 17.8.3 does not support any target frameworks.

Package 'Microsoft.Bcl.AsyncInterfaces 7.0.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net9.0'. This package may not be fully compatible with your project.*

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
777 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,656 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AgaveJoe 29,681 Reputation points
    2025-01-25T10:55:24.9433333+00:00

    .NET Framework is not compatible with .NET Core 8 (or 9).

    If you are trying to port an older application to Core then see the migration recommendations.

    https://learn.microsoft.com/en-us/dotnet/core/porting/

    If you want EF Core libraries then pick .NET Core libraries that match your project.

    https://www.nuget.org/packages/microsoft.entityframeworkcore

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.