Xamarin Studio Monogame.Framework.dll参考错误

时间:2013-10-06 21:25:47

标签: c# xamarin.ios xamarin monogame xamarin-studio

当我创建一个全新的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.

这似乎是“找不到文件”错误,但文件显然是因为我可以在文件夹中选择它们?有人有建议吗?我是否容易忽视一些事情?

1 个答案:

答案 0 :(得分:0)

  1. 删除Lingren.Network和MonoGame.Framework
  2. 导入/ Users / 用户名 / Library / Application Support / XamarinStudio-4.0 / LocalInstall / Addin / MonoDevelop.MonoGame.3.0.1 / assemblies / iOS / Lingren.Network.dll
  3. 相同位置MonoGame.Framework.dll