title: Compile Time DEFINEs in an ASP.NET Web Deployment Project
body: <p>My environment is Visual Studio 2005. My specific problem is that I want to define <code>TRACE</code>. </p>
  
  <p>I have a Web Site Project that send trace messages when run out of the ASP.NET Development Server thanks to defining it in the <code>system.codedom</code> element of the web.config.</p>
  
  <p>When I deploy to IIS, I do so via a web deployment project. So the site is precompiled. Naturally, these entries serve no purpose on a compiled website. </p>
  
  <p>My question is how do I define <code>TRACE</code> in the web deployment project?</p>