简体   繁体   中英

Convert a .net 2.0 dll to .net 4.0 dll

i want to convert a .net dll from version 2.0 to .net 4.0.The issue is that i have only the .dll no source code.Is there any way?

Thanks,

You can use a .NET decompiler to generate source code based on a DLL and recompile the resulting code using v4.0 compiler. There may be compile errors if you use a deprecated methods.

Decompilers:

I use Reflector to reverse engineer the assembly and then rebuild it using Visual Studio. Please note, if you don't have the original .snk file used to sign the assembly the Public Key Token will be different. If you are using it inside BizTalk, for example, you will need to search all BizTalk artifacts for the old PKT and replace it with the new PKT. If the PKT doesn't matter you are good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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