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

后端 未结 1 1121
清酒与你
清酒与你 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:

    
    ...
    
    

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