[英]Configuration members missing from intellisense
我正在尝试为我的应用程序创建一个自定义ConfigurationSection,但VS2008并没有识别出每个人和MSDN所说的任何成员。 我唯一看到的是ConfigurationException。
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Xml;
namespace CSharpIrcBot
{
public class ServerSettings : ConfigurationSection
{
}
}
我正在尝试创建一个包含以下数据的部分,我可以从应用程序中读取和更新。 这些将是用户设置。
ServerName,Port(int),RealName,NickName,UserName,ModeMask
问题不在于我无法弄清楚如何,它甚至无法使用ConfigurationSection。 所以我的问题是......它去了哪里?
我似乎也缺少ConfigurationManager ......它没有出现在intellisense的任何地方 。
您可能需要添加对“System.Configuration”程序集的引用。 您可以在“[windowsfolder] \\ Microsoft.NET \\ Framework [framework version] \\”中找到它。 它可能看起来像你有System.Configuration命名空间,因为intellisense中显示了一些对象,但在手动添加引用之前,你不会获得所有对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.