![](/img/trans.png)
[英]The type or namespace name 'Http' does not exist in the namespace 'System.Net'
[英]namespace System.Net empty
我在Visual Studio 2012中遇到一个问题。System.Net命名空间不包含其类。 NET 4.0版。 此代码无法编译,需要类WebClient:
using System.Net;
public static class Program {
public static void Main(string[] args)
{
WebClient client = new WebClient();
}
确保您的项目具有对System.dll
的引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.