Disable Publishing in MSBuild
Solution 1
I solved the problem by unchecking 'Sign ClickOnce Manifests' in the 'Signing' tab as well as 'Enable ClickOnce security settings' in the 'Security' tab.
Solution 2
For WinForms Windows Application
Go to: Project > Properties > Security
Then uncheck 'Enable ClickOnce security settings'
Solution 3
2 ways to do it,
Go to the web project and click on properties, go to the 'Package/Publish Web' tab and uncheck the option
Over ride it from your build definition, click edit on your build defination, go to process tab and expand advanced and pass the following argument /P:CreatePackageOnPublish=false
HTH Cheers, Tarun
Related videos on Youtube
A.R.
Updated on June 04, 2022Comments
-
A.R. almost 2 years
I have an application that I wrote in C# and build in VisualStudio. One day I was exploring the 'publish' tab in the project properties section just to see what it did. Now everytime I build my application, I get a whole bunch of files related to ClickOnce installers (*.application, *.deploy, etc.) that I don't really want anymore. How do I disable or otherwise stop these items from appearing when I build my project??
-
A.R. almost 13 yearsThanks, but this isn't a web application.
-
Max Kielland over 5 yearsGood to know that I'm not the only one going nuts on Visual Studio's behaviours. I did the same thing as you did; Explored the publish setting...
-
jschober about 5 yearsI tried that but it's not fixing this (2017). Has anything changed since?