我試圖編譯一個項目,但當我嘗試構建它時,我只是遇到錯誤。我收到了一些錯誤和一些警告。我認爲警告和錯誤是由同一件事引起的,DreamSeat。這裏的警告之一:主要參考無法解決,因爲它對框架程序集有間接依賴關係
The primary reference "DreamSeat, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "DreamSeat, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
我也得到這樣的錯誤:
The type or namespace name 'DreamSeat' could not be found (are you missing a using directive or an assembly reference?)
所有的錯誤和警告是相似的,所以我覺得他們都引起DreamSeat。
如果試圖從.csproj文件中刪除DreamSeat引用並越過了警告,但仍然收到錯誤。該程序是用C#和我使用的.NET Framework 4
生成輸出:http://pastebin.com/Gng6616g
這些是.NET 4.5程序集,很難猜測它是如何得到這樣的borken。不要自己構建它,請使用Nuget來獲取它。 –