AvaloniaILSpy icon indicating copy to clipboard operation
AvaloniaILSpy copied to clipboard

How to export "axaml" file in avalonia ilspy?

Open RickyYCheng opened this issue 4 years ago • 4 comments

I lost the source code of one of my small project, so i decided to decompiled the dll. shot So how to export or see the xaml code in the project? (mainwindowview.axaml) :)

RickyYCheng avatar May 10 '21 13:05 RickyYCheng

ILSpy has a decompiler for BAML - maybe something similar would need to be built for axaml (given how few Avalonia apps are out there this is really a niche problem).

christophwille avatar May 10 '21 13:05 christophwille

ILSpy has a decompiler for BAML - maybe something similar would need to be built for axaml (given how few Avalonia apps are out there this is really a niche problem).

Thank you! :D When searching the problem on bing, everyone said that you should have a look on baml file, but indeed, there's no baml file of axaml in avalonia. AvaloniaUI is rarely used by people (compared to WPF), so it might be difficult to find a answer to this problem.

RickyYCheng avatar May 10 '21 14:05 RickyYCheng

Obviously, this file contains the full message of our axaml file. So if we can transform this into a axaml file, then we dont need the baml file like what we did in wpf. quick

RickyYCheng avatar May 10 '21 14:05 RickyYCheng

I'm looking forward to this too

unofficialdev avatar Dec 26 '21 11:12 unofficialdev