© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•10mo ago•
64 replies
Jorjo

dotnet ef migrations add init returns: 'Unable to retrieve project metadata.'

Just what it sounds like in the title, ef is being difficult and won't make a migrations folder which I need in order to test with. My installed sdks are
8.0.100, 8.0.405 and 9.0.203
8.0.100, 8.0.405 and 9.0.203
. I am on Arch Linux but installed these through the install script from microsoft. As for EF Tools I'm using version
9.0.0
9.0.0
but have also tried 9.0.2 and 9.0.4, neither worked and the same error is returned each time. I have tried running the command with
--msbuildprojectextensionspath
--msbuildprojectextensionspath
and it yielded the same result. I'm getting kind of hopeless, I've never before experienced this kind of error and migrations have worked just fine in other projects. Any help is greatly appreciated.
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Problem while "dotnet ef migrations add Init"
C#CC# / help
2y ago
dotnet-ef error creating migrations
C#CC# / help
2y ago
Unable to run dotnet project
C#CC# / help
3y ago
✅ Dotnet ef problem
C#CC# / help
3mo ago