2013-10-06 65 views
1

當我創建一個全新的iOS Monogame項目時,無法找到引用Lidgren.Network和MonoGame.Framework。所以我刪除它們,然後在編輯引用我去圖書館/應用程序支持/ XamarinStudio - 4.0/LocalInstall/Addins/MonoDevelop.Monogame.3.0.1並嘗試選擇Monogame.Framework.dll和Lindgren.Network.dll並獲得以下錯誤:Xamarin Studio Monogame.Framework.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. 

這似乎是一個「找不到文件」的錯誤,但這些文件顯然有,因爲我可以在文件夾中選擇它們?有人有建議嗎?我忽略了一些容易嗎?

+0

你針對你的項目的.NET Framework 2.0? – Tico

+0

看來錯誤是由於缺少MonoGame.Framework.dll參考。尚未建立。 –

+0

嗯,錯誤說:'System.IO.FileNotFoundException:無法加載文件或程序集'System.Core,版本= 2.0.5.0'這是與.NET Framework – Tico

回答

0
  1. 刪除Lingren.Network和MonoGame.Framework
  2. 導入/用戶/用戶名 /庫/ Application Support/XamarinStudio-4.0/LocalInstall /加載項/ MonoDevelop.MonoGame.3.0.1 /組件/ iOS版/ Lingren.Network.dll
  3. 同一位置MonoGame.Framework.dll