同一个角色,但一些Azure的多个网站没有得到重修,当我发布 [英] Azure multiple web sites with one role but some don't get rebuilt when I publish

查看:139
本文介绍了同一个角色,但一些Azure的多个网站没有得到重修,当我发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有六个网站和一个Web角色。现在我注意到,当我发布网站的所有除了一个是角色的一部分,没有重建。有什么办法,我可以运行一个MSBUILD命令来建立一个网站,该角色的主网站已经建成之后?

I have six web sites and one web role. Now I notice that when I publish the web sites all except for the one that's part of the role are not rebuilt. Is there any way I can run a MSBUILD command to build a web site after the main web site for the role has been built?

推荐答案

我刚刚发现我的答案:-)

I just found my answer :-)

这是因为,在默认情况下,在Windows Azure项目对二级网站没有依赖性,因此在构建过程中可以选择编译这些项目包装完成后。您可以通过右键单击在Visual Studio的Solution Explorer中的Windows Azure项目节点改变这一状况,选择项目依赖,并告诉它取决于需要包含在部署包中的所有项目:

This is because, by default, the Windows Azure project has no dependency on secondary web sites so the build process can choose to compile these projects after the packaging is complete. You can change this by right-clicking the Windows Azure project node in Visual Studio’s Solution Explorer, choose Project Dependencies, and tell it to depend on all projects that need to be included in the deployment package:

这篇关于同一个角色,但一些Azure的多个网站没有得到重修,当我发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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