在vs 2015中安装MVC 4 [英] Install MVC 4 in vs 2015

查看:281
本文介绍了在vs 2015中安装MVC 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨每一个

i use vs 2015现在我想使用asp.net mvc 4但是在我的vs 2015中没有选项显示。只有一个选项显示ASP.Net有jo eption对于asp.net mvc 2,3和4.

任何人都告诉我如何在vs 2015中添加asp.net mvc 4以及用于启动Web开发的相关文件



我尝试了什么:



i不知道如何做到这一点

hi every one
i use vs 2015 now i want to use asp.net mvc 4 but there is no option show in my vs 2015 .Only one option is show ASP.Net there is jo iption for asp.net mvc 2,3 and 4.
any one tell me how can i add asp.net mvc 4 in vs 2015 and releted files for starting Web Development

What I have tried:

i have no idea how can do this

推荐答案

如果您使用的是Visual Studio 2015,那么我建议您转而使用ASP.NET MVC 5。以下是一篇入门文章: ASP.NET MVC 5:构建您的第一个Web应用程序 - 第1部分 [ ^ ]



当您选择.NET Framework时,ASP.NET MVC 5应该可用Visual Studio 2015中4.5或更高版本。



如果找不到该模板,则可以:



(a)将MVC 5添加为nuget包,以便将其添加到您的项目中: NuGet Gallery | Microsoft.AspNet.Mvc 5.2.6 [ ^ ]

(b)下载并安装2015年Web框架和工具: Microsoft ASP.NET Web框架和工具2015 - Visual Studio Marketplace [ ^ ]
If you are using Visual Studio 2015, then I would recommend you to jump over to ASP.NET MVC 5 instead. Here's a getting started article for that: ASP.NET MVC 5: Building Your First Web Application - Part 1[^]

ASP.NET MVC 5 should be available when you select .NET Framework 4.5 or higher in your Visual Studio 2015.

If you can't find that template then you can either:

(a) add the MVC 5 as nuget package so it will be added to your project: NuGet Gallery | Microsoft.AspNet.Mvc 5.2.6[^]
(b) download and install the 2015 web framework and tools: Microsoft ASP.NET Web Frameworks and Tools 2015 - Visual Studio Marketplace[^]


Google在不到一分钟的时间内发现了这一点: https://docs.microsoft.com/en-us/aspnet/mvc/mvc4 [ ^ ]
Google found this in less than a minute: https://docs.microsoft.com/en-us/aspnet/mvc/mvc4[^]


这篇关于在vs 2015中安装MVC 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆