缺少System.Net.WebClient [英] Missing System.Net.WebClient
问题描述
你好
我需要在开发中使用System.Net.WebClient类,但是当我开始编写"using System.Net"时,我发现Visual Studio的IntelliSense列表中缺少类.我尝试将.NET Framework Client Profile更改为.NET Framework,也尝试 在此处添加响应式引用,但仍然没有任何类.我使用Windows 7,Visual Studio 2010和.NET Framework 4.
I needed to use System.Net.WebClient class in my development, but when I started write "using System.Net", I found a lack of classes in IntelliSense list in my Visual Studio. I tried to change .NET Framework Client Profile to .NET Framework, also I tried to add the responsive reference there, but there were no classes still. I use Windows 7, Visual Studio 2010 and .NET Framework 4.
谢谢.
推荐答案
您是否添加了对System.dll程序集的引用?
have you added reference to System.dll assembly ?
这篇关于缺少System.Net.WebClient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!