How to run the publish/clickonce build step in Jenkins (VS2012)

一世执手 提交于 2020-01-13 03:18:08

问题


We have a simple C# solution (VS 2012) that has a publish step/click once wizard - that uses ftp.

I've set up a jenkins build project to build this on SVN trigger. (via MSBuild)

I have NOT been able to get it to build (via MSBuild) the publish/click once installer and upload to my server. I have looked around and searched but i see no way to do this. It seems silly that this would be a manual step.

Hopefully this is something simple that I am overlooking.

Any command line app would be suitable - or if there are scripts that can do the same thing that VS2012 does in the wizard that is fine.


回答1:


I guess you need this then:

msbuild /target:publish

see more here: Building ClickOnce Applications from the Command Line

this will create "publish" folder - which you have to copy to your server, or network share - whatever you are using for the distribution of your app.

Another problem you have to take care of is to increase the version before the build - you need to update csproj file eventually.



来源:https://stackoverflow.com/questions/20015272/how-to-run-the-publish-clickonce-build-step-in-jenkins-vs2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!