创建蔚蓝包构建 [英] create azure package with build

查看:189
本文介绍了创建蔚蓝包构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是升级我的项目从SDK 1.3到1.7,我注意到,现在,当我构建应用程序包(cspkg)未与构建创建。我有去点击发布创建一个包。有没有办法告诉VS创建一个包每次构建被触发。

I was just upgrading my project from sdk 1.3 to 1.7 and I noticed that now when I build the application the package(cspkg) is not created with the build. I have go click on publish to create a package. Is there a way to tell VS to create a package everytime a build is triggered.

另外使用的MSBuild是有办法做同样的事情。我有一个解决方案下的多个项目,其中大部分都只是库,然后有这个蔚蓝色的应用程序。是否有指定使用参数单一的MSBuild语句来告诉蔚蓝的应用程序创建包以及建设其他项目的方式。此外,当我指定调试应该创建调试包,当我指定释放开关发布包应创建。

Also using msbuild is there a way to do the same thing. I have multiple projects under a solution, Most of which are just libraries and then there is this azure app. Is there a way to specify a single msbuild statement with params to tell the azure app to create the package as well as build the other projects. Also when I specify debug the debug package should be created and when I specify release switch the release package should be created.

我怎么会做同样的事情我的生成服务器上,以及在那里我有一个.proj文件,该文件指定SLN建设。我怎么能提一个开关来构建包那里。

How could I do the same thing on my build server as well where I have a .proj file which specifies the sln to build. How could I mention a switch to build the package there.

谢谢,
注:Kunal

Thanks, Kunal

推荐答案

您可以配置CSPACK命令(一定要有CSPACK.exe从SDK 1.7路径推出,否则你将得到与SDK 1.6项目的一些架构相关的错误)的帖子在Windows Azure应用程序构建设置生成事件。这样,当你将建立,成功打造CSPACK命令后,将运行并打包应用程序。同样的方式,你可以配置你的MSBuild配置。我只是测试,它为我工作。

You can configure CSPACK command (Be sure to have CSPACK.exe launched from SDK 1.7 Path otherwise you will get some schema related errors with SDK 1.6 project) as Post Build event in your Windows Azure Application Build settings. This way when you will build, after successful build CSPACK command will run and package your application. Same way you can configure your MSBuild configuration. I just tested and it worked for me.

访问<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/cloud-services-model-and-package/#servicepackagecspkg\"相对=nofollow>包装上的云服务了解更多这个MSDN文章。

Visit this MSDN article on packaging a cloud service to learn more.

这篇关于创建蔚蓝包构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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