简体   繁体   English

使用基于xproj的ASP.NET Core项目时,Azure构建停止工作

[英]Azure build stopped working when using xproj based ASP.NET Core project

I have a webapp on Azure that is setup with continuous integration via BitBucket repo. 我在Azure上有一个webapp,通过BitBucket repo进行持续集成。

My last build and commit (which was successful) was on 5/25. 我的最后一次构建和提交(成功)是在5月25日。 I did a commit today to a couple *.cs files, as well as 2 *.cshtml files. 我今天做了几个* .cs文件,以及2 * .cshtml文件。

Now, my Azure build is failing on step 2 (step 1 is 'Updating submodules'). 现在,我的Azure构建在第2步失败(第1步是“更新子模块”)。

Preparing deployment for commit id 'xxxxxxxx' 准备部署提交ID“xxxxxxxx”

And here's the beautiful error that is in the log, this is the ENTIRE log: 这是日志中的漂亮错误,这是整个日志:

'D:\\home\\site\\repository*.xproj' is not a deployable project. 'D:\\ home \\ site \\ repository * .xproj'不是可部署的项目。

What in the world?!?! 世界上有什么?!?! What am I supposed to do with that? 我该怎么办呢?

Here's a summary of my changes that were in my release: 这里是的变化是在发布一个总结:

  • changing value of a string constant 改变字符串常量的值
  • adding additional parms.Add("parameter", parameterValue); 添加额外的parms.Add("parameter", parameterValue);
  • add parameters to method signatures 将参数添加到方法签名
  • adding/changing/removing div s in cshtml files 在cshtml文件中添加/更改/删除div

all normal stuff; 所有正常的东西; NOTHING changed on the xproj file. 没有在xproj文件上更改。 Why would the build start failing now? 为什么构建现在开始失败? Have there been any issues with building on Azure since 5/25? 自5/25以来在Azure上构建是否存在任何问题?

I hope this is the correct forum for Azure build stuff, since there's not really any code that I can place here. 我希望这是Azure构建的正确论坛,因为我没有任何代码可以放在这里。

This happens because support for the old xproj format has been removed. 发生这种情况是因为已删除对旧xproj格式的支持。 Please see here and here for announcements. 请看这里这里的公告。

You need to migrate to the csproj format. 您需要迁移到csproj格式。 See https://docs.microsoft.com/en-us/dotnet/articles/core/migration/ for detailed steps. 有关详细步骤,请参阅https://docs.microsoft.com/en-us/dotnet/articles/core/migration/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM