Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disaster Recovery - Reverse engineer XAML/BAML

Tags:

.net

wpf

Due to a disaster we have lost access to our source control and need to reverse engineer some XAML from the binaries. Ive looked around and found a couple of tools that are supposed to do this but they dont work.

Does anyone have a tool or know of one which works with .Net 4 WPF?

Thanks

like image 982
Jonesie Avatar asked Mar 01 '11 01:03

Jonesie


2 Answers

Hey, if you still need this, may I suggest trying ILSpy. It is a new open source replacement for Redgate's .NET Reflector, and has built in support for BAML to XAML decompilation.

It only runs under .NET 4, and uses .NET 4's own BAML reading code, so I'd be shocked if it had issues with .NET 4 WPF BAML. That said, I've never used it for this purpose, so I have no idea how well it works, but there no harm trying.

like image 83
Kevin Cathcart Avatar answered Sep 23 '22 04:09

Kevin Cathcart


I was able to recover XAML files using dotPeek. Import .dll & look for resources folder, that's it. ILSpy as suggested also works well.

like image 29
mehul9595 Avatar answered Sep 23 '22 04:09

mehul9595