Can you run a version 3 .Net binary on a version 2 CLR install?

五迷三道 提交于 2019-12-11 15:59:52

问题


We're considering writing the next version of out project in using .Net 3, but are wondering if we can take the hit on forcing end users to install the .net framework version 3.


回答1:


If you want to ensure you are only using .NET 2.0 compatible functionality then you should only use .NET 2.0 assemblies. Then you know your safe and sound.




回答2:


This article from Jean-Baptiste Evain explains how you can use C# 3.0 and LINQ and targeting machines on which there is only .NET 2.0 runtime installed.

The idea is to use System.Core Mono implementation, which is licensed under the MIT/X11 license.




回答3:


.NET 3.0 is a bad name for some new libraries: WPF, WCF, Workflow and InfoCard. The CLR is still version 2.0, ASP.NET is still version 2.0, and Windows Forms is still version 2.0.

In development, .NET 3.0 was called WinFX.



来源:https://stackoverflow.com/questions/138393/can-you-run-a-version-3-net-binary-on-a-version-2-clr-install

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!