[WACK] Windows Runtime metadata validation failure RRS feed

  • Question

  • Hi everyone.
    I have a bit of intricate project with shared C# and C++ Windows Store projects... even a bit of unmanaged code.
    And at the end of the project I am trying to pass WACK validation.
    I resolved almost all of the problems... but there is one problem...

    "Windows Runtime metadata validation
    General metadata correctness test
    Metadata files must meet various requirements in order to be valid and correct.
    The type System.MulticastDelegate referenced by type ProjectName.SomeClass in file ProjectName.winmd was not found.  All types referenced in metadata files must be discoverable."

    I was confused. Platform was added to the project... VCL Runtime too.

    Thanks to everyone for any help.

    Tuesday, December 16, 2014 2:40 PM

All replies

  • Hi Ruslan Grashyn,

    I will move your thread to Windows Store apps forum for better support.

    Thanks for your understanding.

    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, December 17, 2014 7:42 AM
  • So... I have some ideas about this problem.
    Sample  Code
    So .Net Framework have Delegate and MulticastDelegate... but C++ have only Delegate. When we are using Delegate in C++ library, C# project sees that Delegate like MulticastDelegate... but C++ have no this class.
    So we have a reference on MulticastDelegate without any implementation.

    But I still need some ideas how to solve that problem...
    Thanks to everyone for any help.
    Friday, December 19, 2014 12:48 PM
  • Hi Ruslan - I don't think this is a problem with the WACK, but with the compiler.  Somehow the compiler is interpreting delegate as mutlicastdelegate.  I'm going to check with the .NET team to see how to resolve this.  It may take several days due to the holiday.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, December 22, 2014 3:43 PM
  • Hi Matt.
    Do you have any progress?
    We solved this problem by C++ macros.
    Monday, February 9, 2015 4:09 PM