gluck / il-repack

Open-source alternative to ILMerge
Apache License 2.0
1.17k stars 216 forks source link

Use Open-source WPF for BAML reading? #241

Open timotei opened 5 years ago

timotei commented 5 years ago

https://github.com/dotnet/wpf/tree/master/src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Xaml

lextm commented 5 years ago

Source code of its BAML reader is not yet published. Not only this project, but others wait for Microsoft to release that code.

I wrote about it once, https://blog.lextudio.com/summary-of-baml-reader-writer-implementations-62950ac47481 and System.Windows.Markup.BamlReader and System.Windows.Markup.BamlWriter are not yet in that GitHub repo.

KirillOsenkov commented 8 months ago

ILSpy has a BAML reader: https://github.com/icsharpcode/ilspy/blob/47ac132f77224b0fc6f8478df81cd40c3a7d229d/ILSpy.BamlDecompiler/Baml/BamlReader.cs

And the official BAML reader is still internal (although we could fork the source if we wanted): https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs