How do I include a web.config custom section schema without having to update each dev machine?

后端 未结 1 1120
清酒与你
清酒与你 2021-02-09 07:03

I\'ve added a new custom section to the web.config of an application.

I have also created a corresponding schema file for the new section definition.

How do I i

相关标签:
1条回答
  • 2021-02-09 07:42

    Add your .xsd file as a solution item (or project item). Visual Studio will automatically use any schema file it finds in a solution. You may have to restart Visual Studio for it to start working.

    You will also need to reference the schema in the section element:

    <mySection xmlns:name-of-schema>
    ...
    </mySection>
    
    0 讨论(0)
提交回复
热议问题