简体   繁体   English

在.Net 2.0中使用.Net 4.0 UserControl

[英]Use .Net 4.0 UserControl in .Net 2.0

I created a UserControl in .Net 4.0 App, and now I need that UserControl in another App which is in .Net 2.0 environment. 我在.Net 4.0应用程序中创建了一个UserControl,现在我需要在.Net 2.0环境中的另一个应用程序中使用该UserControl。 Is it possible to use my UserControl in the .Net 2.0 App (VS 2005)? 是否可以在.Net 2.0应用程序(VS 2005)中使用我的UserControl?

在此处输入图片说明

One does not simply use .NET 4 in an older environment. 人们不会在较旧的环境中简单地使用.NET 4。

No, but the other way around works, .net2 -> .net4 不,但是可以解决的另一种方法是.net2-> .net4

If you're not using any features above .net2, you could recompile with net2.0 as target platform. 如果您未使用.net2之上的任何功能,则可以将net2.0作为目标平台进行重新编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM