I am having trouble running the "Generate Views" command from Entity Framework Power Tools Beta 3 on a Code First DbContext. I get a dialog box indicating that an exception has been thrown by the target of an invocation. The build output window does not contain any additional information. However, if I start commenting stuff out, I do get a TargetInvocationException reported in the build output window with a stack trace. It appears to get thrown any time my DbContext class accesses Unity - particularly in the OnModelCreating() method (we use IoC to put type configuration and other EF initialization code closer to the actual entity instead of sticking it all in the DbContext class).
I'm assuming the issue has something to do with the Entity Framework Power Tools being able to load the appropriate reference assemblies when the DbContext class makes use of third-party libraries. Does anyone have any thoughts about how to get around this? Is using Entity Framework Power Tools with DbContexts that use additional libraries a known problem?
Thanks.