Skip to content

Can uno library work in winui ? #18533

Answered by morning4coffe-dev
DJDQfff asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @DJDQfff.

Generally yes, you can use an Uno library in a WinUI project, but there are a few things to check:

  • Compatibility - ensure both the Uno library and WinUI project target compatible frameworks (e.g., net6.0-windows) and use the same version of Uno.UI
  • References - instead of manually referencing a .dll, add the Uno library as a project reference in your WinUI project, this avoids the errors
  • NuGet Packages - make sure both projects reference the correct version of Uno.UI via NuGet, so Visual Studio manages dependencies correctly

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by morning4coffe-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants