title: Entity Framework Package Manager Console Commands Error - failed to build
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Has anyone run into this problem before that can offer advice?</p>