Skip to content

[XG] XamlG generates invalid #line paths #31454

@simonrozsival

Description

@simonrozsival

The source generator generates invalid #line values. The path to the original file seems to be relative to the generated .cs file path (even when the file is not emitted to the disk). VS Code cannot show the red squigly line in the .xaml file and clicking on the error in the Problems tab navigates to a non-existent file:

Image

Metadata

Metadata

Assignees

Labels

area-xamlXAML, CSS, Triggers, Behaviorst/bugSomething isn't workingxsgXaml sourceGen

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions