ClickOnce disallow publishing of Debug builds
Posted
by LnDCobra
on Stack Overflow
See other posts from Stack Overflow
or by LnDCobra
Published on 2010-03-16T13:15:50Z
Indexed on
2010/03/16
13:16 UTC
Read the original article
Hit count: 299
Is there anyway to disallow publishing Debug builds when publishing ClickOnce aplications using Visual Studio 2008?
I know this was asked before, but i can't figure out how from the answer. THe Accepted answer for previous question was:
One thing you can do is add a condition to the .csproj or .vbproj file that MSBuild will check when doing a build.
The condition would check if a publish is occurring and check if the build is a debug build, then do something like run an external tool or otherwise interrupt the build process or cause it to fail.
Could anyone elaborate on that answer or tell me where/or how I can add this condition.
[Original Question][1]
[1]: http://One thing you can do is add a condition to the .csproj or .vbproj file that MSBuild will check when doing a build. The condition would check if a publish is occurring and check if the build is a debug build, then do something like run an external tool or otherwise interrupt the build process or cause it to fail.
© Stack Overflow or respective owner