问题描述
我们正在使用 Azure DevOps 来构建我们的 Xamarin Forms 移动应用.这几个星期以来一直没有任何问题.出于某种原因,我现在在构建 iOS 项目时收到以下错误:
We're using Azure DevOps to build our Xamarin Forms mobile app. This has been working without any problems for weeks now. For some reason I am now getting the following error when we build the iOS project:
MT2002:无法解析来自Xamarin.iOS,版本=0.0.0.0,Culture=neutral,PublicKeyToken=84e04ff9cfb79065"的AuthenticationServices.ASWebAuthenticationSession"引用
Android 和共享项目运行良好.这只是iOS项目的问题.
The Android and shared project are working perfectly. This is only a problem with the iOS project.
我没有以任何方式更改或更新 Xamarin.iOS,因此无法理解为什么我现在收到此错误.
I haven't changed or updated Xamarin.iOS in any way whatsoever, so cannot understand why I am now getting this error.
我正在使用 Visual Studio 2017 15.8.1 如果这有什么不同的话.
I am using Visual Studio 2017 15.8.1 if that makes any difference.
我怀疑在共享项目中添加对 Microsoft.Identity.Client 预览的引用后首先发生错误.Azure DevOps 上的此参考和 Xamarin.iOS 是否存在问题?
I suspect the error first occurred after adding a reference to Microsoft.Identity.Client preview in the shared project. Is there an issue with this reference and Xamarin.iOS on Azure DevOps?
推荐答案
我遇到了同样的问题,不得不降级到 2.1.0-preview 版.2.2.0、2.2.1 和 2.3.0 给出相同的错误.
I had the same issues, and had to downgrade to version 2.1.0-preview.2.2.0, 2.2.1 and 2.3.0 give the same error.
这篇关于错误:无法解析“AuthenticationServices.ASWebAuthenticationSession"来自“Xamarin.iOS"的参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!