The configuration element is not declared

后端 未结 9 1466
死守一世寂寞
死守一世寂寞 2020-12-04 17:08

I\'m doing some work in Visual Studio 2012 Express Edition. I have added an App.config XML file as follows:

         


        
相关标签:
9条回答
  • 2020-12-04 18:03

    Visual Studio 2013 Express Edition is missing the DotNetConfig.xsd (https://connect.microsoft.com/VisualStudio/feedback/details/817322/dotnetconfig-xsd-files-not-present-in-vs-2013-express-for-desktop).

    So to get rid of the warning in VS 2013 Express:

    • get a copy of DotNetConfig.xsd from another system or from the web (I used https://gist.github.com/eed3si9n/5dd7dd98ad2b3f668928b23477de35a3)
    • download to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Xml\Schemas
    • add the schema following Ramakrishna's answer

    The warning should be gone.

    0 讨论(0)
  • 2020-12-04 18:05

    I had to -> Go to XML menu (visual studio top menu item) choose schemas and select DotNetConfig.xsd AND RazorCustomSchema.xsd AND EntityFrameworkConfig_6_1_0.xsd

    0 讨论(0)
  • 2020-12-04 18:05

    I just had this warning popup inside an autogenerated xml file while working on a xaml project.

    Using Debug->Clean Solution and Debug->Rebuild Solution fixed it. Might want to try that before getting fancy with the schemas.

    0 讨论(0)
提交回复
热议问题