none
Known Issue: Getting the following exception {"Method not found: 'Void Windows.Foundation.Metadata.ComposableAttribute..ctor..." when running xUnit tests with UWP project, or using reflection API to reflect over Windows runtime types RRS feed

  • Question

  • After installing Microsoft Visual Studio 2015 Update 1, or installing or repairing the Windows 10 SDK and tools, July 2015 release, you are encountering the following: 

    $exception         {"Method not found: 'Void Windows.Foundation.Metadata.ComposableAttribute..ctor(System.Type, Windows.Foundation.Metadata.CompositionType, UInt32, System.String)'."}            System.MissingMethodException” or some other failure in .NET.

    This issue is exposed when installing the older Windows 10 SDK and tools, July 2015 release after installing the more recent Windows SDK and tools for Windows 10, version 1511. 

    This problem can be confirmed to be the issue if the following file:  C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\1.0.0.0\Windows.Foundation.FoundationContract.winmd is dated before 11/19/2015.

     
    Saturday, January 30, 2016 12:06 AM
    Moderator

Answers

  • To resolve this problem, you need to repair the Windows SDK and tools for Windows 10, version 1511.
    Steps to repair:
    1) Start -> Control Panel
    2) Under Programs choose “uninstall a program”.
    3) This will present a dialog with all the applications installed on your Windows operating system.   In the upper right hand corner type “kit”.   This will filter the list of installed programs.  One of the filtered applications will be “Windows Software Development Kit – Windows 10.0.10586.15”
    4) Single click on Windows Software Development Kit – Windows 10.0.10586.15, and choose “change”.
    5) This will present the Windows Software Development Kit setup dialog and there is an option to “repair”.  Select repair and click Next.

    This will repair the installation of your Windows SDK and tools for Windows 10, version 1511.

    Saturday, January 30, 2016 12:07 AM
    Moderator