I recently updated my installation of VisualStudio 2010 with NuGet 2.0, and it looks like it breaks the MvcScaffolding package from Hanselman and Kirkland. Whenever I try to build a new controller and browse w / repositories, I get a MethodInvocationError during a scaffold. In particular, System.Management.Automation.MethodInvocationException raises a call to "Execute" with arguments "5". Object reference not set to an instance of an object. According to the stack trace, this happens in the NuGet.PackageExtensions.GetFiles () method. Of course, the final statement in the stack dump is: “You may have to upgrade to a newer version of MvcScaffolding,” but I decided that this was added to the end of all the errors. I am currently using the v1.0.7 package of MvcScaffolding, which is the latest. Does anyone have thoughts on why this is happening, and even better, how to get around this? Thanks.
source share