You can have two resources files in visual studio resources with the same name, one of which is intended for test environments and the other for production environments?
Asked
Active
Viewed 84 times
-2
-
What? I've googled a lot but nothing – Kiotto Oct 06 '14 at 16:13
1 Answers
1
No, depending on the "resource".
If you edit the application's resources in the Resources tab of the application's properties. You can see that there is no way to add a flag for DEBUG or RELEASE.
If your resource is a file, then you could add two files to your project, one for DEBUG and the other for RELEASE, then in your application's pre-build event copy the right one over after adding that 3rd filename to your resources.

Peter Ritchie
- 35,463
- 9
- 80
- 98
-
2Side note: The fact that there is no UI to configure DEBUG/RELEASE difference does not mean one need to resort to pre/post-build steps for making conditional includes i.e. for `ItemGroup` - http://stackoverflow.com/questions/8115696/conditional-content-based-upon-configuration ... – Alexei Levenkov Oct 06 '14 at 16:33