Net Reflector cannot create forms?

Hi,
I am evaluating Net Reflector Pro, and I am not able to open any of the forms generated.
I create a simple Net Framework 4 project in VS2015, using only 1 form, build it, and use Net Reflector to decompile the exe file, creating a VB and a C# project and was unable to open the form in both projects.

This is the original form in VS2015:
9ge4fdfrr1l0.png

This is what i get when i try to open the form in the vb.net project exported:
93tv3rnm5uhm.png

And this with the C# project:
e7flirx80bav.png

As far I can tell, Net Reflector is unable to recreate any form (tried with different real world projects, same issues).

Any suggestions?

TIA,

Carlos
Tagged:

Comments

  • Thanks for your post!

    Regarding these issues, I'm afraid that code regeneration is not perfect, so the source code that Reflector generates may not always be readily compilable. There aren't any ways around this, very sorry to say--since the main intended purposes for .NET Reflector are for decompiling and debugging, our developers have decided not to focus on creating readily compilable code and the export source code option is mostly to provide a helpful start when you've lost source code and need to rebuild.

    If in any case some errors are due to compiler-generated symbols that have invalid characters though, similar to "<>c__DisplayClass5 class2", then unchecking the "Show PDB symbols" option under Tools>Options>Disassembler will let Reflector create its own new valid names for those variables. For any other compile errors though, you'll have to manually edit the code to resolve them. :/ In case you don't use it already, StackOverflow is usually a very helpful resource for understanding and resolving errors--I hope that might help!

    Apologies as I realize this is not the answer you were hoping for! If you have any further questions, please let me know.
    Product Support Engineer | Redgate Software
Sign In or Register to comment.