Visual Studio 2013 Scaffolding Error

James Reategui picture James Reategui · Oct 28, 2013 · Viewed 18k times · Source

I'm using VS 2013 RTM Ultimate, and when I try to add a Controller to my MVC 5 project I get the following error:

"There was an error running the selected code generator: 'The Parameter searchFolders does not contain any entries. Provide at least one folder to search files.'

None of the scaffolders work basically, all giving the same error... Tried rebuidling / clean etc and still get error.

Update Oct 28: Looks like it is a problem with having T4Scaffolding installed. Looks like they are working on a fix.

Answer

AKhooli picture AKhooli · Dec 2, 2013

If you have recently installed a package with T4Scaffolding dependency (ex. MVCMailer uses T4Scaffolding.Core), then you can uninstall T4Scaffolding.Core and restart VS 2013. Notice that MvcMailer which caused this in my case, won't work in 2013. Best is to check your references or packages for suspects.

From comments: Uninstalling it didn't seem to work for me, so I deleted packages/T4Scaffolding from the disk* and then it worked. (by Jared Thirsk)