从VSTS释放到Azure Web App时出错 [英] Error when releasing from VSTS to Azure Web App

查看:65
本文介绍了从VSTS释放到Azure Web App时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VSTS中创建了一个简单的发行版定义,该定义使用一个内置的.net核心Web应用程序并将其推送到Azure Web App.不幸的是,此操作在最后一步失败,并显示以下错误:

I have created a simple release definition in VSTS that takes a built .net core web app and pushes the build out to an Azure Web App. Unfortunately this fails on the last step with the error:

##[error]Error: Offset is out of bounds

有人知道是什么原因吗?

Does anyone know what might cause this?

推荐答案

这是由以下两个原因引起的:

This was caused by a couple of issues:

1)我正在使用.net核心构建任务,该任务要求我提供.csproj的路径,但找不到我的.csproj.我将其切换为命令行任务,然后解决了该问题.

1) I was using the .net core build task which required I supply a path to the .csproj, it couldn't find my .csproj. I switched it to the command line task instead and this then fixed that issue.

2)另一个问题是我使用了错误的托管构建代理.当我切换到VS2017构建代理时,一切正常.

2) The other issue was that I was using the wrong hosted build agent. When I switched to the VS2017 build agent it all worked.

这篇关于从VSTS释放到Azure Web App时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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