简体   繁体   中英

Entity Framework Package Manager Console Commands Error - failed to build

Whenever I try to run any entity framework command such as add-migration or update-database, the vast majority of the time I get an error "The project 'X' failed to build". The project builds fine in visual studio, and if I am persistent and keep trying eventually the command will work. It can be very frustrating as sometimes it will work on the first 5 tries, and sometimes it could take 50.

I have read around for tips and nothing has worked so far. I think it must be something to do with the settings that the package manager console uses to build the project but I don't know what they might be or how to configure them.

Has anyone run into this problem before that can offer advice?

Finally found this to be a problem caused by Resharper . Suspending resharper whilst running the commands meant that they don't fail anymore. I can only assume the problem was resharper having a handle on files whilst the build script runs during the command executions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM