Quantcast
Channel: VBForums - Application Deployment
Viewing all articles
Browse latest Browse all 254

Preventing ClickOnce from Publishing a Debug Configuration

$
0
0
Hi, the title says it all. How can I prevent publish my programs when are in Debug. I have look over the net and found this:

HTML Code:

<!-- The following makes sure we don't try to publish a configuration that defines the DEBUG constant -->
<Target Name="BeforePublish">
  <Error Condition="'$(DefineDebug)'=='true'"
        Text="You attempted to publish a configuration that defines the DEBUG constant!" />

</Target>

This is supposed to be placed at the bottom of the project file right before the </Project> tag.

But I could not make it work. Does someone know how to make it work or have a better idea?

Thanks in advance!
EM

Viewing all articles
Browse latest Browse all 254

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>