Reputation: 38190
It is possible to create a constant like this:
http://haacked.com/archive/2007/09/16/conditional-compilation-constants-and-asp.net.aspx
<%@ Page CompilerOptions="/d:QUUX" %>
How to create multiple constants ?
Upvotes: 2
Views: 186
Reputation: 630429
This is equivalent to the Csc.exe /define:
(or vbc.exe
if you're using VB, I don't discriminate!)
The /d:
is just short for /define:
in either case.
To add multiple constants, just slap a comma in there:
<%@ Page CompilerOptions="/d:QUUX,QUUX2,BOB,LITTLETIMMY,MYFOOTHURTS" %>
Upvotes: 1