Adding a Frame.Navigated callback causes "error CS1001: Identifier expected" in generated code #19343
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
See repro steps.
Expected behavior
A clean build.
How to reproduce it (as minimally and precisely as possible)
See https://github.com/LegacyNsfw/UnoExample-1
Repro steps:
Results:
\obj\Debug\net8.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\MainPage_f433d2c1faa000eaf5b2bdd8acb5c9b7.cs(185,129,185,130): error CS1001: Identifier expected
The same error is repeated for each of the targets (browser, android, ios, etc).
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
Visual Studio 2022
IDE version
Version 17.12.3
Relevant plugins
Uno platform extension 1.0
Anything else we need to know?
The generated file was deleted by the build process, otherwise I'd include it here.
On a related note, I'd prefer that those generated files were not deleted. That's partly because it would help diagnose Uno issues like this one, but also because they might be be helpful in troubleshooting issues in application code. I've found a few ways to confuse the code generator with mistakes in my own code, and it's always hard to identify the root cause, because the build errors happen in generated code that gets deleted.
The text was updated successfully, but these errors were encountered: