.net - 针对低版本的项目可以使用高版本的.NET Framework吗?

标签 .net visual-studio-2010 backwards-compatibility .net-framework-version

如果 Visual Studio 解决方案包含针对不同版本的 .NET Framework 的项目,是否可以仅使用更高版本的 .NET 分发应用程序 框架?

最佳答案

If a Visual Studio solution contains projects targetting different versions of the .NET Framework, can the application be distributed just with the higher version of the .NET Framework?

一般来说,是的。将(通常)使用框架的应用程序版本。

一个异常(exception)是,如果您使用的是 COM - 使用 COM,可能会同时加载运行时的公共(public)语言的 2 个版本,这可能需要在目标系统上同时安装这两个版本。

但是,如果它是纯 .NET/托管应用程序,将使用可执行文件的 CLR 版本,它应该可以正常工作。

关于.net - 针对低版本的项目可以使用高版本的.NET Framework吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19599369/

相关文章:

c# - 为了可测试性,向 ComboBox 添加功能的正确方法是什么?

visual-studio-2010 - 对于已卸载的扩展,Visual Studio 2010 包未正确加载

python - Python 2.6 的 Str.format() 给出错误,而 2.7 没有

vb.net - 如何添加 datagridview 记录 - 已关闭

c# - 如何将参数传递给 Visual Studio 2010 的 Crystal Report?看起来他们被忽略了

c++ - 为什么 C++ 标准不更改 std::set 以使用 std::less<> 作为其默认模板参数?

iOS 8 SpriteKit 框架向后兼容性

.net - 用于选择具有指定名称的所有元素的 XPath

c# - 有没有类似异步 BlockingCollection<T> 的东西?

.net - 有没有类似于python的linq枚举的东西