How do I disable the creation of *.exe.config file when I am adding a new configuration file app.config in visual studio 2003 .NET Framework v1.1
Posted on 2006-06-25
After adding an App.config file to a C# .NET Framework v1.1 project in Visual Studio 2003 I noticed that in the debug\bin directory a *.exe.config file was created as well as the App.config file.
I would like to have only the App.config file in my root project directory without the creation of the *.exe.config file.
the * stands for the name of my created assembly file.
So for instance if I have a project with an assembly called MyClass.exe the unwanted file name is MyClass.exe.config.
For a long time I thought that I am having a problem with my C# code or maybe because I have created a ConnectionString and dynamicly mapped it to the App.config file that I have added to my project, but...as it seems, immediately after adding a new configuration file App.config to my project and after that running the project - the *.exe.config file was created in the debug\bin directory.
By the way, even if I am deleting the unwanted configuration file *.exe.config - it is being creted at next time the application is running.
I hope you understood my question. I tried to describe the problem as good as I could.