C# 找不到Microsoft.Xna.Framework.Game?
我一直在我的Uni笔记本电脑上用C#编程,这很方便,不允许任何安装 不管怎样,使用ShapRDevelopmentPortable时,我正在做一个项目,这时我注意到搜索列表中有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
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可以让我在旅途中完成大部分编程。