C#: .Config File and write issue in program folder
i use the ConfigurationManager to store some app-config开发者_如何转开发urationvalues. Since i start my app from the program folder i cant save config-changes...
I cant write in the program folder... I know that its good practise to store data in %AppData% or %Temp%, but i want my config-File in the same folder as the executable.
How can i handle this problem?
3 options:
- run your process with administrator privileges (not good if you don't need them)
- put your exe somewhere not in
Program Files
- store your config in
AppData
(best)
精彩评论