【发布时间】:2010-11-01 19:11:58
【问题描述】:
我想用 C# 而不是 C++ 执行以下操作
#ifdef _DEBUG
bool bypassCheck=TRUE_OR_FALSE;//i will decide depending on what i am debugging
#else
bool bypassCheck = false; //NEVER bypass it
#endif
【问题讨论】:
-
检查this excellent answer,它显示了如何通过项目文件(.csproj)根据条件添加调试符号。
标签: c#