.NET Config Files configSource outside the application directory folder

前端 未结 10 1531
灰色年华
灰色年华 2020-11-28 05:06

I have two applications one a console application and the other an ASP.NET app. They both need to know the same appSettings and connectionStrings. So ideally I would like to

10条回答
  •  庸人自扰
    2020-11-28 05:42

    The solution I found worked best was to put the "shared" config files in a central files and then use a pre-build event in Visual Studio to copy them to a relative folder of each project which needed it.

提交回复
热议问题