0

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

Microsoft.Xna.Framework 3.0无论如何,当我在搜索列表中发现参考文献时,我正在使用 ShaprDevelopPortable 进行项目。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.0to中删除,XNA-4.0但肯定Microsoft.Xna.Framework.Game还会存在吗?

请注意,我使用的 SharpDevelop 版本是 4.2(它是可移植的),所以我想知道我收到此错误的原因是否是:

  • Microsoft XNA 未正确安装
  • 或 SharpDevelop 的问题

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

4

1 回答 1

0

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

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

这是 的标准DLL分布模型MonoGame

于 2019-02-26T03:17:31.013 回答