2

How can I decompile *.xap file downloaded from WP7 marketplace?

For example this one: http://www.windowsphone.com/en-us/store/app/camper/b0e9a2f4-243d-47db-b61e-0ea16847c25a

Ruslan
  • 2,678
  • 3
  • 22
  • 25

2 Answers2

1

A xap is a zip file. Extract its contents using a program like 7zip and then use a standard .NET decompiler (like ILSpy or Reflector) on the contained dlls.

Jeff
  • 35,755
  • 15
  • 108
  • 220
1

Also xap is definitely a zip file. Rename the extension of the file and open with any zip utility. Windows directly opens zip file, just rename the extension. Then use any decompiler, I personally like Telerik's just-decompile(free).

But please clarify, how do you (or anyone) gets the xap file form marketplace.

Master Chief
  • 2,520
  • 19
  • 28
  • I'm just downloading it from the marketplace using browser. And it can't be opened by 7zip – Ruslan Dec 16 '12 at 09:07
  • 4
    Marketplace XAPs are DRM signed and cannot be opened. – Claus Jørgensen Jul 20 '13 at 12:40
  • Yes, I checked that after posting the solution. At that time I was not aware that Microsoft has added an option to download XAP's (I think this feature was started after release of WP8). I wasn't able to open those files in a zip program. – Master Chief Aug 07 '13 at 10:47