Unit Testing, Agile Development, Leadership & .NET - By Roy Osherove
This tip works in VS 2003, in 2005 you don't need it.
(VB2005) what about when you want to maintain 2 separate versions of app.config for both DEBUG and RELEASE? Ideally I just want to switch the build config to Release and get the alternative myapp.exe.config in the resulting package. I've tried everything I can think of, as 2 separate content files (using exclude filters), you can't change the target folder or name!
As just 'files' added to the build, you can rename the target (so debug.config can become myapp.exe.config) but you can't specify the applicable build config (Active/Debug/Release), so you need to manually exclude/include each file .
I just want to be able to have debug.config and release.config files in the source code, and for the appropriate one to be included in the build when I switch the configuration between Debug and Release. I can't beleive it's so tricky - I must be missing something obvious. Any Ideas anyone?