简体   繁体   English

Json.NET 6.0.4软件包安装在类库项目中失败-VS 2013 Premium

[英]Json.NET 6.0.4 package installation fails in Class Library project - VS 2013 Premium

I'm working with VS 2013 Premium, and went to create a C# class library project. 我正在使用VS 2013 Premium,并创建了一个C#类库项目。 Went through the normal notion of installing RestSharp and Newtonsoft.Json (as I'm working with REST calls), when the below error message crept up. 当以下错误消息逐渐蔓延时,请完成安装RestSharp和Newtonsoft.Json的常规概念(因为我正在使用REST调用)。

使用NuGet安装时出现Json.NET错误

I haven't seen this before. 我以前没看过 As an aside - I had to downgrade from Ultimate to Premium about a week ago as my team has the license for Premium. 顺便说一句-大约一周前,由于我的团队获得了Premium许可证,因此我不得不从Ultimate降级为Premium。

I tried a few other versions to no avail, and tried via the console and the NuGet package manager. 我尝试了其他一些版本都无济于事,并通过控制台和NuGet程序包管理器进行了尝试。

Any ideas? 有任何想法吗?

Wow. 哇。 Okay, so it worked after: 好的,所以在以下情况下有效:

1) Closing out VS 2013 and then checking for updates, allowing them to install. 1)关闭VS 2013,然后检查更新,以进行安装。

2) Restarting laptop. 2)重新启动笔记本电脑。

I don't know if there is a dependency on Json.NET 6.0.4 or NuGet Package Manager, but I had to install VS 2013 Update 3 to get them working. 我不知道是否对Json.NET 6.0.4或NuGet软件包管理器有依赖性,但是我必须安装VS 2013 Update 3才能使其正常工作。

Sharing info as an FYI. 以信息共享的方式共享信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM