web.config transform - delete comments from connectionstring section

后端 未结 4 2191

I store several different connection strings in my web.config for development and testing. All but one is commented out so I can change info as needed.

When I publish, I

4条回答
  •  眼角桃花
    2021-02-12 10:37

    If you need to Add/Insert/Setattributes inside a replaced connectionstring (for example if you use deployments) you can nest the transformations to remove the comments and replace the attributes:

    
        
    
    

提交回复
热议问题