问题
I have Visual Studio 2012 and want to add the MVC 5 template.
How can this be done or it is only available in VS 2013?
回答1:
Update your Visual studio, Here's the link
https://www.microsoft.com/web/handlers/webpi.ashx/getinstaller/WebNode11Pack.appids
You can find more detail from below post.
http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
回答2:
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.
回答3:
This is what you need: 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)
回答4:
You can upgrade your MVC 4 application to MVC 5 as as given in here. See this link also.
来源:https://stackoverflow.com/questions/18288215/how-can-i-add-the-mvc-5-project-template-to-vs-2012