Visual Studio 2013 Scaffolding Error

前端 未结 9 768
小鲜肉
小鲜肉 2021-01-31 09:23

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 generat

9条回答
  •  后悔当初
    2021-01-31 09:27

    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)

提交回复
热议问题