Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Unassigned: Updating assemblies tries downgrading libraries [3376]

$
0
0
I've been trying to update the WebAPI components recently and NuGet is trying (and failing) to downgrade Newtonsoft.JSON in the process:

> Updating 'Microsoft.AspNet.WebApi' from version '4.0.20710.0' to '4.0.30506.0' in project 'LedgerscopeWeb'.
> Update-Package : Updating 'Newtonsoft.Json 5.0.5' to 'Newtonsoft.Json 4.5.8' failed. Unable to find a version of 'Microsoft.AspNet.SignalR.Core' that is compatible with
> 'Newtonsoft.Json 4.5.8'.
> At line:1 char:1
> + Update-Package -safe
> + ~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : NotSpecified: (:) [Update-Package], Exception
> + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

> Updating 'Microsoft.AspNet.WebApi.WebHost' from version '4.0.20710.0' to '4.0.30506.0' in project 'LedgerscopeWeb'.
> Update-Package : Updating 'Newtonsoft.Json 5.0.5' to 'Newtonsoft.Json 4.5.8' failed. Unable to find a version of 'Microsoft.AspNet.SignalR.Core' that is compatible with
> 'Newtonsoft.Json 4.5.8'.
> At line:1 char:1
> + Update-Package -safe
> + ~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : NotSpecified: (:) [Update-Package], Exception
> + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

> Updating 'Microsoft.AspNet.WebApi.Core' from version '4.0.20710.0' to '4.0.30506.0' in project 'LedgerscopeWeb'.
> Update-Package : Updating 'Newtonsoft.Json 5.0.5' to 'Newtonsoft.Json 4.5.8' failed. Unable to find a version of 'Microsoft.AspNet.SignalR.Core' that is compatible with
> 'Newtonsoft.Json 4.5.8'.
> At line:1 char:1
> + Update-Package -safe
> + ~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : NotSpecified: (:) [Update-Package], Exception
> + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

> Updating 'Microsoft.AspNet.WebApi.Client' from version '4.0.20710.0' to '4.0.30506.0' in project 'LedgerscopeWeb'.
> Update-Package : Updating 'Newtonsoft.Json 5.0.5' to 'Newtonsoft.Json 4.5.8' failed. Unable to find a version of 'Microsoft.AspNet.SignalR.Core' that is compatible with
> 'Newtonsoft.Json 4.5.8'.
> At line:1 char:1
> + Update-Package -safe
> + ~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : NotSpecified: (:) [Update-Package], Exception
> + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

I have SignalR 1.1.2 installed (latest) and Newtonsoft.JSON 5.0.5 (latest). If there's any more information I can give to help diagnose this then please let me know. This problem happens both in the VS UI and the Powershell package manager.

Regards,
Matthew
Comments: Hi, I opened up the packages.config file to start creating a dummy project to send to you as a sample, and spotted the issue straight away! Basically somewhere along the lines I'd managed to get 2 versions of Newtonsoft.Json in that file. One targetting net40 and one targetting net45. Removing the net40 one allowed the project to upgrade successfully. <package id="Newtonsoft.Json" version="4.5.8" targetFramework="net40" /> <package id="Newtonsoft.Json" version="5.0.5" targetFramework="net45" /> Regards, Matthew

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>