<i id='hArTV'><tr id='hArTV'><dt id='hArTV'><q id='hArTV'><span id='hArTV'><b id='hArTV'><form id='hArTV'><ins id='hArTV'></ins><ul id='hArTV'></ul><sub id='hArTV'></sub></form><legend id='hArTV'></legend><bdo id='hArTV'><pre id='hArTV'><center id='hArTV'></center></pre></bdo></b><th id='hArTV'></th></span></q></dt></tr></i><div id='hArTV'><tfoot id='hArTV'></tfoot><dl id='hArTV'><fieldset id='hArTV'></fieldset></dl></div>
<tfoot id='hArTV'></tfoot>

    <legend id='hArTV'><style id='hArTV'><dir id='hArTV'><q id='hArTV'></q></dir></style></legend>
        <bdo id='hArTV'></bdo><ul id='hArTV'></ul>
    1. <small id='hArTV'></small><noframes id='hArTV'>

      修复:全局元素“配置"已被声明

      时间:2023-06-04
    2. <tfoot id='c3SQa'></tfoot>

        <small id='c3SQa'></small><noframes id='c3SQa'>

            • <legend id='c3SQa'><style id='c3SQa'><dir id='c3SQa'><q id='c3SQa'></q></dir></style></legend>
              <i id='c3SQa'><tr id='c3SQa'><dt id='c3SQa'><q id='c3SQa'><span id='c3SQa'><b id='c3SQa'><form id='c3SQa'><ins id='c3SQa'></ins><ul id='c3SQa'></ul><sub id='c3SQa'></sub></form><legend id='c3SQa'></legend><bdo id='c3SQa'><pre id='c3SQa'><center id='c3SQa'></center></pre></bdo></b><th id='c3SQa'></th></span></q></dt></tr></i><div id='c3SQa'><tfoot id='c3SQa'></tfoot><dl id='c3SQa'><fieldset id='c3SQa'></fieldset></dl></div>
                <tbody id='c3SQa'></tbody>
                <bdo id='c3SQa'></bdo><ul id='c3SQa'></ul>
                本文介绍了修复:全局元素“配置"已被声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我使用了第二种解决方案如何解决可以找不到元素/属性 >" 的架构信息?

                即使用按钮创建了一个 XSD 以创建方案.我将 app.config 中的样式表更改为 app.xsd 但现在我收到警告:

                全局元素配置"已在 app.xsd 中声明

                即使更改名称也会显示警告.有人对此有解决方案吗?

                解决方案

                我遇到了与您提到的问题类似的问题,我按照这些说明进行操作,一切都很好.首先确保 EnterpriseLibrary.Configuration.xsd%ProgramFiles%Microsoft Visual Studio [version]XmlSchemas 中,然后执行以下操作:

                <块引用>

                Enterprise Library 将架构安装到 Visual Studio 中,该架构提供 IntelliSense® 以在 Visual Studio XML 编辑器中编辑 Enterprise Library 配置文件.您必须先打开架构,然后才能使用它.

                <块引用>

                启用企业库配置架构

                <块引用>

                1. 在解决方案资源管理器中双击配置文件,在 Visual Studio 中打开它.

                <块引用>

                1. 在 XML 菜单上,单击 Schemas... 打开 XML Schemas 对话框.

                <块引用>

                1. 找到名为 EnterpriseLibrary.Configuration.xsd 的架构.这是自动安装的.但是,如果它未显示在列表中,请单击添加并导航到文件夹 %Program Files%Microsoft Visual Studio [version] XmlSchemas,然后选择 EnterpriseLibrary.Configuration.xsd 并单击打开.

                <块引用>

                1. 将使用列中的值更改为使用此架构.然后点击确定.

                文章的链接是这里 ,希望对您有所帮助

                I used the second solution of How to resolve "Could not find schema information for the element/attribute <xxx>"?

                I.e. created a XSD with the button to create a scheme. I changed the stylesheet in app.config to app.xsd but now I get the warning:

                The Global element 'configuration' has already been declared in app.xsd

                Even when changing the name the warning is shown. Does anybody have a solution for this?

                解决方案

                I had a similar problem to the question you are referring to, I followed these instructions and everything was fine. Make sure the EnterpriseLibrary.Configuration.xsd is in %ProgramFiles%Microsoft Visual Studio [version]XmlSchemas first of all, then do this:

                Enterprise Library installs a schema into Visual Studio that provides IntelliSense® for editing Enterprise Library configuration files in the Visual Studio XML editor. You must turn on the schema before you can use it.

                To enable the Enterprise Library configuration schema

                1. Open the configuration file in Visual Studio by double-clicking it in Solution Explorer.

                1. On the XML menu, click Schemas... to open the XML Schemas dialog.

                1. Locate the schema named EnterpriseLibrary.Configuration.xsd. This is installed automatically. However, if it is not shown in the list, click Add and navigate to the folder %Program Files%Microsoft Visual Studio [version] XmlSchemas, then select EnterpriseLibrary.Configuration.xsd and click Open.

                1. Change the value in the Use column to Use this schema. Then click OK.

                Link to the article is here , hopes this helps

                这篇关于修复:全局元素“配置"已被声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:验证 xml 节点,而不是整个文档 下一篇:可以在运行时使用代码针对 xsd 验证 xml 吗?

                相关文章

                最新文章

                  • <bdo id='yxYbY'></bdo><ul id='yxYbY'></ul>

                    <legend id='yxYbY'><style id='yxYbY'><dir id='yxYbY'><q id='yxYbY'></q></dir></style></legend>
                  1. <tfoot id='yxYbY'></tfoot>
                    <i id='yxYbY'><tr id='yxYbY'><dt id='yxYbY'><q id='yxYbY'><span id='yxYbY'><b id='yxYbY'><form id='yxYbY'><ins id='yxYbY'></ins><ul id='yxYbY'></ul><sub id='yxYbY'></sub></form><legend id='yxYbY'></legend><bdo id='yxYbY'><pre id='yxYbY'><center id='yxYbY'></center></pre></bdo></b><th id='yxYbY'></th></span></q></dt></tr></i><div id='yxYbY'><tfoot id='yxYbY'></tfoot><dl id='yxYbY'><fieldset id='yxYbY'></fieldset></dl></div>

                    <small id='yxYbY'></small><noframes id='yxYbY'>