0

I already did the process - Importing dll file in Dotpeek and Exporting Assembly to Project, Now I can modify dll file in VS 2015, but how to recompile the project and use recompiled dll file again in existing project.. I tried with building project in vs 2015 but it displays lots of compile time errors, Please help

Thanks :)

Dharmesh
  • 11
  • 2
  • 6

2 Answers2

3

Rather unfortunately, there is no decompiler that will produce code that compiles for an assembly containing more than a couple of classes.

So you might want to try JustDecompile + Reflexil to do your edit. The advantage of this approach is that only the part you edit will get changed and the rest of the assembly will remain the same as original.

TsviatkoYov
  • 297
  • 1
  • 5
  • Hi @TsviatkoYov, Thanks for reply, I installed JustDecompile but still same problem, I can't edit dll file that is of no use and even if i would be able to edit dll file by any other software, then edited decompiled code must be recompiled to convert code back into dll. – Dharmesh Dec 07 '16 at 14:27
  • Did you check out the Reflexil plugin? Using that you could avoid recompiling. – TsviatkoYov Dec 07 '16 at 14:37
0

You can use dotPeek of Jetbrains, can open any DLL with it by just right-clicking the DLL and Open with dotPeek.

Once DLL is de-compile in dotPeek, right-click click on the DLL in the left sectoin and chose the option Export to Project.

It will open the entire DLL as a Class Library Project in Visual Studio in the case of .NET DLL.

You can modify the source code and recompile the DLLs.

I am not very sure about your requirement, I would advise you to Extend the DLLs method/operation into your project rather than doing an edit on the recompile on the DLL.

Mohd Ilyas
  • 31
  • 2