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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -