asp.mvc view enteres #IF DEBUG in release configuration

Viewed 13190

I have an ASP MVC view where have the following statement

#if DEBUG
  //section 1
  //do stuff
#else
  //section 2
  //do other stuff
#endif

When in visual studio I choose the release configuration from the dropdown to do the build, the code still steps through section 1.

In the solution configuration properties all subprojects of the solution are set to the release configuration.

What am I not getting here?

3 Answers
Related