问题
I am trying to install NuGet do that I can use Json.Net Extensions.
I have installed version 2.8.60318.667 (which was the download from Microsoft for VS2010.
When I try and install Json.Net by the Package Manager Console it fails
PM> Install-Package Newtonsoft.Json
Attempting to resolve dependency 'Microsoft.CSharp (≥ 4.3.0)'.
Install-Package : 'Microsoft.CSharp' already has a dependency defined for 'System.Dynamic.Runtime'.
At line:1 char:16
+ Install-Package <<<< Newtonsoft.Json
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>
When I try and do it via the Manage NuGet Packages UI Get this error. when I then try to install Microsoft CSharp extension I get this error
When I click the Upgrade NuGet button at the bottom there is no update to 2.12 and the only thing I can find is for VS 2013
Is there a way to get this extension to work for VS2010 Shell?
来源:https://stackoverflow.com/questions/43646661/nuget-json-net-install-erros-vs-2010-shell