Is MvcScaffolding compatible with VS 2013 RC by command line?
Solution 1
I emailed Scott Hanselman about this a few weeks back. Here's his response:
We've found out what's up and we are going to release a fixed version, although we're taking Scaffolding in a new direction with VS2013 we still want this to work. Thanks for finding this bug.
So I'd keep eyes peeled for a new release of MvcScaffold that will hopefully resolve this. In the mean time, there are new features for VS2013 that take scaffolding in a much-improved direction, so you may want to investigate those.
Edit: There's a new package available (make sure to run VS2013 as admin to get it to work):
Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre
Solution 2
I came across this same bug in VS2015. I pulled the source, fixed the bugs, and uploaded new NuGet packages with linked dependencies. The 3 new packages are:
If you simply install the MvcScaffolding package, the other packages will be pulled through. Hope this helps someone else. Cheers.
Solution 3
I found that I had to go into my .\packages
folder (for the solution) and manually delete all MvcScaffolding
and T4Scaffolding
package folders (I have the NuGet
"restore packages
" feature enabled that, I thought, would take care to restore anything that I should not have deleted, plus I made a backup).
After that, antinescience's Install-Package
command for vs2013
worked fine, and so did the "Scaffold Controller ...
" to scaffold an MVC5 controller.
Related videos on Youtube
Fernando Vezzali
I’m a software engineer and technical trainer with over 10 years of experience in the .NET technology stack. I’m driven by the “less is more” mentality. I can deliver top quality programming and solutions for complex problems, I love the deep understanding that comes from intense focus and work.
Updated on September 29, 2020Comments
-
Fernando Vezzali over 3 years
At NuGet when I try to install MvcScaffolding, by typing:
Install-Package MvcScaffolding
I am getting this error
Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
Is it happening because of this new scaffolding engine in Visual Studio 2013 ?
-
Maximo Dominguez over 10 yearsI'm having the same problem with visual studio 2013 Ultimate RC
-
Prisoner ZERO almost 10 yearsAs of todays date...I am also having this problem. And none of the prescribed solutions are working
-
-
Amedio over 10 yearsThe same problem here the error is still not solved, it would be nice if they solve it because I have to start a new project using Visual Studio 2013, it would be very disappointing to have such problem just at its start :D
-
binard over 10 yearsI have also this problem and I can't install the package 1.0.8-vs2013, it doesn't install
-
MCF over 10 yearsFor those having problems make sure to run VS2013 as admin
-
Leonel Sanches da Silva over 8 yearsWorked for me on VS2013 as well.