类型或名称空间名称"directx"在名称空间"microsoft"中不存在 [英] the type or namespace name 'directx' does not exist in the namespace 'microsoft'

查看:91
本文介绍了类型或名称空间名称"directx"在名称空间"microsoft"中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图将DirectX包含在C Sharp项目(Visual Studio 2010)中.我安装了DirectX SDK,并将组件包括为:

I have been trying to include DirectX in C sharp project (Visual Studio 2010). I installed DirectX SDK and included the components as:

using Microsoft.DirectX;
using Microsoft.DirextX.Direct3D;

当我尝试编译时,出现错误:类型或名称空间名称'directx'在名称空间'microsoft'中不存在

When I try to compile, I get the error: the type or namespace name 'directx' does not exist in the namespace 'microsoft'

一些博客提到我需要在".NET"选项卡下添加引用"-Microsoft.DirectX.但是我找不到那边.都没有将其添加到选项卡的功能.

Some blogs mentioned that I need to add 'reference' - Microsoft.DirectX under '.NET' tab. But I couldn't find it over there. Neither was any facility to add it to the tab.

任何建议将不胜感激.

推荐答案

很久以前不推荐使用此方法.最后一个仍具有托管包装的Direct SDK是2010年2月.下载地址为

This was deprecated a long time ago. The last Direct SDK that still has the managed wrappers is February 2010. The download is available here. You'll get to pick the references you are looking for after you install that one.

最好不要使用它,没有未来,请看开源SlimDX或SharpDX项目之类的东西.

Better not to use it, no future, look at something like the open source SlimDX or SharpDX projects.

这篇关于类型或名称空间名称"directx"在名称空间"microsoft"中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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