Windows SDK中未检测到DirectX程序集 [英] DirectX Assembly Not Detected in Windows SDK

查看:80
本文介绍了Windows SDK中未检测到DirectX程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我第一次尝试开发DirectX / Direct3D应用程序,即使我安装了Windows 10 SDK(版本) 10.0.26624作为Visual Studio 2015 Update 1的一部分,我在查找程序集时遇到问题。 
我在这里遵循教程:

I am trying to develop a DirectX/Direct3D application, for the first time, and, even though I have the Windows 10 SDK installed (version 10.0.26624 as part of the Visual Studio 2015 Update 1), I am having an issue getting my project to find the assembly.  I am following the tutorial here:

https://msdn.microsoft.com/en- us / library / windows / desktop / ms920749.aspx

https://msdn.microsoft.com/en-us/library/windows/desktop/ms920749.aspx

但使用Microsoft.DirectX的using语句;并使用Microsoft.DirectX.Direct3D;两者都抱怨在Microsoft程序集中找不到DirectX。 此外,如果它很重要,我正在使用Visual Studio的社区版,尽管我认为它不应该是,因为我确实在项目的早期版本中使用了它。

but the using statements using Microsoft.DirectX; and using Microsoft.DirectX.Direct3D; both complain that DirectX is not found within the Microsoft assembly.  Also, if it is of importance, I am using the Community edition of Visual Studio, though I imagine it should not be, since I did have this working in an earlier version of the project.

我已尝试添加对项目的引用,但它不会显示在搜索可用程序集中。 我在这里错过了什么吗? 请告诉我!

I've tried adding the reference to the project, but it does not show up in a search of available assemblies.  Am I missing something here?  Please let me know!

谢谢,

Jordan

推荐答案

你链接到的MSDN文章适用于旧版Managed DirectX 1.1程序集。这些非常古老,仅在旧版DirectX SDK中可用,与.NET 4不兼容,只有.NET 2兼容运行时
可用时才由旧版DirectSetup REDIST安装,并且不应使用用于新项目。

相反,您应该使用SlimDX或SharpDX中的第三方程序集。

Instead, you should make use of the 3rd party assemblies in SlimDX or SharpDX.

http://blogs.msdn.com/b/chuckw/archive/2010 /12/09/directx-and-net.aspx


这篇关于Windows SDK中未检测到DirectX程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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