Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update nuget package from 1.1.4.1 to 2.0.0 #13

Open
gunr2171 opened this issue Dec 12, 2015 · 9 comments
Open

Unable to update nuget package from 1.1.4.1 to 2.0.0 #13

gunr2171 opened this issue Dec 12, 2015 · 9 comments

Comments

@gunr2171
Copy link

I've got a .net 4.5.1 project that I've been using with MargieBot 1.1.4.1 with no real issues. Just now I tried to update to 2.0.0. This is the output from the package manager:

Attempting to gather dependencies information for package 'MargieBot.2.0.0' with respect to project 'SOCVR.Slack.StatBot', targeting '.NETFramework,Version=v4.5.1'
Attempting to resolve dependencies for package 'MargieBot.2.0.0' with DependencyBehavior 'Lowest'
Unable to resolve dependency 'System.Net.WebSockets.Client'. Source(s) used: 'nuget.org', 'Local', 'c-local', 'Microsoft and .NET'.

And as such, my nuget package won't update.

I tried to manually install System.Net.WebSockets.Client 4.0.0-beta-23516 and got this error message:

Install-Package : Could not install package 'System.Net.WebSockets.Client 4.0.0-beta-23516'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.1', but the
package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I've tried some other things (upgrade to .net 4.6, manually install "missing pacakges"), but I've had no luck so far. I can share that activity if needed.

Do you have any idea what's going on?

@gunr2171
Copy link
Author

Oh, and just for completeness sake, here is the log for a fresh install of MargieBot 2.0.0 on a .net 4.6 project:

Attempting to gather dependencies information for package 'MargieBot.2.0.0' with respect to project 'SOCVR.Slack.StatBot', targeting '.NETFramework,Version=v4.6'
Attempting to resolve dependencies for package 'MargieBot.2.0.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'MargieBot.2.0.0'
Resolved actions to install package 'MargieBot.2.0.0'
Adding package 'Microsoft.Bcl.1.1.9' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Microsoft.Bcl.1.1.9' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Microsoft.Bcl.1.1.9' to 'packages.config'
Successfully installed 'Microsoft.Bcl 1.1.9' to SOCVR.Slack.StatBot
Adding package 'Microsoft.CSharp.4.0.0' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Microsoft.CSharp.4.0.0' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Microsoft.CSharp.4.0.0' to 'packages.config'
Successfully installed 'Microsoft.CSharp 4.0.0' to SOCVR.Slack.StatBot
Adding package 'Microsoft.Net.Http.2.2.22' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Microsoft.Net.Http.2.2.22' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Microsoft.Net.Http.2.2.22' to 'packages.config'
Successfully installed 'Microsoft.Net.Http 2.2.22' to SOCVR.Slack.StatBot
Adding package 'Bazam.Http.1.1.4' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Bazam.Http.1.1.4' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Bazam.Http.1.1.4' to 'packages.config'
Successfully installed 'Bazam.Http 1.1.4' to SOCVR.Slack.StatBot
Adding package 'Newtonsoft.Json.7.0.1' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Newtonsoft.Json.7.0.1' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Newtonsoft.Json.7.0.1' to 'packages.config'
Executing script file 'M:\code\socvr\socvr-slack-bot\source\packages\Newtonsoft.Json.7.0.1\tools\install.ps1'...
Successfully installed 'Newtonsoft.Json 7.0.1' to SOCVR.Slack.StatBot
Adding package 'System.Collections.4.0.10' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'System.Collections.4.0.10' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'System.Collections.4.0.10' to 'packages.config'
Successfully installed 'System.Collections 4.0.10' to SOCVR.Slack.StatBot
Adding package 'System.Linq.4.0.0' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'System.Linq.4.0.0' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'System.Linq.4.0.0' to 'packages.config'
Successfully installed 'System.Linq 4.0.0' to SOCVR.Slack.StatBot
Adding package 'Bazam.WebSockets.1.0.2' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Bazam.WebSockets.1.0.2' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'Bazam.WebSockets.1.0.2' to 'packages.config'
Successfully installed 'Bazam.WebSockets 1.0.2' to SOCVR.Slack.StatBot
Adding package 'MargieBot.2.0.0' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Added package 'MargieBot.2.0.0' to folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Install failed. Rolling back...
Package 'MargieBot.2.0.0 : Bazam.Http [1.1.4, ), Bazam.WebSockets [1.0.2, ), Newtonsoft.Json [7.0.1, )' does not exist in project 'SOCVR.Slack.StatBot'
Removed package 'Bazam.WebSockets.1.0.2 : Microsoft.CSharp [4.0.0, ), System.Collections [4.0.10, ), System.Linq [4.0.0, ), System.Net.WebSockets.Client [4.0.0-beta-23409, ), System.Runtime [4.0.20, ), System.Threading [4.0.10, )' from 'packages.config'
Removed package 'System.Linq.4.0.0 : ' from 'packages.config'
Removed package 'System.Collections.4.0.10 : ' from 'packages.config'
Removed package 'Newtonsoft.Json.7.0.1 : ' from 'packages.config'
Removed package 'Bazam.Http.1.1.4 : Microsoft.Net.Http [2.2.22, )' from 'packages.config'
Removed package 'Microsoft.Net.Http.2.2.22 : Microsoft.Bcl [1.1.9, ), Microsoft.Bcl.Build [1.0.14, )' from 'packages.config'
Removed package 'Microsoft.CSharp.4.0.0 : ' from 'packages.config'
Removed package 'Microsoft.Bcl.1.1.9 : Microsoft.Bcl.Build [1.0.14, )' from 'packages.config'
Removing package 'MargieBot.2.0.0 : Bazam.Http [1.1.4, ), Bazam.WebSockets [1.0.2, ), Newtonsoft.Json [7.0.1, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'MargieBot.2.0.0 : Bazam.Http [1.1.4, ), Bazam.WebSockets [1.0.2, ), Newtonsoft.Json [7.0.1, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'Bazam.WebSockets.1.0.2 : Microsoft.CSharp [4.0.0, ), System.Collections [4.0.10, ), System.Linq [4.0.0, ), System.Net.WebSockets.Client [4.0.0-beta-23409, ), System.Runtime [4.0.20, ), System.Threading [4.0.10, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'Bazam.WebSockets.1.0.2 : Microsoft.CSharp [4.0.0, ), System.Collections [4.0.10, ), System.Linq [4.0.0, ), System.Net.WebSockets.Client [4.0.0-beta-23409, ), System.Runtime [4.0.20, ), System.Threading [4.0.10, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'System.Linq.4.0.0 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'System.Linq.4.0.0 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'System.Collections.4.0.10 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'System.Collections.4.0.10 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'Newtonsoft.Json.7.0.1 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'Newtonsoft.Json.7.0.1 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'Bazam.Http.1.1.4 : Microsoft.Net.Http [2.2.22, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'Bazam.Http.1.1.4 : Microsoft.Net.Http [2.2.22, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'Microsoft.Net.Http.2.2.22 : Microsoft.Bcl [1.1.9, ), Microsoft.Bcl.Build [1.0.14, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'Microsoft.Net.Http.2.2.22 : Microsoft.Bcl [1.1.9, ), Microsoft.Bcl.Build [1.0.14, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'Microsoft.CSharp.4.0.0 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'Microsoft.CSharp.4.0.0 : ' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removing package 'Microsoft.Bcl.1.1.9 : Microsoft.Bcl.Build [1.0.14, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Removed package 'Microsoft.Bcl.1.1.9 : Microsoft.Bcl.Build [1.0.14, )' from folder 'M:\code\socvr\socvr-slack-bot\source\packages'
Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache.
========== Finished ==========

In all of that, these look to be the most important lines:

Install failed. Rolling back...
Package 'MargieBot.2.0.0 : Bazam.Http [1.1.4, ), Bazam.WebSockets [1.0.2, ), Newtonsoft.Json [7.0.1, )' does not exist in project 'SOCVR.Slack.StatBot'

@paul1868
Copy link

getting this same thing. Any updates on this?

@BrianVallelunga
Copy link

Also having this issue.

@HoppyHawk
Copy link

I have faced the same problem:

Attempting to resolve dependencies for package 'MargieBot.2.0.0' with DependencyBehavior 'Lowest'
Install-Package : Unable to resolve dependency 'System.Net.WebSockets.Client'. Source(s) used: 'nuget.org', 'Microsoft and .NET'.
At line:1 char:1
+ Install-Package MargieBot
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

@sooth
Copy link

sooth commented Mar 17, 2016

Same issue..

@fabiomaulo
Copy link

There is a dependency to the package id="WebSocketSharp" that is not declared in the nuget pck.

@rosecodym
Copy link

I am having this same issue. After trying to install the entire dependency tree manually via nuget (including Bazam, Bazam websockets and WebSocketSharp), there is still a missing Bazam.Http causing a runtime error.

@chriscore
Copy link

Same problem for me trying to fresh install margiebot into a new .net 4.5.1 or 4.6 project.
Tried adding dependencies, didnt seem to help.

@andrewcartwright1
Copy link

I'm also having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants