如何在Jenkins(VS2012)中运行发布/clickonce构建步骤 [英] How to run the publish/clickonce build step in Jenkins (VS2012)

查看:175
本文介绍了如何在Jenkins(VS2012)中运行发布/clickonce构建步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个简单的C#解决方案(VS 2012),该解决方案具有一个发布步骤/单击一次向导-使用ftp.

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

我已经建立了一个詹金斯构建项目,以在SVN触发器上构建它. (通过MSBuild)

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

我无法(通过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.

任何命令行应用程序都适用-或者如果脚本可以执行VS2012在向导中所做的相同操作,则很好.

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.

推荐答案

我想您那时需要这个:

msbuild /target:publish

在此处查看更多信息:从命令行构建ClickOnce应用程序

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.

您还需要解决的另一个问题是在构建之前增加版本-您最终需要更新csproj文件.

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

这篇关于如何在Jenkins(VS2012)中运行发布/clickonce构建步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆