Skip to content

How to install Microsoft.UI.Xaml to Uno Platform Library #7528

Answered by jeromelaban
limeniye asked this question in Q&A
Discussion options

You must be logged in to vote

You can take an example from this: https://github.com/unoplatform/Uno.Samples/blob/master/UI/ControlLibrary/XamlControlLibrary.

To add WinUI 2.x, you'll need to add a package reference explicitly in this block: https://github.com/unoplatform/Uno.Samples/blob/master/UI/ControlLibrary/XamlControlLibrary/XamlControlLibrary.csproj#L15-L17, so that the WinUI reference is only used by the UWP part of the build. The other Uno-specific targets already include references to WinUI.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by limeniye
Comment options

You must be logged in to vote
1 reply
@jeromelaban
Comment options

Comment options

You must be logged in to vote
3 replies
@limeniye
Comment options

@jeromelaban
Comment options

@limeniye
Comment options

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