.netapp-config

Give app.config another name after build?


When you build a project with an app.config file it gets copied to the bin directory and renamed $(targetFileName).config. Is it possible for it to be called something else?

For example if my executable is called myApplication.exe, can I have the config file called settings.config as opposed to myApplication.exe.config?


Solution

  • An application by the name of 'myApplication.exe' expects the configuration file to be named 'myApplication.exe.config'. If it's named anything else, then it won't find the configuration file.

    So yes, you can change it to anything else. But then it won't work.