System.Web.UI程序不是在控制台应用程序可用? [英] System.Web.UI not available in console app?

查看:88
本文介绍了System.Web.UI程序不是在控制台应用程序可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着去写数据输出到HTML文件的快速控制台应用程序,但即时通讯有问题访问System.Web.UI命名空间。

Im trying to write a quick console app that outputs data to an HTML file, however im having trouble accessing the System.Web.UI namespace.

添加系统。网络我引用放在引用名称之上的警告图标在Solution Explorer中的System.Web是不是在.NET引用列表(为了让我真正把它添加到项目中,我必须去的对象浏览器,并从那里添加它)。

Adding System.Web to my references places a warning icon on top of the reference name in the solution explorer and System.Web is not available in the .NET reference list (in order for me to actually add it to the project I have to go to the object browser and add it from there).

任何人有什么可能会错过我的任何想法?

Anybody have any ideas about what I could be missing?

非常感谢的人!

推荐答案

在Visual Studio 2010中的控制台应用程序默认的目标框架是.NET框架4 - 客户端配置文件,这不包括System.Web程序。更改项目性质只是.NET框架4',你可以添加引用。

In Visual Studio 2010 the default target framework for Console Applications is ".NET Framework 4 - Client Profile" which doesn't include System.Web. Change it in the project properties to just '.NET Framework 4' and you can add the reference.

这篇关于System.Web.UI程序不是在控制台应用程序可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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