Description
Describe the bug
Following up in this repo on behalf of this Visual Studio issue.
The symptom is that F12 Go To Definition is not working for Source Link or embedded files, while it did in the 0.10.21 release. It appears that the 11.0 release started shipping reference assemblies in the NuGet packages. The reference assemblies claim to have embedded PDB's, but the embedded PDB is malformed.
Here is a screenshot from ILSpy. The 11.0.2 net6.0 ref assembly for Avalonia.Controls claims to have an embedded pdb, but the embedded pdb contains no metadata (or the metadata is malformed).
The implementation assembly in the lib folder does not have an embedded PDB at all.
I'm not sure what the intent is, but something seems off about these. And, as mentioned, the malformed embedded PDB is breaking source navigation in Visual Studio.
To Reproduce
Steps to reproduce the behavior:
- In VS 2022, make a new C# Console App targeting net6.0 or above.
- Add a PackageReference to Avalonia 11.0.2
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.2" />
</ItemGroup>
- Add a code reference to
Avalonia.Controls.Templates.IDataTemplate
Avalonia.Controls.Templates.IDataTemplate foo = null;
- Place caret on
IDataTemplate
- F12
Expected behavior
IDataTemplate.cs is opened either from SourceLink or a decopmiled file.
##Actual behavior**
Nothing happens.
If I change my package reference to version 0.10.21, and try the repro again, it obtains the file correctly from Source Link
Additional context
Add any other context about the problem here.