Using an external .config file in configSource produces error

前端 未结 4 1186
迷失自我
迷失自我 2021-01-04 01:35

I was playing around with how to use the Configuration Manager to read/write custom sections in the App.config file for a WPF application in C#. I read this excellent articl

4条回答
  •  無奈伤痛
    2021-01-04 02:33

    My problem is that I had a was adding a configSource AND a key in the same tag.

    Incorrect:

    
        
    
    

    If you delete the "add" tag or move it into your configSource file, the error goes away.

    Correct:

    
    

提交回复
热议问题