Skip to content

MDM2009 duplicate type error when using a grandchild reference #452

Closed
@RealTommyKlein

Description

@RealTommyKlein

Scenario: creating a CppWinRT app "App" with two WinRT components "B" and "C" with the following dependencies/references:

  • App references B and C
  • B references C

B will copy C.winmd to its output directory since it's a dependency. App will pass B and C's output directories as metadata directories to mdmerge since they are dependencies. However, because C.winmd is present in both B and C's output directories, App's mdmerge will fail because it detects duplicate types in the two C.winmds it evaluates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions