Media Foundation Samples RRS feed

  • Question

  • I've recently installed Visual Studio 2015 on a Windows 10 system. None of the SDK versions that were installed include the Media Foundation samples. I tried installing the Windows 7 SDK, but it won't install for some reason. Is there any other way to get the samples?



    Thursday, May 26, 2016 12:55 PM

All replies

  • Hi Mike

    Samples are no longer included in the SDK directly.

    Microsoft decided to make them available on Github :


    See the note on "Samples" under the Windows 10 SDK :


    To the Windows 7 SDK, in case you need older samples :

    Its not possible to install the "Windows 7 SDK for .NET 4" on Windows 10 that easily.

    This is due to a bug in the .NET check. Windows 8 comes with .NET 4 and 4.5 and Windows 10 integrates both, so even if you try to install .NET 4 from Microsoft directly it still leads to an error as the .NET installer tells you that .NET 4 is already part of the system and cannot be removed or reinstalled. The problem is that the older Windows 7 SDK checks for a specific location of .NET 4 which it simply cant find in the Windows 10 system and thats why it results in an error. It is a bug, or lets say a false check, and still unfixed by Microsoft.

    To work around this there is the "Windows 7 SDK for .NET 3.5". You can install .NET 3.5 under System - > Apps/ Programs -> Windows Features. Checkmark .NET 3 and then in the process select "Download from Windows Update". After you installed the framework run Windows Update to make sure you get the security updates/fixes for .NET 3. In Windows 10 this is also bugged but thats another story.... So technically you can omit searching for the security updates for .NET 3.5 as they are not searched by Windows 10.

    All you need to do is to install .NET 3.5 and then the "Windows 7 SDK for .NET 3.5". If you only want to get your hands on the samples and dont want to develope for .NET 3.5 then uncheck everything except "Samples" in the install process of the SDK. This will install a folder with the samples in it.

    Kindly regards


    Tuesday, May 31, 2016 12:23 PM