Visual Studio设置项目缓存编译符号
我有一个 ac# Visual Studio 2010 项目,它在我的一些日志记录代码之上使用 [Conditional("DEBUG")]
,但我不想在发布版本中使用这些代码。当我在项目中构建 release
配置并单步执行代码时,它按预期错过了。
我的安装项目使用输出 exe 文件,当我重建 MSI 时,调试代码仍然被打印出来。直到我从安装项目中删除 exe 输出然后重新添加它时,才会发生这种情况。这与我的预期相反,所以我想知道其他人是否也经历过这种情况?
I'm have a c# visual studio 2010 project that uses [Conditional("DEBUG")]
above some of my logging code that I don't want used in my release build. When I build the release
configuration in the project and step through the code, it is missed as expected.
My setup project uses the output exe file though and when I rebuilt the MSI, the debugging code was still being printed out. This occurred till I deleted the exe output from the setup project then re-added it. This is contrary to what I expected so I was wandering if other people have experienced this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个:
Try this: