Azure devops - Error : The value for PublishProfile is set to 'FileSystem'

Azure devops - Error : The value for PublishProfile is set to 'FileSystem'

我的 azure devops 构建在没有任何代码或构建更改的情况下开始失败。

VisualStudio Build步骤抛出如下错误

Error : The value for PublishProfile is set to 'FileSystem', expected to find the file at '...\FileSystem.pubxml' but it could not be found.

原来这是一个错误。

https://developercommunity.visualstudio.com/content/problem/754048/error-the-value-for-publishprofile-is-set-to-files.html

https://github.com/microsoft/azure-pipelines-image-generation/issues/1276

我现在可以通过将构建主机映像从 windows-2019 更改为 vs2017-win2016

来解决这个问题

所以在我的 yaml 中

pool:
  vmImage: 'vs2017-win2016' #instead of window-2019