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:
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
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>
But I could not make it work. Does someone know how to make it work or have a better idea?
Thanks in advance!
EM