Porting UWP to .NET9 with C++ projects. #1950
Replies: 4 comments 11 replies
-
There's no need to change anything on the C++ side, other than enabling the "Desktop compatible" setting in Properties. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick reply! I've set the "Desktop compatible" setting in Properties, but when I compile I get the error:
|
Beta Was this translation helpful? Give feedback.
-
I have opened issue #1952 to update the samples, as this is important for our application. |
Beta Was this translation helpful? Give feedback.
-
I'm having a similar problem. I have a C++ WinRT library we've been calling from a UWP app for years and are attempting to update the app to .NET 9. The app is mostly running in .NET 9 now, but we've had no luck calling into the C++ library. I've set the "Windows Desktop Compatible" property in the C++ library to Yes. I've created a projection project, nuget packaged it (see below), and reference that from the app. The app compiles and runs, but as soon as I try to create an instance of a type from the C++ library, I get a "Class not registered" error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of updating our UWP app to new .NET9 AOT. The front end of our app is C#, but the engine is a "Universal Windows" C++ project.
I'm unclear how those C++ projects need to be updated so we can continue to reference them from the C# projects in the new .NET9 AOT world?
I'm hoping project config just needs to be updated in some way, but I can't find any documentation on this process.
Beta Was this translation helpful? Give feedback.
All reactions