unoplatform / uno.xamlmerge.task

https://platform.uno/
Other
7 stars 4 forks source link

Error .NET6 Class Library #92

Closed Soap-141 closed 1 year ago

Soap-141 commented 1 year ago

Current behavior

Xaml Merge is working fine in the UWP & Xamarin Class Library but not in the WinUI & MAUI one and almost using the same project config.

It's generating a good file but is giving me the following error:

CSC : error UXAML0001: Processing failed for file C:\P\Nventive.View\src\View.Uno.WinUI\Themes\MergedResourceDictionaries.xaml (System.InvalidOperationException: The type u:DelayControl could not be found

If I ignore the delay control file, it will pass on the error to the next control in the generated file.

Expected behavior

Xaml Merge should be working in WinUI & MAUI Class Library.

How to reproduce it (as minimally and precisely as possible)

https://github.com/nventive/Nventive.View/pull/56

https://github.com/nventive/Nventive.View/tree/dev/thla/feat-add-samples

Environment

Nuget Package:

Package Version(s):

1.1.0-dev.13

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

jeromelaban commented 1 year ago

Does this type actually exist in your original content? It may also be that the u: namespace is duplicated.

Soap-141 commented 1 year ago

Found the issue, wrong #if WINDOWS / WINUI tag was being used, currently working on it.