简体   繁体   English

参考在Visual Studio 2012中不起作用

[英]Reference not working in Visual Studio 2012

I have a simple console application that is supposed to use Newtonsoft.Json to desrialize JSON objects. 我有一个简单的控制台应用程序,应该使用Newtonsoft.Json来反序列化JSON对象。 I installed Newtonsoft.Json via Manage Nuget for Solution and the package shows as installed in Nuget however the reference is not showing at all in the project or in the file .csproj . 我通过Manage Nuget for Solution安装了Newtonsoft.Json,该软件包显示为已安装在Nuget中,但是在项目或文件.csproj中根本没有显示参考。

Any clue? 有什么线索吗?

Maybe you should add a reference to the library. 也许您应该添加对该库的引用。 Project->Add reference, find package you need and press ok. 项目->添加参考,找到您需要的软件包,然后按确定。 Then you can include this package to your project with keyword using . 然后,可将这个包与关键字使用您的项目。

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

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