I'm working on WPF C# ans I'm using Visual Studio 2017.
It is to set the file path of appSettings. I want to define a relative path in App.Config file. If I try with absolute path it works.
This work:
<appSettings file="C:\Users\jordan\AppData\Roaming\Test\appfile.config">
But if I try with relative path it does not work.
This does not work:
<appSettings file="${AppData}\Roaming\Test\appfile.config">
<appSettings file="~\AppData\Roaming\Test\appfile.config">
<appSettings file="~/AppData/Roaming/Test/appfile.config">
etc...
Do you have an idea to set a relative path here? Or just why I can't do that?
Thanks