A.R.
A.R.

Reputation: 15685

Disable Publishing in MSBuild

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??

Upvotes: 29

Views: 19646

Answers (4)

ashkufaraz
ashkufaraz

Reputation: 5297

In vs 16.5 go to project=>properties=>package/publish and enable it.

Web Deployment Overview for Visual Studio and ASP.NET

Upvotes: -2

SyntaxGoonoo
SyntaxGoonoo

Reputation: 1070

For WinForms Windows Application

Go to: Project > Properties > Security

Then uncheck 'Enable ClickOnce security settings'

Upvotes: 10

A.R.
A.R.

Reputation: 15685

I solved the problem by unchecking 'Sign ClickOnce Manifests' in the 'Signing' tab as well as 'Enable ClickOnce security settings' in the 'Security' tab.

Upvotes: 52

Tarun Arora
Tarun Arora

Reputation: 4822

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

Upvotes: 2

Related Questions