使用.NET Framework 3.5的功能:在.NET框架2.0框架、功能、Framework、NET

2023-09-04 05:27:53 作者:软酱酱

是否有可能将一些.NET Framework 3.5的的DLL文件,并使用它在.net Framework 2.0的?

Is it possible to convert some of the dlls of .Net framework 3.5 and use it in .Net framework 2.0?

我真的需要.NET 2.0中的管理命名管道的命名空间: - (

I really need the managed named pipes namespace in .Net 2.0 :-(

感谢

推荐答案

您可以使用C#3.0编译器功能.NET 2.0中有一些技巧 - 但你不会是能够使用框架的dll /类型/不以2.0存在的方法。 我不要建议试图简单地部署任何3.5 dll文件,而无需在客户端有.NET 3.5安装。我的期望是,你必须在计算机上安装.NET 3.5,或者让没有你想要的框架功能。

You can use the C# 3.0 compiler features in .NET 2.0 with a few tricks - but you aren't going to be able to use framework dlls / types / methods that don't exist in 2.0. I don't recommend trying to simply deploy any 3.5 dlls without having the client have .NET 3.5 installed. My expectation is that you'll have to install .NET 3.5 on the machine, or make do without the framework feature you want.