【发布时间】:2013-10-06 21:25:47
【问题描述】:
当我创建一个全新的 iOS Monogame 项目时,找不到引用 Lidgren.Network 和 MonoGame.Framework。所以我删除它们,然后在编辑引用中我转到 Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.Monogame.3.0.1 并尝试选择 Monogame.Framework.dll 和 Lindgren.Network.dll 并获取以下错误:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
这似乎是“找不到文件”错误,但文件显然在那里,因为我可以在文件夹中选择它们?有人有建议吗?我是否忽略了一些容易的事情?
【问题讨论】:
-
您的项目是否针对 .NET Framework 2.0?
-
似乎错误是由于缺少 MonoGame.Framework.dll 引用。还没有构建。
-
嗯,错误说:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=2.0.5.0与 .NET Framework 相关 -
所以我从 Git 中下载了 MonoGame.zip 项目并构建了 iOS/MonoGame.Framework 项目,然后引用了从中创建的 dll,它似乎可以工作。不知道为什么引用其他 dll 会引发 system.core 的文件未找到异常。
-
我一直在谷歌上搜索,这似乎是一个错误 [Bugzilla]bugzilla.xamarin.com/show_bug.cgi?id=10755
标签: c# xamarin.ios xamarin monogame xamarin-studio