Closed jeromelaban closed 1 year ago
This issue happens because LangVersion
is not defined anymore when running under the .NET 8 SDK. This is not an issue anymore with master directly, since embedded Roslyn generators are used, but this needs to be fixed in 4.x.
The steps to thow this issue:
Create new Uno Platform Application with following parameters:
Try to build your shared project.
Expectation: build should be successed Result: Xaml generation error
After that try to use the following steps:
<UnoUIUseRoslynSourceGenerators>true</UnoUIUseRoslynSourceGenerators>
;Result: rebuild will be successfull.
https://github.com/unoplatform/uno/assets/69314237/34434e11-b223-4c60-b4e7-206c58630847
Good day, Uno Platform team. I notice that Uno Platform .Net 8 is not build without
<UnoUIUseRoslynSourceGenerators>true</UnoUIUseRoslynSourceGenerators>
parameter.If I will change the UnoUIUseRoslynSourceGenerators parameter to false, I will catch following compilation error:
I have a proposition to add this parameter as default with Uno Platform .Net 8 creating project.
Visual Studio: 17.7.0 Preview 2.0 Uno Platform: 4.9.17.18 Dotnet sdk-list:
Summary of project creating:
build output uno platform net 8.txt
Originally posted by @limeniye in https://github.com/unoplatform/uno/discussions/12848