asp.net-mvc – 无法在Visual Studio 2013 Ultimate Update 5中使用脚手架创建MVC视图

我最近将Update 5应用于在
Windows 8.1上运行的Visual Studio 2013(Ultimate Edition).更新后,每当我尝试使用脚手架在我的MVC应用程序中创建Razor View(* .cshtml)文件时,我都会收到以下错误:

There was an error running the selected code generator:

The Templates\PackageVersion5.1.3.xml file is missing from the
installed template folder

《asp.net-mvc – 无法在Visual Studio 2013 Ultimate Update 5中使用脚手架创建MVC视图》

从错误中可以清楚地看到一些文件(PackageVersion5.1.3.xml)丢失,但我不确定如何修复它.我甚至修复了Visual Studio,但无济于事.

最佳答案 正如你在脚手架中可能知道的那样,你的视图是基于这个缺失的xml文件生成的.我不知道为什么你的文件不在那里,但你可以从你的同事电脑复制它或重新安装visual studio.

也许你有改变我VS选项的东西?

点赞