最新版本的MVC [英] Latest version of MVC

查看:127
本文介绍了最新版本的MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求将ASP.Net项目迁移到最新版本的MVC。



什么是MVC的最新版本?并且我不允许在serber上安装MVC,我如何在我的项目中使用MVC?

i have been asked to migrate a ASP.Net project to latest version of MVC.

what is the latest version of MVC? and i am not allowed to install MVC on serber, how do i use MVC in my project?

推荐答案

任何努力?互联网上的人已经多次探讨过这个话题,你应该能够找到你的答案。



无论如何,最新版本的ASP.Net MVC是5.2 。看这里:



http://www.asp.net/mvc/overview/releases/whats-new-in-aspnet-mvc-52 [ ^ ]



就你的第二个问题而言,你并不需要在你的网络服务器上安装MVC。您还可以做的是将MVC引用本地复制到应用程序的BIN文件夹中。



在这里查看类似的讨论。它谈到MVC 3,但我很确定它对于当前版本也是一样的。



http://haacked.com/archive/2011/05/25/bin-deploying-asp-net- mvc-3.aspx / [ ^ ]
Any effort? This topic has been explored multiple times by people on internet and you should be able to find your answer already.

Anyway, the latest version of ASP.Net MVC is 5.2. Look here:

http://www.asp.net/mvc/overview/releases/whats-new-in-aspnet-mvc-52[^]

And as far as your second question is concerned, you don't really need to have MVC installed on your web server. What you could also do is to have the MVC references copied locally in BIN folder of your application.

Look similar discussion here. It talks about MVC 3, but I am quite sure that it would be same for the current version as well.

http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx/[^]


虽然MVC6正在进行中..我建议您将项目更新为MVC5,因为它现在稳定。您可以关注的链接: -

对于MVC5: -

MVC5 [ ^ ]

ASP.NET MVC 5新功能 [ ^ ]

对于MVC6: -

V-Next中的MVC6 [ ^ ]

希望这些链接可以帮助您。但我很困惑,因为我无法在serber上安装MVC。你必须从Nuget获得它。

回复你的查询..

谢谢

:)
Though MVC6 is on the way..I would recommend you to update your Project to MVC5 as it is stable now. The links you can follow:-
For MVC5:-
MVC5[^]
ASP.NET MVC 5 New Features[^]
For MVC6:-
MVC6 in V-Next[^]
Hope these links help you. But I am confused regarding I cannot Install MVC on serber. You have to get it from the Nuget.
Post back your queries..
Thanks
:)


如果当前版本的ASP.NET很旧或者编程语言是ASP(经典ASP),那么将ASP.NET网站升级到最新版本的MVC可能会变得棘手和头疼。



目前,5是ASP.NET MVC的版本。您可以了解有关ASP.NET MVC和第5版的显着特性的更多信息。他们的官方网站 [ ^ ]包含了学习和理解ASP.NET MVC的附带功能所需的所有信息。您需要决定继续使用旧功能或通过阅读MVC API来更新所有内容。您应该知道有一个新版本的ASP.NET将会克服,Web页面,Web窗体和MVC,并将作为一个MVC 6出现,它将使用所有其他ASP.NET子类别。



其次,我认为你打算写服务器而不是serber。是的,您可以在服务器上使用ASP.NET,但在继续之前,您需要考虑托管服务提供商的设置和功能。我记得当我开发一个使用数据库的网站,然后托管服务提供商不支持MS SQL时,我不得不在我的网络应用程序上减少该功能。您只能从托管服务提供商那里获得更多详细信息,我无法在本章中提供更好的答案。



MVC只是创建应用程序的概念,因此您可以将其用作应用程序中的模型来控制应用程序中的请求和数据。您可以使用Controller来处理HTTP请求,使用Model来处理数据,使用View来查看网页的可视化表示。 MVC代表



M-model

V-View

C-Controller



有很多文章可以解释MVC对象模型的核心功能,你可以阅读和学习。
Upgrading the ASP.NET website to a latest version of MVC might get tricky and headache if the current version of ASP.NET is very old or the programming language is ASP (Classic ASP) used.

Currently, 5 is the version of ASP.NET MVC. You can learn more about the salient features of the ASP.NET MVC and the 5th version. Their official website[^] contains all of the information required for you to learn and understand the shipped features of the ASP.NET MVC. You need to make up your mind to continue using the old features or to update everything by reading the MVC API. You should know there is a new version of ASP.NET that will overcome, Web Pages, Web Forms and MVC and will come out as one MVC 6 that will take use of all of the other ASP.NET sub categories.

Secondly, I would assume you meant to write server not a serber. Yes, you're allowed to use ASP.NET on the servers, but you need to consider the hosting service provider's settings and features before you continue. I remember when I developed a website that used databases and then hosting provider didn't support MS SQL, I had to cut down that feature on my web application. You can get more details on that from the hosting provider only and I cannot provide a better answer on this chapter.

MVC is just a concept of creating application, so you can use it as a model in your application to control the requests, data in your application. You can use Controller to manipulate the HTTP requests, Model to work with the data and View with the visual representation of the web pages. MVC stands for

M-model
V-View
C-Controller

There are many articles that would explain the core features of MVC object model that you can read and learn from.


这篇关于最新版本的MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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