添加引用'Newtonsoft.Json.dll'。但是错误已经来临,因为这不是COM组件 [英] add a reference 'Newtonsoft.Json.dll'. but error has come as this is not a COM component
问题描述
我正在使用Visual Studio 2010.我正在尝试添加引用'Newtonsoft.Json.dll'。但是错误已经来了,因为这不是COM组件。
如何添加
I am using Visual studio 2010. I am trying to add a reference 'Newtonsoft.Json.dll'. but error has come as this is not a COM component.
How to add
Newtonsoft.Json.dll
Newtonsoft.Json.dll
,如何解决此问题。当我尝试在webservice中添加该dll
, How to resolve this problem. When i try to add that dll in webservice
错误已经到来,因为这不是COM组件。
error has come as this is not a COM component.
推荐答案
很有可能,你在谈论Newtonsoft.JSON: http://json.codeplex.com [ ^ ]。
如果是这样,只需查看标题:
Most likely, you are talking about Newtonsoft.JSON: http://json.codeplex.com[^].
If so, just look at the title:
Json.NET
Json.NET是一个流行的.NET高性能JSON框架
Json.NET
Json.NET is a popular high-performance JSON framework for .NET
它不应该像COM一样。您可以预期您正在处理.NET程序集(与CLR相比,COM是一个非常过时的东西)。试试这个:使用Visual StudioAdd Refererence窗口的浏览选项卡添加对项目的引用。 (如果您使用的是Visual Studio以外的其他内容,则可以通过其主模块文件添加对程序集的引用。)此外,程序集可以安装到GAC。
但我会建议使用该产品的最终方式:通过其源代码。该产品是开源的。
It is not supposed to be anything like COM. You can expect that you are dealing with a .NET assembly (and COM is something quite outdated compared to CLR). Try this: add a reference to your project using the tab "Browse" of Visual Studio "Add Refererence" window. (If you are using something except Visual Studio, there is a similar way to add a reference to an assembly by its main module file.) Also, the assembly could be installed to GAC.
But I would advice the ultimate way of using the product: through its source code. The product is open-source.
这篇关于添加引用'Newtonsoft.Json.dll'。但是错误已经来临,因为这不是COM组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!