“Build failed” on Database First Scaffold-DbContext

后端 未结 18 1707
醉梦人生
醉梦人生 2020-12-24 04:31

I\'m trying to generate classes from a database (EntityFramework\'s database first approach).

For convenience, I\'m more or less walking along with this tutorial: ht

18条回答
  •  悲哀的现实
    2020-12-24 05:11

    If entity-framework returns build failed, most probably you have some kind of error in any of your projects.

    Even if the project you are running the command on, is clean and error-free, other projects in that solution can cause the build failed response.

    Solution

    • Rebuild the whole solution. Most probably you'll find that error in solution-rebuild process.
    • Make sure the project you want to run command on, is selected in Default project drop-down inside Package Manager Console
    • Re-run the command.

提交回复
热议问题