I have a .net Console Application called FooConsole. When I build and deploy it, I see that the App.config
file from my project is deployed to FooConsole.exe.config
.
How can I deploy the .config file to Foo.config
instead of FooConsole.exe.config
and still have it read as the default .config file?
UPDATE: I realize this sounds like an arbitrary requirement. I wanted to be able to write scripts that would copy custom .config files for different deployments. However, if my .config file name must depend on the name of the .exe, then if someone (likely) decides to change the name of the .exe file, it will break my scripts.
From your answers, it sounds like this is an issue I will simply have to work around.