Skip to content
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

Chapter 5 - page 171 #8

Open
dharmatech opened this issue Jan 2, 2021 · 0 comments
Open

Chapter 5 - page 171 #8

dharmatech opened this issue Jan 2, 2021 · 0 comments

Comments

@dharmatech
Copy link

Issue

Page 171 shows the following:

dotnet-ef migrations add CreatingPizzaDb

When doing so, the following was the result:

PM> dotnet ef migrations add CreatingPizzaDb
Build started...
Build succeeded.
Your startup project 'PizzaPlace.Server' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.

Solution

In order to resolve this, I did the following:

Solution Explorer -> Right-click PizzaPlace.Server -> Edit Project File -> Comment out the following line:

<PrivateAssets>all</PrivateAssets>

Notes

This approach is from the following stackoverflow answer:

https://stackoverflow.com/a/62663918/268581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant