Fix: The Global element 'configuration' has already been declared

前端 未结 11 1651
天命终不由人
天命终不由人 2020-12-13 01:30

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

I.e. created a XSD with the button

11条回答
  •  无人及你
    2020-12-13 02:04

    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]\Xml\Schemas\ 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] \Xml\Schemas, 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

提交回复
热议问题