Azure的网站持续部署总是选择错误的项目 [英] Azure Website Continuous Deployment always picks up the wrong project

查看:160
本文介绍了Azure的网站持续部署总是选择错误的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下文件夹结构,在我的TFS在线:

I have the following folder structure in my TFS online:

文件夹名称也是在解决方案匹配项目名称。

The folder names also match the project names in the solution.

注:


  • 绿点:网络API 2.0项目

  • 红点:类库

  • 蓝点:控制台应用程序添加为webjob到Web项目

  • 灰点:控制台应用程序只用于测试

工作文件夹中生成定义:

Working folders for build definition:

构建定义是由Azure的网络连接到TFS自动创建的,我只是改变了文件夹,所以不是团队项目的根文件夹,它指向该分支的文件夹,包含解决方案文件,并在文件夹中第一张图片。

The build definition was created automatically by connecting Azure to TFS online, and I have only changed the folder, so instead of the Team Project root folder, it points to the folder of this branch, containing the solution file and the folders in the first picture.

(这指向包含溶液的文件,以及从所述第一图像的所有子文件夹的文件夹。

(This points to the folder which contains the solution files as well as all the subfolders from the first image.

问题:
当我运行一个版本,它总是拿起 ExpiringRateCardsWorker 的项目(即使是现在的网​​站项目已改名(包括目录和项目文件),开始以下划线,所以这将是首字母顺序排列。

Problem: When I run a build, it always picks up the ExpiringRateCardsWorker project (even now the Web project has been renamed (both the directory and the project file) to start with an underscore, so it will be first alphabetically.

部署是成功的,这是我在摩纳哥看到:

The deployment is successful, this is what I see in Monaco:

我怎样才能把它拿起web项目?

How can I make it pick up the web project?

编辑:问题被关闭,说明是的<一个重复href=\"http://stackoverflow.com/questions/24947317/two-web-project-in-my-solution-which-one-to-deploy\">this.我曾经试图解决方案建议有,但 /网站/部署文件夹在FTP空的,它不包含 deploy.cmd ,所以我的问题仍然没有回答的Unfortunatelly

Question was closed stating to be the duplicate of this. I have since tried the solution suggested there, but the /site/deployments folder is empty on the FTP, it doesn't contain the deploy.cmd, so my question is still not answered unfortunatelly.

推荐答案

我遇到与VSO使用CD MVC应用程序天青部署类似的问题。
这个问题在某种程度上关系到WebJob发布机制。

I'm experiencing similar problem with deployment of MVC application to Azure using CD in VSO. This problem is somehow related to WebJob Publishing mechanism.

现在我是不是能够部署在一气呵成我与WebJob整体解决方案,但是当我删除了所有webjob *以.json文件和的微软WebJobs从我的解决方案发布的NuGet包,我已经成功地正常展开我的MVC应用程序。

For now I wasn't able to deploy my whole solution with WebJob in one go, but when I've deleted all webjob *.json files and Microsoft WebJobs Publish NuGet package from my solution, I've managed to deploy my MVC App normally.

我想我得单独部署应用程序的这一部分,现在是这样。

I think I'll have to deploy this parts of the application separately, for now.

这篇关于Azure的网站持续部署总是选择错误的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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