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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -