Friday, March 16, 2012

MVC 3 Scaffolding


SO I was playing with package manager in MVC and tried to install MVCScaffolding ...

http://blog.stevensanderson.com/2011/01/13/scaffold-your-aspnet-mvc-3-project-with-the-mvcscaffolding-package/ 

Has all the details I was following to the dot...

kept on getting this error and was very baffled

PM> Scaffold Controller Team
The term ‘Scaffold’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, ver
ify that the path is correct and try again.
At line:1 char:9
+ Scaffold <<<< Controller Team
+ CategoryInfo : ObjectNotFound: (Scaffold:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

I managed to solve the problem by uninstalling and reinstalling the MvcScaffolding. That didn’t work at first, but when I uninstalled it using the -RemoveDependencies switch, and then reinstalled it again, everything worked fine again.
So you can try this:
Uninstall-Package MvcScaffolding -RemoveDependencies
Install-Package MvcScaffolding

I was also told that updating the package resolves the issue though am not sure about that...

Here is the code for the bravehearted to try:

1. Enter into your package manager console “Update-Package MvcScaffolding”
2. Then restart Visual Studio

1 comment:

Scaffolding In Chennai said...

Good. But can you update some Scaffolding & Aluminium Scaffolding Chennai related keyword update your blog. Why means your blog is more attractive to me. Thanks...