开发者

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 ?


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" %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜