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

查看:32
本文介绍了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.

感谢所有帮助

乔恩

推荐答案

尝试将 app.config 文件链接到相应的架构(通常您可以在 C:\Program Files\Microsoft Visual Studio 8\xml\Schemas\DotNetConfig.xsd) ,为此只需在 Visual Studio 中打开 app.config 文件,打开属性窗口 (F4) 并将上面的路径放到 schemas.巴勃罗.

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天全站免登陆