|
Customer asks: Although Reflector decompiles the dll file within Visual Studio, after I've edited the Helper class 'Set Connection' and attempy to save the .cs file, I get a message saying that the file is read only..... any ideas how I can resolve this? |
|
Reflector VS Pro doesn't support any type of edit-and-continue. What the tool does do is take an assembly and from it generate the source code and a corresponding PDB file to link the assembly and the generated source. This means that you can debug the assembly by stepping into the generated code and modifying the variable values. The files are made read-only to reflect the fact that there is no edit-and-continue support. If you change the file and save it (after changing the file from read-only to read-write), then Reflector won't patch the original assembly and/or send the changes as an edit-and-continue patch to the running system. |
|
What if I change the .cs generated code file to read-write, make the changes, save it, and then set it back to read-only? Is there any way of recompiling an edited decompiled dll? Reflector VS Pro won't make any changes to the original assembly. The standalone version of Reflector allows you to export the source of a whole assembly, and also generates a project file which allows you to rebuild it. This isn't 100% though - see http://forums.reflector.net/questions/1761/reflector-pro-vb-to-c-results-in-illegal-dollar-characters-in-identifiers The ReflexIl addin on the addins page might be useful to you http://www.reflector.net/add-ins/ though I haven't used it for this purpose myself.
(Jan 18 at 12:08)
Clive ♦♦
|
|
I've downloaded the add-in Reflexin but when I try to run it as an add-in with Reflector it comes up with a load failure? Can you give us any more information about the problem you're having? Which versions of Reflector have you tried, 7.4.1.193 (last release) or 7.5.0.670 (latest early access build)? It's broken in the latest EA build, but we've fixed it since and will be putting out a new one in the next couple of days. Which library specifically did you load? Reflexil is distributed with a few... (Reflexil.Reflector.dll is the one that works for me but then, I'm using a development build)
(Jan 18 at 14:42)
nick_maidment ♦♦
|
|
I subsequently moved all the Reflexil dll's to the Reflector folder and that seemed to solve the problem for me. |