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:

The source generator generates invalid
#linevalues. 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: