C# 如何将 MVC 5 项目模板添加到 VS 2012?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18288215/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 11:49:20  来源:igfitidea点击:

How can I add the MVC 5 project template to VS 2012?

c#asp.net-mvcvisual-studiovisual-studio-2012

提问by ojhawkins

I have Visual Studio 2012and want to add the MVC 5template.

我有Visual Studio 2012并想添加MVC 5模板。

How can this be done or it is only available in VS 2013?

如何做到这一点,或者它仅在 VS 2013 中可用?

回答by colbyJax

MVC 5/ Razor 3 support for VS 2012 has not shipped yet. If you want to get started with it, you might want to just install VS 2013 express. It will run side by side with VS 2012.

对 VS 2012 的 MVC 5/ Razor 3 支持尚未发布。如果您想开始使用它,您可能只想安装 VS 2013 express。它将与 VS 2012 并行运行。

回答by Prasanth

You can upgrade your MVC 4 application to MVC 5 as as given in here. See this linkalso.

您可以按照此处的说明将 MVC 4 应用程序升级到 MVC 5 。另请参阅此链接

回答by Bronek

This is what you need: http://www.microsoft.com/en-us/download/details.aspx?id=41532

这是您需要的:http: //www.microsoft.com/en-us/download/details.aspx?id=41532

These are generally some VS2013 asp net features which one can install for vs 2012 (from Microsoft)

这些通常是一些可以为 vs 2012 安装的 VS2013 asp net 功能(来自 Microsoft)