dotnet / ef6

This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore.

Home Page:https://docs.microsoft.com/ef/ef6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add-Migration not recognized after install of Microsoft.EntityFrameworkCore.Tools

vsfeedback opened this issue · comments

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
After installing Microsoft.EntityFrameworkCore.Tools I cannot use Add-Migration. It only reports

Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1

  • Add-Migration Net8
  •  + CategoryInfo          : ObjectNotFound: (Add-Migration:String) [], CommandNotFoundException
     + FullyQualifiedErrorId : CommandNotFoundException
    

When I try with dotnet, I get the following:

dotnet ef migrations add Net8
Failed to read environment variable [DOTNET_STARTUP_HOOKS], HRESULT: 0x80070002
Build started...
Build failed.

Thesse errors were there before VS 17.8 but I thought that it might be solved by 17.8 but unfortunately....


Original Comments

Feedback Bot on 11/22/2023, 01:50 AM:

(private comment, text removed)


Original Solutions

(no solutions)

This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.