question

MMSunil-2457 avatar image
0 Votes"
MMSunil-2457 asked sunilmarulasiddaiah-7880 commented

Winui3 Convert/Port C++/Winrt UWP application to WinUI3 compitable.

HI Team,

Could you please help us to Convert/Port C++/Winrt UWP application to WinUI3 compatible.

Best Regards,
Sunil

windows-uwpwindows-app-sdk
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

NicoZhu-MSFT avatar image
1 Vote"
NicoZhu-MSFT answered sunilmarulasiddaiah-7880 commented

Hello,
Welcome to Microsoft Q&A!

C

ould you please help us to Convert/Port C++/Winrt UWP application to WinUI3 compatible.

I have to say there is no tool to convert winrt UWP application to WinUI3 directly, you need to port your code manually include user interface (UI) code, and here is document about migration notice.


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.


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Team,

Thanks for the reply,

I was using the below link technique to convert C++/Winrt UWP application to nuget package using the C# projection.
Can i continue with this technique?
https://docs.microsoft.com/en-us/windows/uwp/csharp-winrt/net-projection-from-cppwinrt-component

Note: My requirement is to use/refer C++/Winrt UWP application to WInUI3 application.

0 Votes 0 ·
NicoZhu-MSFT avatar image NicoZhu-MSFT sunilmarulasiddaiah-7880 ·

WinUI3 can only create production desktop apps that target Windows 10 and later. if your previous app is UWP, you need to use WinUI2 nuget package to migrate User interface, for more please refer this document.


0 Votes 0 ·

HI Team,

I am trying to create a nuget package using the C# projection by referring this below link.
https://docs.microsoft.com/en-us/windows/uwp/csharp-winrt/net-projection-from-cppwinrt-component

In that above link they have explained everything using .net core app.

But in my case, the project which i wanted to create a C# projection is on .net framework and class library(UWP).
Could you please guide me how to create a nuget package for the above case.

Ex: 161846-image.png


0 Votes 0 ·
image.png (25.0 KiB)
Show more comments