Search code examples
uwpc++-winrt

How to deal with error "MDM 2009 Duplicate type found processing metadate file"?


I am trying to write a UWP program using C++/WinRT, but when I directly and indirectly reference a Windows runtime Component twice, I received the following compilation error, "Duplicate type Core.ALBUM found processing metadata file". I don't have much knowledge of COM. I searched a lot of information but didn't help . what should I do?


Solution

  • This can happen with static library project references. There's an ongoing thread on the project's site.

    https://github.com/Microsoft/xlang/issues/318

    Go there and chime in. Your repro case may help us improve the experience.