.NET Core 8/ Blazor issue: cannot create an Entity Framework Migration

48 Views Asked by At

When trying to create a migration for my project with dotnet ef migrations add Initial command, I've encoutered the following error dotnet : You must install or update .NET to run this application..

What could be the solution for this? Downgrading Entity Framework to version 5.0.5 and reinstalling the dotnet-ef tool doesn't work.

1

There are 1 best solutions below

0
Ruikai Feng On

You could check your .net runtime with

dotnet --list-runtimes

make sure you've installed the runtime for .net8

enter image description here

You could download the runtime here:https://dotnet.microsoft.com/en-us/download/dotnet/8.0