Highlight MVCScaffoliding MethodInvocationException Package

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.

+6
source share
1 answer

This seems to be still the case, also with VS2012 and the latest mvcscaffolding package. However, as commented on in other threads, executing commands in the package manager console window works. blog from stevesanderson contains syntax information

0
source

Source: https://habr.com/ru/post/919515/


All Articles