Skip to content

Trying to add migration with .NET5 not working  #23696

@marzoukali

Description

@marzoukali

Bug Description

I just upgraded from .Net core 3.1 to .Net 5 and I can see while typing dotnet --info in the cmd the below information:

image

To Reproduce

I migrated to .NET5 from 3.1 Core by following the below link:
https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-5.0&tabs=visual-studio

Now when I try to add migration or use any entityframework command even through the command line or visual studio package manager, I am getting the below error although i can see that I have already the SDK while running the dotnet --info command:

image

I tried to reinstall the SDK, runtime and update my windows 10 and visual studio 2019 but with no chance?


I am using:

  • Windows 10
  • Visual Studio 2019
  • I've included the dotnet --info in the first attached image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions