How to add a define to an ASP.net solution?
问题 i can add a define to a WinForms project through the Project Properties : How do i add a define to an ASP.net solution? Update : Here's what Visual Studio 2010 looks like when working in an ASP.net solution: 回答1: Solution Explorer > WebApplicationProject (Name of your Web Application) > Properties > Build: 回答2: Have you tried using the compilerOptions attribute of the compiler v element in web.config ? Like so: <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs"