-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run package manager commands on chosen startup project instead of command line chosen project #23957
Comments
@mirza-developer Are you choosing the target project in the Package Manager Console? |
@ajcvickers Target project of console is selected truly |
Also my repository is available on https://github.com/mirza-developer/SurZor |
What commands do you run? Give an example. |
@ErikEJ add-migration AddSurveyFields |
@mirza-developer With your solution if I set the Api as the startup project and your data library as the Package Manager project, then add-migration works for me: |
I have 4 projects in a solution and one of them is a .net core class library in .net 5 that we want to add models and data working classes there.
A .net 5 web api is our startup project but because of adding our database to the class library, we must run commands like add-migration on this project.
When we run commands, package manager console raises an error that there is no context in your project.
If the class library be chosen as startup project, command runs correctly.
This issue #23853 is similar to mine
The text was updated successfully, but these errors were encountered: