Use .Net 4.0 UserControl in .Net 2.0

心已入冬 提交于 2019-12-25 05:13:32

问题


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. Is it possible to use my UserControl in the .Net 2.0 App (VS 2005)?


回答1:


One does not simply use .NET 4 in an older environment.




回答2:


No, but the other way around works, .net2 -> .net4

If you're not using any features above .net2, you could recompile with net2.0 as target platform.



来源:https://stackoverflow.com/questions/10332550/use-net-4-0-usercontrol-in-net-2-0

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