需要在C#中添加一个程序集 [英] need to adda an assembly in c#

查看:147
本文介绍了需要在C#中添加一个程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我得到的错误.我必须下载的程序集的确切名称是什么?我可以从Google免费获得它吗?

This is the error i''m getting .what is the exact name of the assembly i have to downlaod? and can i get it from google for free?

The type or namespace name ''Linq'' does not exist in the namespace ''System.Xml'' (are you missing an assembly reference?)	

推荐答案

通过在解决方案资源管理器中的项目下右键单击参考"来添加参考,然后单击添加参考".在.Net选项卡下,选择System.Xml.Linq,然后按OK.

然后在cs文件的顶部添加以下行
Add a reference by right-clicking on "References" under your project in the Solution Explorer then click Add Reference. Under the .Net tab select System.Xml.Linq then press OK.

Then at the top of your cs file add the line
using System.Xml.Linq


您不必下载任何内容,因为.NET框架中已经存在Linq.在这里查看: http://msdn.microsoft.com/en-us/library/system.linq .aspx [^ ].正确的using指令应该是所有必要的内容.

干杯!

—MRB
You don''t have to download anything as Linq is already present inside the .NET framework. Look here: http://msdn.microsoft.com/en-us/library/system.linq.aspx[^]. A correct using directive should be all that is nescessary.

Cheers!

—MRB


这篇关于需要在C#中添加一个程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆