成员 Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider 的类型未解析
Type is not resolved for member Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider
我正在发布一个包含 Microsoft.Azure.Services.AppAuthentication 的 nuget 包的项目。我已确认此软件包已在发布的 'Nuget restore' 部分恢复并安装。当它开始构建时,我收到错误
Error ASPRUNTIME: Type is not resolved for member 'Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProviderException,Microsoft.Azure.Services.AppAuthentication, Version=1.3.1.0
奇怪的是我们能够通过 visual studio 毫无问题地部署我们的项目。这只发生在管道中。
可能与您在构建定义中使用的代理有关。尝试换一个不同的,它应该可以正常工作。
原来是 nuget 包中关于预编译的错误。将 PrecompileBeforePublish 设置为 False 修复了这个问题。
我正在发布一个包含 Microsoft.Azure.Services.AppAuthentication 的 nuget 包的项目。我已确认此软件包已在发布的 'Nuget restore' 部分恢复并安装。当它开始构建时,我收到错误
Error ASPRUNTIME: Type is not resolved for member 'Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProviderException,Microsoft.Azure.Services.AppAuthentication, Version=1.3.1.0
奇怪的是我们能够通过 visual studio 毫无问题地部署我们的项目。这只发生在管道中。
可能与您在构建定义中使用的代理有关。尝试换一个不同的,它应该可以正常工作。
原来是 nuget 包中关于预编译的错误。将 PrecompileBeforePublish 设置为 False 修复了这个问题。