Is there a way in Visual Studio to define some files or resources to be used only in specific build configurations? We use many #if DEBUG
clauses to add debug-only code, but the same can't be done in a .config xml file, for example. Is there a way to define two versions of that file to be used, depending on whether the build configuration is set to Debug or Release?
I found this that describes what I'm looking to do but for Android using Ant. Is there a similar mechanism for Visual Studio and .NET?