I am publishing a ClickOnce application with VS2008, but before each publication I have to switch to Release config manually. This is great, as far as I remember switching. Is there a way to prevent deployment of debug collections? Is there any compiler directive, for example:
#if DEBUG #if ClickOnce #error You cannot publish a debug build #endif #endif
Or is there a way (without build scripts) to automatically switch to the Release version before publishing?
(I found several similar questions, but I did not like the underders)
thanks
c # deployment clickonce
jomi
source share