'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'

后端 未结 7 1233
深忆病人
深忆病人 2020-12-05 12:57

I\'m installing NewtonSoft.Json for parsing Json in .NET application. When I\'m using Visual Studio(VS) 2012, it can not be installed via NuGet. This is the error I have go

7条回答
  •  一向
    一向 (楼主)
    2020-12-05 13:36

    Installing/restoring NuGet packages which target .NET standard requires NuGet.exe version 3.4+.

    From the release notes for v3.4: https://docs.microsoft.com/en-us/nuget/release-notes/nuget-3.4

    New Features

    • Support for the netstandard and netstandardapp framework monikers

    This version of NuGet comes with VS2015 Update 2

    NuGet 3.4 was released March 30, 2016 as part of the Visual Studio 2015 Update 2 and Visual Studio 15 Preview Release

提交回复
热议问题