C# Debug和release判断用法

#if (!DEBUG)
Response.Write("DEBUG下运行");
#else
Response.Write("release下运行");
#endif

 

你可能感兴趣的:(C#)