Updating WindowsAppSDK in Uno.WinUI sln gives build errors CS0433 type '...' exists in both Microsoft.WinUI and Uno.UI ? #13569
-
When I create a new Uno Platform App in VS with the latest Uno Platform VS extension (4.10.10.11), Blank startup type accepting defaults, all builds fine. However, when I update CS0433 The type 'Application' exists in both 'Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b' and 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' UnoWizardApp1 (net7.0-windows10.0.19041.0) C:\Repos\UnoWizardApp1\UnoWizardApp1\App.cs 3 24 Compiler N/A This is weird because afaik Uno.UI is for UWP, which is not a dependency in this solution - we are targeting WinUI.
Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the report. This got fixed in #13521, and it will be backported soon. In the meantime, you can work around it by adding |
Beta Was this translation helpful? Give feedback.
Thanks for the report. This got fixed in #13521, and it will be backported soon. In the meantime, you can work around it by adding
<WindowsAppSDKWinUI>true</WindowsAppSDKWinUI>
in anynet7.0-windows
target.