This is the first time I'm trying to use something from WPF in a C++/CLI assembly and I get the following compile error
error C3624: 'System::Windows::DependencyObject': use of this type requires a reference to assembly 'WindowsBase'
Repro Steps
- pull down the repo
- Open NativeInteropApp-WPF-Multi\NativeInteropApp-WPF-Multi.sln
- Set to Debug / x64 - Startup project as NativeinteropApp
- Rebuild All
Results:
error C3624: 'System::Windows::DependencyObject': use of this type requires a reference to assembly 'WindowsBase'
Expected:
I have a Framework Reference to Microsoft.WindowsDesktop.App.WPF so that should be enough to get WindowsBase I think?