成员Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider的类型无法解析

时间:2020-01-02 17:46:59

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

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

错误ASPRUNTIME:成员'Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProviderException,Microsoft.Azure.Services.AppAuthentication,Version = 1.3.1.0的类型未解析

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

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

原来是nuget软件包中有关预编译的错误。将PrecompileBeforePublish设置为False可以解决此问题。

相关问题