的app.config configSections自定义设置无法找到架构信息 [英] app.config configSections custom settings can not find schema information

查看:424
本文介绍了的app.config configSections自定义设置无法找到架构信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚学有关的app.config就创建自定义部分。我有这部分的工作,它编译并获取信息出来的要求,但我得到它的警告找不到架构信息。

I am just learning about app.config in respect of creating custom sections. I have that part working, it compiles and gets the information out as required but I get warnings about it could not find the schema information.

我已经做了一些谷歌搜索再也找不到这种情况的简单解释。

I have done a bit of googling and could not find a simple explanation of this situation.

的方法(这似乎在一瞬间道理给我)将是为每个部分模式文件该项目之内。当它被编译并部署到另一台机器我相信,我知道如何创建一个模式文件,但不知道我怎么会喜欢到项目中。

The approach (that seems to make sense to me at the moment) would be to have a schema file for each section within that project. I understand how to create a schema file, but do not know how I would like this into the project.

另外架构文件将需要跨越,以及被复制。

Also when it is compiled and deployed to another machine I presume that schema file would need to be copied across as well.

感谢您的任何和所有帮助

Thanks for any and all help

乔恩

推荐答案

尝试app.config文件链接到相应的模式(ussually你可以找到它在C:\Program Files\Microsoft Visual Studio的8\xml\Schemas\DotNetConfig.xsd),这样做只需要打开Visual Studio中的app.config文件,打开属性窗口(F4),并把上面的模式路径
巴勃罗。

Try linking the app.config file to the corresponding schema (ussually you can find it on C:\Program Files\Microsoft Visual Studio 8\xml\Schemas\DotNetConfig.xsd) ,to do so just open the app.config file in visual studio, open the properties window (F4) and put the path above to schemas. Pablo.

这篇关于的app.config configSections自定义设置无法找到架构信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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