In this post we will be discussing about How to Fix Your startup project 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.
When starting of a new ASP.NET Core project and running Update-Database in Package Manager Console you might have experienced the error "Your startup project 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." This is because you have not selected your Entity Framework Project as your default project.
At first change the Default Project in the Package Manager Console to Entity Framework Core and then change the startup project to Entity Framework Core in the solution explorer.
And once you run Update-Database again, it will run successfully.
Please like and share the CodingDefined.com blog if you find it useful and helpful.
And once you run Update-Database again, it will run successfully.
Please like and share the CodingDefined.com blog if you find it useful and helpful.
Related articles
- How to create Simple Twitter Bot in Node.js
- Legacy Browser Support for using Babel
- Getting Started with Node.js Koa 2 Framework
- Web Scraping Libraries for Node.js Developers
- How to Create Simple RSS Reader in Ionic Application
- Simple RESTful API in Nodejs
- How to Get Latest Tweets of a particular HashTag using Nodejs
- How to Intercept HTTP requests in Node.js
- Node for Android
- Capture Screen of Web Pages through URL in Nodejs
Thank you so much!
ReplyDelete