How to run the publish/clickonce build step in Jen

2020-07-16 02:51发布

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条回答
家丑人穷心不美
2楼-- · 2020-07-16 03:34

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.

查看更多
登录 后发表回答