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
9.03k stars 733 forks source link

Libraries built with Uno.Sdk are forced to have Uno.WinUI dependency for WinAppSDK build #18032

Open Youssef1313 opened 2 months ago

Youssef1313 commented 2 months ago

Current behavior

The WinAppSDK build of a library made with Uno.Sdk is forced to have Uno.WinUI dependency. Sometimes, library authors may want to not have this dependency if they are not using Uno.UI.Toolkit.

Expected behavior

Have an option to disable the Uno.WinUI reference on WinAppSDK (maybe make it applicable to applications as well as libraries?)

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

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 2 months ago

This will be addressed by splitting the UI and non-UI layers.