dotnet / dotnet/wpf

[Question] Extract BamlRecordReader feasability

Open
#10,165 9 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Hi, I contribute to the NativeAOT-LLVM project which is a NAOT compiler for LLVM and WebAssembly. I am currently bringing up a WPF applicaation in the browser using Avalonia's XPF bridge and have a question. As you may know NAOT is an AOT compiler that uses roots to establish a dependency tree of required types and methods that need compiling. WPF presents a challenge in that a some types/properties (get/set methods) may only be used in Xaml or Baml. So it would be advantageous from the goal of gathering dependencies to read the Baml resources and root the necessary types and methods. To that end I was looking at BamlRecordReader.cs and wondering if it could be extracted from the PresentationFramework assembly. Most things are possible, but is this going to be really hard do you think?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.