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.

I have an old VB.NET executable for a project done some time ago. I can load it in Reflector, see the code, etc. This project does have two Windows forms in it which contains images, controls, etc.

How do I regenerate this executable with a few changes to code? I.e: the client wants a few revisions and enhancements BUT can no longer find the original source code...

Any help would be much appreciated

asked Feb 01 at 21:05

bwana's gravatar image

bwana
1

I should add I am running Visual Studio 2010 and running Reflector from inside VS.

(Feb 01 at 21:07) bwana

In the standalone version of Reflector, you can use the "export assembly source code" context menu item to generate a project file and code for an assembly. You may then need to fix the project up a little by hand to get it compiling.

answered Feb 02 at 08:29

Clive's gravatar image

Clive ♦♦
1.1k5

Clive,

I've exported assembly source code BUT did not get anything reasonable for the forms in the original executable. Do I have to manally recreate all the forms to match the code?

answered Feb 02 at 17:43

bwana's gravatar image

bwana
1

No. The forms will be there but will not be split into the usual two files - one for user code and one for the designer generated code. The InitializeComponent will be in the same file as the type.

In VS, if you double click the file, the system notices that you have a Form definition and will show it in the designer. However, the code in the initialize is serialized using the CodeDom which expects a very fixed syntax for some of the items - you may need to do some fixup by hand to get it to load.

(Feb 03 at 11:11) Clive ♦♦
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: Feb 01 at 21:05

Seen: 201 times

Last updated: Feb 03 at 11:11

 

Tags:

×2
×1
×1
×1