visual-studio - 将 TFSService 版本发布到 Azure 失败并出现 DirectoryNotFoundException

标签 visual-studio azure tfsbuild azure-web-app-service azure-devops

我已将 TFSService 帐户连接到我的 Azure 帐户,并尝试将 TFSService 生成的结果发布到我的 Azure 帐户。很确定我的构建定义设置正确 - 一切都编译得很好,这很棒,但每次我尝试部署时,都会收到以下错误:

Exception Message: Could not find a part of the path 'C:\a\bin\_PublishedWebsites'. (type DirectoryNotFoundException)
Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

有人知道可能出了什么问题吗?根据记录,通过在 Visual Studio 中右键单击我的项目来手动发布效果很好(并且使用相同的发布配置文件),因此不太确定交易是什么。我也不是 100% 知道什么信息对人们在调试时使用有帮助,所以请让我知道你们想看到什么,我会更新问题。

谢谢。

最佳答案

我通过简单地删除 Azure 中的 TFS 集成和 TFS 中的关联构建配置,然后重新添加来修复此问题。

关于visual-studio - 将 TFSService 版本发布到 Azure 失败并出现 DirectoryNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14166634/

相关文章:

azure - 是否有有关将 Azure FHIR API/Azure FHIR 开源与服务总线结合使用的详细信息?

node.js - NodeJS : Socket. IO:Websocket 请求显示状态为已完成,而不是预期的 101

azure - 如何在azure devops中通过Rest API获取测试的通过百分比

msbuild - TFS 2010 构建期间出现未知错误

c++ - 在 opencv_core310.dll 中使用 findContours 函数时,OpenCV 抛出未处理的异常

visual-studio - 如何克隆 visual studio 社区

visual-studio - 类似于 Visual Studio 单元测试中的 NUnit TestCaseSource

visual-studio - 您如何知道 Nuget 包是否已签名

tfsbuild - 删除构建记录时是否应该删除与构建记录关联的工件?

TFS 2015 及更高版本 - 标记代理