silverlightxap

Get code from Silverlight publish?


Is there a way to get the code from a Silverlight publish?

My laptop has completely crashed, and the only thing I have left from my application, is the published website.

Is there a tool or something to get the code from my application?


Solution

  • You can rename the xap to zip, extract it, and use Reflector to pull out the code. It won't recover it exactly or recover the XAML though. As far as I know there's no way to reverse engineer XAML.

    Edit: +1 for Shawn for pointing out that the XAML is stored as plaintext resources, so you can recover that too. Not quite sure why it does that, but hey, it's good news :-)