c# - How to Choose Application Configuration File Save Location? -


in visual studio 2013/2015, when compile program exe saves config file \bin\ folder.

when move program exe location c:\program files\ , run it, saves config file %appdata% \appdata\local\.

using c# or visual studio settings, how tell exe save config file current folder , not %appdata%?

i want make program portable , not use %appdata%.


\bin\ folder

bin folder


appdata folder

appdata folder

appdata user config

you can change output path of build ...

go project properties >> build tab >> under output section can change output path of build, creates build @ 1 place files , make portable


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

go - serving up pdfs using golang -