更改MVC 5和.NET目标framwork [英] Changing MVC 5 and .NET target framwork

查看:128
本文介绍了更改MVC 5和.NET目标framwork的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这似乎是一个可笑的事情,但我想知道如果任何人有任何见解。我得到了code到MVC 5,.NET 4.5的项目,问题是我们的服务器是太老了,使用.NET 4.5。

This may seem like a ridiculous thing but I was wondering if anyone had any insight. I was given the code to a MVC 5, .NET 4.5 project, problem is our server is too old to use .NET 4.5.

我也看到了MVC 5不能在.NET 4中运行: <一href="http://stackoverflow.com/questions/20385785/can-i-run-mvc-5-application-on-net-framework-4-0">Can我上运行的.NET Framework 4.0?

I've also read that MVC 5 cannot be run on .NET 4: Can I run MVC 5 application on .NET Framework 4.0?

有没有什么办法,而不需要重新启动整个项目,要恢复到旧版本?此外,如果这是非常简单的比我预期的,因为我必须警告你为好,我很新的物质,那么你能指点我在正确的方向。

Is there any way, without restarting the entire project, to revert back to older versions? Also if this is much simpler than I anticipated, because I must warn you as well, I am very new to the material, then can you direct me in the right direction.

推荐答案

如果你想保持在MVC5你需要.NET 4.5。也许你可以创建一个新的MVC 4项目,而不是和迁移code以上,这不应该是太麻烦了,但你应该检查的区别是什么第一和适应是必要的。

If you want to keep it at MVC5 you will need .NET 4.5. You could perhaps create a new MVC 4 project instead and migrate the code over, which should not be too much trouble but you should check out what the differences are first and accommodate as necessary.

试试这个答案的一些指针:

Try this answer for some pointers:

<一个href="http://stackoverflow.com/a/17340396/1559978">http://stackoverflow.com/a/17340396/1559978

这篇关于更改MVC 5和.NET目标framwork的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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