user310291
user310291

Reputation: 38190

How to create multiple preprocessor constants in ASP.NET Page Directive?

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

Answers (1)

Nick Craver
Nick Craver

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

Related Questions