开发者

Disable Publishing in MSBuild

I have an application th开发者_运维知识库at 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??


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


For WinForms Windows Application

Go to: Project > Properties > Security

Then uncheck 'Enable ClickOnce security settings'


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


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

Web Deployment Overview for Visual Studio and ASP.NET

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜