login | about | faq

If you have any feedback from our EAP, we've created a UserVoice forum especially for you! Check it out, and let us know what you think of the latest Early Access build.

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?

asked Jan 18 at 08:52

Sarah%20Edwards's gravatar image

Sarah Edwards
1


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.

answered Jan 18 at 10:01

Clive's gravatar image

Clive ♦♦
1.1k5

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?

answered Jan 18 at 12:03

apunton's gravatar image

apunton
211

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?

answered Jan 18 at 13:19

apunton's gravatar image

apunton
211

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.

answered Jan 19 at 15:05

apunton's gravatar image

apunton
211

Your answer
toggle preview

Follow this question


By Email:

Once you sign in you will be able to subscribe for any updates here


By RSS:

Answers

Answers and Comments

Formatting your answer

  • *Italic*
  • **Bold**
  • ***Bold Italic***
  • Link: [text](http://url.com/ "title")
  • Paragraph: Two line breaks
  • Bulleted list: Paragraph then start line with *
  • Numbered list: Paragraph then start line with 1.
  • Blockquote: Paragraph then start with with >
  • Basic HTML tags are also supported

Asked: Jan 18 at 08:52

Seen: 348 times

Last updated: Jan 19 at 15:05

 

Tags:

×59
×1