开发者

visual studio setup project caching compilation symbols

开发者 https://www.devze.com 2023-03-22 04:09 出处:网络
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 pr

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开发者_JAVA技巧 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?


Try this:

#if DEBUG
...
#endif
0

精彩评论

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

关注公众号