我用 XNA 4.0 创建了一个简单的 XNA Windows 类库,名为“NivekGameEngine”。我为 Windows 平台创建了一个简单的游戏,我可以访问我的 dll 的所有内容。
当我尝试为 Xbox 360 制作这个项目的副本时,问题就出现了。我得到这个错误:
The primary reference "NivekGameEngine01" could not be resolved because it has an
indirect dependency on the framework assembly "mscorlib, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the
currently targeted framework. ".NETFramework,Version=v4.0,Profile=Client". To resolve
this problem, either remove the reference "NivekGameEngine01" or retarget your
application to a framework version which contains "mscorlib, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089".
我回头看看创建我的 dll 文件的项目,目标设置为“4.0 客户端”
有没有办法解决这个问题?如有必要,我将上传代码。