将Dll c#2转换为C#4上的WOrk [英] Convert Dll c#2 to WOrk on C#4

查看:94
本文介绍了将Dll c#2转换为C#4上的WOrk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我有基于C#2构建的dll
当我尝试在C#4上使用它时
它不起作用
所以我如何在c#2上转换dll make以便在c#4上工作

hello
i''m having dll built on c#2
when i try to use it on c#4
it doesn''t work
so how i convert dll make on c#2 to work on c#4

推荐答案

您唯一能做的就是用VS2010手动加载解决方案修复转换器发现的所有问题.没有捷径.我从来没有找到无法完美转换的解决方案.

编辑===========

您应该能够从.net 4.0应用程序中运行2.0程序集,而无需进行任何更改,但这仅是将DLL重新编译为.net 4程序集.
The only thing you can do is to load up the solution with VS2010, and manually fix any issues the converter found. There are no shortcuts. I''ve NEVER found a solution that didn''t convert perfectly.

EDIT ===========

You should be able to run the 2.0 assembly from within a .net 4.0 application without making any changes, but it''s est just to recompile the DLL as a .net 4 assembly.


这篇关于将Dll c#2转换为C#4上的WOrk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆