© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
11 replies
Hercules

❔ Can't run Add-migration to create my local database.

I have an web api and some .net standard class library that holds my entities but whenever i run "Add-migration" on the .net standard library i get a runtime issue I'm missing a startup file with corresponding framework.

So I checked the references between the different class libraries and saw that i have a project reference to the .net standard class library but when i run "Add-migration" i get the following message

Build started...
Build succeeded.
Specify --help for a list of available options and commands.
Unrecognized command or argument 'add-migration'.
Build started...
Build succeeded.
Specify --help for a list of available options and commands.
Unrecognized command or argument 'add-migration'.
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

Similar Threads

❔ Local Database to Server Database migration
C#CC# / help
4y ago
❔ I can't create migration
C#CC# / help
3y ago
Entity Framework Core can't create a migration
C#CC# / help
2y ago
❔ Add-Migration
C#CC# / help
3y ago