Search code examples
c#visual-studio-2015appharbor.net-4.6.1discord.net

AppHarbor c# 4.6.1 higher version than exists in current target framework


I've added my source code to github using the plugin for visual studio and linked my AppHarbor account to the github.

It restores the nuget packages as shown below but fails when building. I can compile (and run) it without any problems on my own pc.

Does anyone have any ideas what could be causing this, or what I might be doing wrong?

Time Message
1/16/17 10:39 AM Received notification, queuing build
1/16/17 10:39 AM Downloading source
1/16/17 10:39 AM Downloaded source in 0.1 seconds
1/16/17 10:39 AM Starting NuGet package restore
1/16/17 10:39 AM NuGet package restore completed 1/16/17 10:39 AM Starting build
1/16/17 10:39 AM Build failed: An error occurred during the build

Build started 1/16/2017 9:39:42 AM. 1>Project "D:\temp\rp5gvmbn.own\input\DiscordBot.sln" on node 1 (default targets). 1>ValidateSolutionConfiguration: Building solution configuration "Release|Any CPU". 1>Project "D:\temp\rp5gvmbn.own\input\DiscordBot.sln" (1) is building "D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj" (2) on node 1 (default targets). 2>PrepareForBuild: Creating directory "obj\Release\". 2>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] 2>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] 2>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] 2>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] 2>Done Building Project "D:\temp\rp5gvmbn.own\input\DiscordBot\DiscordBot.csproj" (default targets) -- FAILED. 1>Done Building Project "D:\temp\rp5gvmbn.own\input\DiscordBot.sln" (default targets) -- FAILED.

Build FAILED.

   "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)

Time Elapsed 00:00:00.70


Solution

  • Uninstall and install back your nuget packages for Discord. Make sure the versions of other packages matches for the one that discord required too as well as making sure that required packages are present.