Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/145.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 找不到Microsoft.Xna.Framework.Game?_C#_Sharpdevelop_Xna 3.0 - Fatal编程技术网

C# 找不到Microsoft.Xna.Framework.Game?

C# 找不到Microsoft.Xna.Framework.Game?,c#,sharpdevelop,xna-3.0,C#,Sharpdevelop,Xna 3.0,我一直在我的Uni笔记本电脑上用C#编程,这很方便,不允许任何安装 不管怎样,使用ShapRDevelopmentPortable时,我正在做一个项目,这时我注意到搜索列表中有Microsoft.Xna.Framework 3.0。当我收到以下错误时,我立即尝试编译XNA-4.0的默认模板: Found conflicts between different versions of the same dependent assembly. (MSB3247) The type or namesp

我一直在我的Uni笔记本电脑上用C#编程,这很方便,不允许任何安装

不管怎样,使用ShapRDevelopmentPortable时,我正在做一个项目,这时我注意到搜索列表中有
Microsoft.Xna.Framework 3.0
。当我收到以下错误时,我立即尝试编译
XNA-4.0
的默认模板:

Found conflicts between different versions of the same dependent assembly. (MSB3247)
The type or namespace name 'Game' does not exist in the namespace 'Microsoft.Xna.Framework' (are you missing an assembly reference?) (CS0234) 
The type or namespace name 'GraphicsDeviceManager' could not be found (are you missing a using directive or an assembly reference?) (CS0246)
The type or namespace name 'GameTime' could not be found (are you missing a using directive or an assembly reference?) (CS0246)
The type or namespace name 'GameTime' could not be found (are you missing a using directive or an assembly reference?) (CS0246)
现在我不知道
GameTime
的功能是否已经从
XNA-3.0
删除到
XNA-4.0
,但肯定
Microsoft.XNA.Framework.Game
还会存在吗

请注意,我使用的SharpDevelop版本是4.2(并且是可移植的),因此我想知道出现此错误的原因是否是:

  • Microsoft XNA未正确安装
  • 或者是夏普的问题

如果我的问题有任何解决方案不需要管理员权限或安装。

如果无法在
GAC
、全局程序集缓存、
DirectX
库中安装所需的
XNA
库,则无法运行
XNA
程序

如果安装了所需的
Directx
库,只要所有所需的
DLL
与可执行文件位于同一目录中,就可以运行
XNA
程序。这不是默认配置,需要手动将文件复制到输出目录(与覆盖GAC的.exe文件相同)


这是标准的
DLL
分发模式,适用于
MonoGame

你会在一场拳击比赛中把一只手绑在背后吗?你为什么要在这么多限制的机器上开发?@Noctis好吧,我不会随身携带我的桌面!我知道这是一个很大的限制,对于简单的项目,我使用SharpDevelop不会有太多问题,只是在笔记本电脑上编译XNA可以让我在旅途中完成大部分编程。