5
I wonder if there is any add-in for visual studio that ensures that while I am in development environment make some changes but when I generate the build of the project, this commented part is reviewed warning me that in production will not work
Example:
// DESENVOLVIMENTO
string servidor = "umaString";
// PRODUÇÃO
string servidor = "outraString";
Sometimes it is necessary to make these comments and force certain actions only in development environment but when Gero build sometimes I forget to reverse this change and I have rework
Thanks in advance
William, you don’t need to tag
visual-studio
when your problem is unrelated to the IDE. See this question http://answall.com/q/101691/18246– Jéf Bueno
And, answering your question, you can have this effect using preprocessing, with
#if DEBUG
.– Jéf Bueno
kkk true jbueno. Congratulations to you Thank you
– gvl32