我一直在我的Uni笔记本电脑上用C#编程,这很方便,不允许任何安装。
无论如何,使用ShaprDevelopPortable时,我正在进行一个项目,这时我注意到Microsoft.Xna.Framework 3.0在搜索列表中寻找引用。当我收到以下错误时,我立即尝试a来编译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 (而且它是可移植的),所以我想知道我得到这个错误的原因是否是:
如果有任何解决方案,我的问题,不需要管理权限或安装。
发布于 2019-02-26 03:17:31
如果不能在XNA、全局程序集缓存、和 DirectX库中安装所需的DirectX库,就不可能运行XNA程序。
如果安装了所需的Directx库,只要所有所需的DLL与可执行文件位于同一个目录中,就可以运行XNA程序。这不是默认配置,需要手动将文件复制到输出目录(与覆盖GAC的.exe文件相同)。
这是用于DLL的标准MonoGame分发模型。
https://stackoverflow.com/questions/25459804
复制相似问题