As per this link we can add node in app.confi file.
http://msdn.microsoft.com/en-us/library/ff602939.aspx
so, where does that file exist? If i have given some exe to some one , can I later give him a app.config and ask them to place in the right location - so, that application functions accordingly..?
My app is C# .net 2.0.
In the same folder as the exe. Note the app.config file should be the same name as the exe with a .config stuck at the end. That is, if you had a program fooBar.exe
, the config file should be named fooBar.exe.config
.
来源:https://stackoverflow.com/questions/11456784/where-does-a-net-winforms-applications-app-config-file-reside