see:
What is difference between Microsoft.Windows.SDK.NET and Sytem.Runtime.WindowsRuntime
Recently I am trying to migrate some UWP libraries to WinUI3. But I found a lot of class conflicts between these two packages. Concretely, some existing netstandard2.0 projects has dependencies on Sytem.Runtime.WindowsRuntime
. With this library, some WinRT API could be called in the library. When I tried to add a reference to these projects from a WinUi library, there were so many conflicts on classes like:
Windows.UI.Color
Windows.Foundation.Points
How to resolve these conflicts?
2 answers
Sort by: Most helpful
-
-
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
2022-02-17T05:43:27.097+00:00 Hello,
Welcome to Microsoft Q&A!
If you want to migrate your UWP libraries to winui3, you will need to map some of the UWP APIs to their Windows App SDK equivalents. There is an API list about this and you could take a look at this document: Mapping UWP APIs and libraries to the Windows App SDK.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.