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

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

问题描述

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

I have the following folder structure in my TFS online:

文件夹名称也与解决方案中的项目名称匹配.

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

传说:

  • 绿点:web api 2.0 项目
  • 红点:类库
  • 蓝点:控制台应用作为网络作业添加到网络项目中
  • 灰点:控制台应用仅用于测试

构建定义的工作文件夹:

Working folders for build definition:

构建定义是通过在线连接 Azure 到 TFS 自动创建的,我只更改了文件夹,所以它指向的不是 Team Project 根文件夹,而是指向该分支的文件夹,其中包含解决方案文件和文件夹第一张照片.

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 项目(即使现在 Web 项目已被重命名(目录和项目文件)以以下划线开头,所以它会按字母顺序排在第一位.

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:

我怎样才能让它拿起网络项目?

How can I make it pick up the web project?

问题已关闭,声明是 这个.我已经尝试过那里建议的解决方案,但是 /site/deployments 文件夹在 FTP 上是空的,它不包含 deploy.cmd,所以我的问题是遗憾的是仍未得到答复.

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 应用程序部署到 Azure 时遇到了类似的问题.这个问题在某种程度上与 WebJob Publishing 机制有关.

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 文件和 Microsoft WebJobs Publish 我的解决方案中的 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天全站免登陆