unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.95k stars 726 forks source link

[WASM] Xaml Parser failure #1856

Open vincentcastagna opened 5 years ago

vincentcastagna commented 5 years ago

Current behavior

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]

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:

jeromelaban commented 4 years ago

This issue requires the upgrade of the WinUI XAML parser, and remove the mono-based one.

jeromelaban commented 2 years ago

This issue is still valid as of Uno 4.0.0