• 1.4k
  • 215
  • 34.3k

Problem facing running EF Core migrations on macOS Monterey!

Feb 2 2022 3:06 PM

Hi , I am developing core Web API using EF & sql Server on macOS Monterey while doing EF migrations i am facing this issue 

After running, dotnet ef migrations add DbInitializationWithSeed -:

Build started... Build succeeded. It was not possible to find any compatible framework version The framework 'Microsoft.AspNetCore.App', version '3.1.0' (arm64) was not found.

The following frameworks were found: 6.0.1 at [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] You can resolve the problem by installing the specified framework and/or SDK.

I have tried to install the  dotnet-sdk-3.1.416-osx-x64 but still it doesnot work.

Is there any solution for this ?

#Asp.netCore #EFCore