错误:无法解析"AuthenticationServices.ASWebAuthenticationSession";来自"Xamarin.iOS"的参考 [英] Error: Failed to resolve "AuthenticationServices.ASWebAuthenticationSession" reference from "Xamarin.iOS

查看:156
本文介绍了错误:无法解析"AuthenticationServices.ASWebAuthenticationSession";来自"Xamarin.iOS"的参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 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,文化=中性,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"的参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆