使用System.Net.dll需要哪个引用 [英] which reference is required for using System.Net.dll

查看:467
本文介绍了使用System.Net.dll需要哪个引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此命名空间需要引用使用System.Net.dll



我们收到此错误错误1类型或命名空间名称'dll'不存在于名称空间'System.Net'中(您是否缺少程序集引用?)C:\ Users \ LOCUS9 \documents \ visual studio 2010 \Projects \ClientServerPractice \ ClientServerPractice \Program.cs 8 18 ClientServerPractice



如果有人知道,请发送代码获取另一个c#的IP地址







我们已经使用System.Net使用了这个

;

解决方案

.DLL部分取决于使用声明:

 使用 System.Net; 


which reference is required for this namespace" using System.Net.dll "

we getting this error Error 1 The type or namespace name 'dll' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) C:\Users\LOCUS9\documents\visual studio 2010\Projects\ClientServerPractice\ClientServerPractice\Program.cs 8 18 ClientServerPractice

and please send code to get ip address of another in c# if anyone know



we already used this
using System.Net;

解决方案

Take the ".DLL" part off the using statement:

using System.Net;

should do it fine. The .DLL part is the file containing the System.Net namespace and you only need it to find the reference file (and you shouldn't need to do that, it's part of the standard .NET assemblies so the namespace should be in the reference dialog directly)


这篇关于使用System.Net.dll需要哪个引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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