.NET 4.6.2与.NET 4.7兼容吗?
在我的VM上,我安装了.NET 4.6.2,并且使用.NET 4.6.2编译了一个.NET网站,
我有一个已安装的新VM,已安装了 .NET 4.7 。 .NET 4.6.2与.NET 4.7兼容吗?
我可以使用.NET 4.6.2?
编译相同的.NET网站代码在已安装.NET 4.7的IIS服务器上,我可以使用.NET 4.6.2?
运行.NET网站
On my VM I have .NET 4.6.2 installed and I have a .net website compiled using .NET 4.6.2
I have a new VM with .NET 4.7 installed. Is .NET 4.6.2 compatible with .NET 4.7?
Can I compile the same .net website code using .NET 4.6.2?
On an IIS server that has got .NET 4.7 installed, can I run the .net website with .NET 4.6.2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短答案:对您的两个问题是的。
答案稍长:.NET 4是一个就地的升级,这意味着每个升级都在同一文件位置覆盖以前的版本,因此只安装了一个版本。如果您在服务器上安装了.NET 4.7框架,则代码是否针对4.5或4.6.2或4.7。
注意:我将安装.NET 4.8,因为这是最后一个最新版本的最新版本。
Short answer: yes to both your questions.
Slightly longer answer: .NET 4 is an in-place upgrade which means that each upgrade overwrites the previous version in the same file location so that there is only ever one version installed. If you had .NET 4.7 framework installed on your server then your code will work regardless if it targets 4.5 or 4.6.2 or 4.7.
Note: I would install .NET 4.8 as that is the last, most up to date version.