更改MVC 5和.NET目标framwork

编程入门 行业动态 更新时间:2024-10-27 16:38:31
本文介绍了更改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中运行: 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:

stackoverflow/a/17340396/1559978

更多推荐

更改MVC 5和.NET目标framwork

本文发布于:2023-11-12 13:49:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581674.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目标   MVC   NET   framwork

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!