Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 861
Tim Avatar asked Nov 16 '13 05:11

Tim


1 Answers

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.

like image 194
avs099 Avatar answered Sep 17 '22 12:09

avs099