Had a quick question.
I created a new build configuration and added a pre processor directive/symbol called "TEST" to test something out.
I'm using web forms. When I do this in the .cs
var isTestSet = false
#if TEST
isTestSet = true;
#else
isTestSet = false;
and then in my ascx itself in the markup, I do a quick test:
<% if (isTestSet == true)
alert("test is set");
else
alert("test is not set");
%>
In my local development environment, this works perfectly. If I build the solution in TEST, it alerts that it's set. When I build it in something like debug mode or release mode, it alerts that it's not set. When I take this very same dll that I compiled, however, and deploy it to another environment, it always comes up as false (never seems to work).
Any thoughts? Do preprocessor directives get carried over from the DLLs in which they were built? Meaning as long as my dll was built using this new configuration that adds the symbol, then it should be set, no? Does anything else need to be carried over for this to work? I thought it was just the DLL.
Thanks!