Search code examples
c#asp.netvisual-sourcesafedecompiling

Get source from pre-compiled ASP.NET website?


Long story short, VSS decided I wasn't allowed to have some code changes. I am missing a decent sized feature that I don't want to have to re-write (gave to a co-op as work this past summer). It works great and does what the client wants. However... I don't have the machine and the machine it was developed on has since been paved low!

Do'h!

We published the site into a test environment straight from visual studio and then we copied the files into production. So I have the "compiled" files from the VS publish.

How can I go about getting that back into code? I am sure I can figure out which DLL it is in and I would assume that something like reflector is going to be my best bet? Are the original variable names retained?


Solution

  • I would use .NET reflector. Your original variable names will be preserved (providing you did not run any kind of obfuscator) if you have the PDB files as well as the DLLs.