Edit .NET assembly and recompile

Bac Clunky picture Bac Clunky · Dec 10, 2012 · Viewed 25.8k times · Source

I'm in a really bad situation. I lost my source code and my customer needs to change a little bit in the application. Think of edit an assembly for an example: Test.dll then add a code line and finally recompile it

So my question is: - Is it possible to do that? - If it's possible, what is the good tool to edit an assembly and then recompile it?

Answer

Jacob Stanley picture Jacob Stanley · Dec 10, 2012

Yes, get ILSpy, it has the ability to save an assembly to disk with a .csproj and everything. This makes it easy to open in Visual Studio and recompile.

ILSpy is free and open source.

Save Code