azure - 未解析成员 Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider 的类型

标签 azure azure-devops azure-pipelines-release-pipeline

我正在发布一个项目,其中包含 Microsoft.Azure.Services.AppAuthentication 的 nuget 包。我已验证该包已在发布的“Nuget 恢复”部分中恢复并安装。当它开始构建时,我收到错误

Error ASPRUNTIME: Type is not resolved for member 'Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProviderException,Microsoft.Azure.Services.AppAuthentication, Version=1.3.1.0

奇怪的是我们能够通过 Visual Studio 部署我们的项目,没有任何问题。这仅发生在管道中。

最佳答案

可能与您在构建定义中使用的代理有关。尝试更改为其他的,它应该按预期工作。

关于azure - 未解析成员 Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider 的类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59567719/

相关文章:

Azure DevOps "Visual Studio Test"- 使用 "Rerun Failed Tests"时无法启用 "Override Parameters"

azure-devops - 阶段之间管道中的 VSTS 传递参数

Azure vnet 对等互连 : property "remoteAddressSpace" unclear

azure - AKS 连接到 Azure Database for MySQL 服务器时出现问题

.net - 从 VSTS 部署到我的域之外的 Azure Web App

Azure DevOps 变量组未在 Azure 函数配置中应用

azure - 如何通过 VSTS 将 Azure WebJob 和应用程序部署到同一应用程序服务?

azure - 如何在 Azure 上托管静态 HTML 并使其仅可供组织中经过身份验证的用户使用?

azure - 使用 Azure CLI 将文件夹从 PC 上传到存储帐户容器

azure - azure 管道中定义的参数的继承