简体   繁体   English

将 .Net4/MVC 2.0 转换为 .net4.0/MVC 4.5 的最佳方式

[英]Best way to converting .Net4/MVC 2.0 to .net4.0/MVC 4.5

So i have given an old project from my manager to upgrade it to new version on .net and MVC.所以我从我的经理那里给了一个旧项目,将它升级到 .net 和 MVC 上的新版本。 So i checked the project file and refrerence of my system.web.mvc and found that the project is in .Net 4 and MVC 2.0.所以我检查了我的 system.web.mvc 的项目文件和引用,发现该项目在 .Net 4 和 MVC 2.0 中。 Now we need to upgrade it to .net4 MVC 4.5.现在我们需要将它升级到 .net4 MVC 4.5。 I looked at bunch of documents but kind of skeptic which to follow and whats the best practice.我看了一堆文件,但有点怀疑要遵循什么以及什么是最佳实践。

Can anyone tell me whats the best way to do it seamlessly.谁能告诉我什么是最好的无缝方式。

No, there's no clear cut way to go about this.不,没有明确的方法来解决这个问题。 My suggestion is to look at the differences between the versions, figure out what new functionality you're not leveraging and start refactoring to implement it.我的建议是查看版本之间的差异,找出您没有利用的新功能,然后开始重构以实现它。 I would also look to see if any of the patterns had changed but it's going to be up to your specific needs.我还会查看是否有任何模式发生了变化,但这将取决于您的特定需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 mvc 应用程序转换为 .net4 - Converting a mvc application to .net4 在.NET4.0 Winform中访问.NET 4.5类库 - Access a .NET 4.5 class library in .NET4.0 winform 使用.net标准2.0将.net4.0旧库转换为多个目标会产生HtmlString引用错误 - Converting .net4.0 old library to multiple targets with .net standard 2.0 gives HtmlString reference error 存储ASP.NET 4.5 MVC用户数据的最佳方法 - Best way to store ASP.NET 4.5 MVC user data 从.NET4.0编译.NET2.0 DLL - Compile a .NET2.0 DLL from .NET4.0 将ASP.NET MVC 5从.NET 4.5降级到4.0 - Downgrading ASP.NET MVC 5 from .NET 4.5 to 4.0 IoC的StructureMap使用4.5 .net框架,而不是MVC 3应用程序中的4.0框架 - StructureMap for IoC works with 4.5 .net framework, not with 4.0 framework in MVC 3 application 如何使用HttpClient解决与.Net4.0与.Net4.5中的Uri和编码URL的差异 - How-to workaround differences with Uri and encoded URLs in .Net4.0 vs .Net4.5 using HttpClient “Hello world”应用程序在.NET4.0中使用4个线程,但在.NET2.0中使用3个线程 - “Hello world” application uses 4 threads in .NET4.0, but 3 in .NET2.0 .net2.0和.net4.0写的webservice客户端的区别 - Differences between webservice clients written in .net2.0 and .net4.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM