Open vincentcastagna opened 5 years ago
When building project with AOT on Linux container the following error is thrown :
error CS1912: Duplicate initialization of member 'Path' [/__w/1/s/[ProjectPath]/Project.Wasm.csproj]
Build successfull, no error.
An example of parser failure
<Run Text="{Binding Path=DateFailure.Date, Converter={StaticResource DateFormatterConverter},ConverterParameter=\{0:ddd\, MMM d\}}" />
A workaround is to set the format as a static resource and use it :
<x:String x:Key="DateFormat">{0:ddd. MMM d}</x:String>
<Run Text="{Binding Path=DateFailure.Date, Converter={StaticResource DateFormatterConverter},ConverterParameter={StaticResource DateFormat}}" />
Package Version(s):
Uno.UI 2.0.270-dev.2968 Uno.Core 1.29.0-dev.93
Affected platform(s):
Visual Studio:
This issue requires the upgrade of the WinUI XAML parser, and remove the mono-based one.
This issue is still valid as of Uno 4.0.0
Current behavior
When building project with AOT on Linux container the following error is thrown :
Expected behavior
Build successfull, no error.
How to reproduce it (as minimally and precisely as possible)
An example of parser failure
<Run Text="{Binding Path=DateFailure.Date, Converter={StaticResource DateFormatterConverter},ConverterParameter=\{0:ddd\, MMM d\}}" />
A workaround is to set the format as a static resource and use it :
<x:String x:Key="DateFormat">{0:ddd. MMM d}</x:String>
<Run Text="{Binding Path=DateFailure.Date, Converter={StaticResource DateFormatterConverter},ConverterParameter={StaticResource DateFormat}}" />
Environment
Package Version(s):
Uno.UI 2.0.270-dev.2968 Uno.Core 1.29.0-dev.93
Affected platform(s):
Visual Studio: