媒体基金会样本 [英] Media Foundation Samples

查看:83
本文介绍了媒体基金会样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Windows 10系统上安装了Visual Studio 2015。所安装的SDK版本均未包含Media Foundation示例。我尝试安装Windows 7 SDK,但由于某种原因它不会安装。有没有其他方法可以获得
样本?

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?

谢谢,

Chuck

推荐答案

Mike Mike

Hi Mike

SDK中不再包含样本。

Samples are no longer included in the SDK directly.

Microsoft决定在Github上提供它们:

Microsoft decided to make them available on Github :

https://github.com/Microsoft/Windows-universal-samples

请参阅" Samples "上的说明。在Windows 10 SDK下:

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

https:/ /developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

对于Windows 7 SDK,如果您需要较旧的样本:

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

无法安装" Windows 7 SDK for .NET 4 "  on Windows 10
很容易。

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

这是由于.NET检查中的错误造成的。 Windows 8附带.NET 4和4.5以及Windows 10两者都集成,因此即使您尝试直接从Microsoft安装.NET 4,它仍然会导致错误,因为.NET安装程序会告诉您.NET
4已经是系统的一部分,无法删除或重新安装。问题是较旧的Windows 7 SDK检查.NET 4的特定位置,它在Windows 10系统中无法找到,这就是它导致错误的原因。这是一个
的错误,或者说是一个错误的检查,但仍然没有被微软支持。

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.

要解决这个问题,可以使用" Windows 7 SDK for .NET 3.5 "。您可以在System - >下安装.NET
3.5。应用/程序 - > Windows功能勾选.NET 3,然后在此过程中选择"从Windows Update下载"。安装框架后运行Windows Update以确保获得.NET 3的安全性
更新/修复。在Windows 10中,这也是错误的,但这是另一个故事....所以从技术上讲,你可以省略搜索.NET 3.5的安全更新,因为它们未被Windows 10搜索。

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.

您需要做的就是安装.NET 3.5,然后安装" Windows 7 SDK for .NET 3.5 "。
如果您只想获取样本并且不想开发.NET 3.5,那么取消选中除" Samples "之外的所有内容。在SDK的安装过程中。这将安装一个包含样本的文件夹。

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.

请问

Francis


这篇关于媒体基金会样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆