AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.04k stars 2.25k forks source link

axaml/xaml resource dictionary/style files breaking link generation inside embedded PDB with or without sourcelink #17449

Open punker76 opened 2 weeks ago

punker76 commented 2 weeks ago

Describe the bug

I want to embed all source in my pdb, but if there are axaml/xaml files in my project, the pdb doesn't contains all links to other files and also marks the axaml/xaml files as unknown. Also the nuget is then non deterministic and "contains untracked sources".

2024-11-07_16h52_16

If I remove the axaml/xaml files then I got all in what I expect.

2024-11-07_16h53_24

Here is a result with sourcelink

2024-11-07_16h18_36

To Reproduce

I created a sample here https://github.com/punker76/not-all-files-added-to-pdb-using-avalonia-axaml

Just compile in release mode and pack the projects.

2024-11-07_16h49_22

Expected behavior

All files should be contained. I don't know if also the axaml/xaml files should be contained. But it should not break the action itself.

Avalonia version

11.0.13

OS

Windows

Additional context

No response