Scaffolding controllers with repositories in Mvc5, EF6, VisualStudio 2013

二次信任 提交于 2019-11-30 17:41:15

We are moving to a new system for Scaffolding, but for now, run VS as admin and use this -pre version we've updated:

Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre

I'll blog this.

The error you are getting is that it can't create instance of the VS IDE (EnvDTE.DTE). That scaffolding package is referencing an older version of the VS IDE and so it will not work in VS2013. That project will have to be updated to properly support VS2013.

The codeplex project looks like it has not been updated in quite sometime so my guess is that unless the project moved to a different open source repository, it is dead.

Since ASP.NET has its own scaffolding now built right in, I would suggest that it is time to convert over.

try this in command line: cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ devenv.exe /setup "Extensions\Microsoft\Web\Mvc\Scaffolding\Microsoft.AspNet.Scaffolding.Mvc.5.0.dll"

For solved this problem on VS2013 Update 4, I will have to uninstall from all modules, on .\packages directorie remove all T4*, Exit from VS.

Enter again, and use the solutions from witttness, do on package manager console: Install-Package MvcMailer-vs2013 -pre, and voilá, its work since then...

Thanks for everything

I know this was posted a while ago, but, I came across this same bug in VS2015 whilst using MvcScaffolding. The actual bug lies in the T4Scaffolding.Core package. I pulled the source, fixed the bugs, and uploaded new NuGet packages with linked dependencies. The 3 new packages are:

First uninstall MvcScaffolding and its dependencies, T4Scaffolding, & T4Scaffolding.Core. If you then simply install the MvcScaffolding package, the other packages will be pulled through. Hope this helps someone else.

Cheers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!