Using ASP.NET MVC4 with EF4.3
Running Enable-Migrations
from PM Console
System.Management.Automation.RuntimeException: The project 'MyProj' failed to build. The project 'MyProj' failed to build.
The project builds (control-shift-B)
Is there any way to get more detail on this error to diagnose?
Turns out I had run this earlier, on a project where there was no dbContext. This created a migrations Configuration class that said "fill in the name of the class", which was failing to build.
This was causing one of my projects to silently fail to compile.
Removing the Configuration class solved my problem.
This can also happen if you are building a 64-bit application. Switch to "Any CPU", at least temporarily while building the migrations, and the problem may go away. This is just one thing that can cause that error, though.