2017-01-16 73 views
-1

我已經將我的源代碼添加到github,使用visual studio的插件並將我的AppHarbor帳戶鏈接到github。AppHarbor c#4.6.1比當前目標框架中存在的版本更高

它恢復nuget包如下所示,但建設失敗。我可以編譯(並運行)它,而不會在我自己的電腦上出現任何問題。

有沒有人有任何想法可能導致這一點,或者我可能做錯了什麼?

的消息時間
17年1月16日上午10時39接收到的通知,隊列建立
17年1月16日上午10點39分的下載源
17年1月16日上午10點39分在0.1下載源秒
17年1月16日10:39開始NuGet包恢復
17年1月16日10:39 NuGet包恢復完成 17年1月16日10:39開始建立
17年1月16日上午10:39構建失敗:構建期間發生錯誤

Build star ted 1/16/2017 9:39:42 AM。 1>節點1上的項目「D:\ temp \ rp5gvmbn.own \ input \ DiscordBot.sln」(默認目標)。 1> ValidateSolutionConfiguration: 構建解決方案配置「Release | Any CPU」。 (1)在節點1上建立「D:\ temp \ rp5gvmbn.own \ input \ DiscordBot \ DiscordBot.csproj」(2)(1)(項目「D:\ temp \ rp5gvmbn.own \ input \ DiscordBot.sln」默認目標)。 2> PrepareForBuild: 創建目錄「obj \ Release \」。 2> C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(1605,5):警告MSB3257:主要引用「System.IO.Compression,Version = 4.1.2.0,Culture =中立,PublicKeyToken = b77a5c561934e089,processorArchitecture = MSIL「無法解析,因爲它具有比當前目標框架中存在的更高版本」4.1.2.0「。在當前目標框架中找到的版本是「4.0.0.0」。 [D:\ temp \ rp5gvmbn.own \ input \ DiscordBot \ DiscordBot.csproj] 2> C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(1605,5):警告MSB3257:主要引用「System.Net.Http,Version = 4.1.1.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a,processorArchitecture = MSIL」無法解析,因爲它具有比當前目標框架中存在的更高版本「4.1.1.0」 。在當前目標框架中找到的版本是「4.0.0.0」。 [D:\ temp \ rp5gvmbn.own \ input \ DiscordBot \ DiscordBot.csproj] 2> C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(1605,5):警告MSB3257:主要引用「System.Xml.ReaderWriter,Version = 4.1.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a,processorArchitecture = MSIL」無法解析,因爲它具有比當前目標框架中存在的更高版本「4.1.0.0」 。在當前目標框架中找到的版本是「4.0.10.0」。 [D:\ temp \ rp5gvmbn.own \ input \ DiscordBot \ DiscordBot.csproj] 2> C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(2482,5):error MSB3323:無法在證書存儲中查找清單簽名證書。 [D:\ temp \ rp5gvmbn.own \ input \ DiscordBot \ DiscordBot.csproj] 2>完成構建項目「D:\ temp \ rp5gvmbn.own \ input \ DiscordBot \ DiscordBot.csproj」(默認目標) - 失敗。 1>完成建設項目「D:\ temp \ rp5gvmbn.own \ input \ DiscordBot.sln」(默認目標) - 失敗。

構建失敗。

"D:\temp\rp5gvmbn.own\input\DiscordBot.sln" (default target) (1) -> 
    "D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj" (default target) (2) -> 
    (ResolveAssemblyReferences target) -> 
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3257: The primary reference "System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" could not be resolved because it has a higher version "4.1.2.0" than exists in the current target framework. The version found in the current target framework is "4.0.0.0". [D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj] 
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3257: The primary reference "System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" could not be resolved because it has a higher version "4.1.1.0" than exists in the current target framework. The version found in the current target framework is "4.0.0.0". [D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj] 
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3257: The primary reference "System.Xml.ReaderWriter, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" could not be resolved because it has a higher version "4.1.0.0" than exists in the current target framework. The version found in the current target framework is "4.0.10.0". [D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj] 


    "D:\temp\rp5gvmbn.own\input\DiscordBot.sln" (default target) (1) -> 
    "D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj" (default target) (2) -> 
    (ResolveKeySource target) -> 
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2482,5): error MSB3323: Unable to find manifest signing certificate in the certificate store. [D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj] 

3 Warning(s) 
1 Error(s) 

已用時間00:00:00.70

回答

0

卸載並安裝回您的NuGet包不和。確保其他軟件包的版本與不合要求的版本匹配,並確保所需軟件包存在。

+0

設法解決了我的問題,請注意,我刪除了所有nuget引用,並且剛剛讀取的內容足以讓我再也沒有任何錯誤。獎金是我下降到喜歡的60%,我沒有更多的應用程序錯誤; D – TomJ

+0

主要是說:如果你看到包含錯誤,主要參考....不能因爲它具有比當前目標框架中存在的更高版本「4.1.2.0」。「這意味着API包需要另一個包的某個版本才能工作。 Discord.NET目前不支持最新的Json版本。因此在更新之前檢查其他API包的所需版本。 (他們中的一些人也有衝突,例如,一個需要更新的版本,一個需要更老的版本,那個人很難修復,在這種情況下,請嘗試使用不同的軟件包或其他東西) – WQYeo

+0

Wen我的問題實際上已經修復,因爲我刪除了所有的引用和那些給我的狗屎是那些我不需要的xD我想我做了一些需要它們的東西,然後刪除了代碼,但引用沒有被刪除:p和是啊每次有更新可用時我都會更新,但因爲我現在有一個正在運行的應用程序,所以我會停止這樣做:) – TomJ

1

在我的情況下,這是因爲舊的MSBuild版本(提供與.NET c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe)。

當我安裝Microsoft Build Tools 2015並切換到它("c:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe")一切都很順利。

相關問題