Skip to content

NativeInteropApp-WPF-Multi Compile Error in C++/CLI when using WPF #6

@adammarks

Description

@adammarks

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

  1. pull down the repo
  2. Open NativeInteropApp-WPF-Multi\NativeInteropApp-WPF-Multi.sln
  3. Set to Debug / x64 - Startup project as NativeinteropApp
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions