Reference a .NET Framework library #1857
-
A project I'm working on has a non-negotiable dependency on a .NET Framework library (sadly, I have no access to the source code). Currently, I'm using .NET Core 3.1/WPF, and I was able to get the library to work using the flag in the project file. Unfortunately, I've had less luck with a Windows App SDK project. If I set the flag to true, I get the following compiler error.
I tried setting the flag as well to resolve this. While this does correct the above compiler error, the compiler then begins to throw XAML syntax errors. Manually adding a reference to PresentationCore.dll and PresentationFramework.dll does not seem to work either. Is there any way I can get this library functional in a WinUI 3 app? Or will I need to stick with WPF for the time being? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @chhayes, it sounds like the library you're using uses WPF (PresentationCore and PresentationFramework). Using WPF from within WinUI 3 apps currently isn't supported. It's something that might be supported someday through what's called "reverse XAML Islands" (allowing you to use WPF from within WinUI 3), but we don't have any immediate plans to implement that. |
Beta Was this translation helpful? Give feedback.
Hi @chhayes, it sounds like the library you're using uses WPF (PresentationCore and PresentationFramework). Using WPF from within WinUI 3 apps currently isn't supported. It's something that might be supported someday through what's called "reverse XAML Islands" (allowing you to use WPF from within WinUI 3), but we don't have any immediate plans to implement that.