简体   繁体   English

加载XnaNative.dll失败

[英]Failed to load XnaNative.dll

I've been using XNA to make games using C#. 我一直在使用XNA使用C#制作游戏。 It has been working fine for at least the past year or so. 至少过去一年左右,它一直运行良好。 However, suddenly, whenever I tried to run a game with any content item in it whatsoever, it gives me this error: "Building content threw FileNotFoundException: Failed to load XnaNative.dll. Please verify that you have the XNA Framework installed." 但是,突然间,每当我尝试运行包含任何内容项的游戏时,都会出现此错误:“构建内容引发FileNotFoundException:无法加载XnaNative.dll。请验证是否已安装XNA Framework。” I have reinstalled XNA and all of my editions of Visual Studio, and it still gives me this error. 我已经重新安装了XNA和所有版本的Visual Studio,它仍然给我这个错误。 Any ideas? 有任何想法吗?

Thanks! 谢谢!

没关系,原来问题出在一个或两个项目上:我通过转到项目属性中的“内容构建”选项卡,然后取消选中“压缩内容管道输出文件”来解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM