Question

I modified an Assembly using CECIL and saved both Assembly and its pdb back to disk. Now, is there a way to generate code file, i.e. c# file, from this modified Assembly and able to debug to that file during runtime?

Was it helpful?

Solution

Load it in ILSpy. Select the desired assembly from the left-hand panel. Then, select "Save Code" from the File menu. This will export C# source code along with a Visual Studio project that can be opened in Visual Studio for debugging purposes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top