connectionStrings configSource in App.config not working

前端 未结 2 453
有刺的猬
有刺的猬 2020-12-05 22:52

I\'m trying to separate my connection string from my App.config, and as you can\'t do transformations like with Web.config, I thought may I could u

2条回答
  •  鱼传尺愫
    2020-12-05 23:17

    I had the same issue and Oded solution works for me. But I will just precise that to find out how to change the file "Copy to Output Directory option" to be "copy if newer or copy always", you have to

    • rigth click on the file
    • select properties
    • go to advance
    • then will see copy to output directory and choise copy if newer or copy always

    This helped me, I hope it will help you too

提交回复
热议问题