构建Xamarin.iOS项目时,Azure DevOps管道失败

问题描述 投票:0回答:1

我有一个在Azure DevOps中使用YAML的管道。我的YAML文件中有以下任务:

- task: XamariniOS@2
  inputs:
    solutionFile: '**/*iOS.csproj'
    configuration: 'Release'
    packageApp: false
    runNugetRestore: false

管道运行时,我收到以下错误:

ASWebAuthenticationSessionBrowser .cs(6,7): error CS0246: The type or namespace name 'AuthenticationServices' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.158.0/work/1/s/AgentConnectMobile/AgentConnectMobile.iOS/AgentConnectMobile.iOS.csproj]
ASWebAuthenticationSessionBrowser .cs(14,9): error CS0246: The type or namespace name 'ASWebAuthenticationSession' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.158.0/work/1/s/AgentConnectMobile/AgentConnectMobile.iOS/AgentConnectMobile.iOS.csproj]
ASWebAuthenticationSessionBrowser .cs(49,72): error CS0246: The type or namespace name 'IASWebAuthenticationPresentationContextProviding' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.158.0/work/1/s/AgentConnectMobile/AgentConnectMobile.iOS/AgentConnectMobile.iOS.csproj]
ASWebAuthenticationSessionBrowser .cs(51,51): error CS0246: The type or namespace name 'ASWebAuthenticationSession' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.158.0/work/1/s/AgentConnectMobile/AgentConnectMobile.iOS/AgentConnectMobile.iOS.csproj]

我能够在Visual Studio中成功手动构建iOS项目。我试图删除并重新添加项目引用,但似乎没有帮助。

我的项目的设置如下:

enter image description here

我需要为Azure DevOps进行其他配置吗?

xamarin xamarin.ios azure-devops azure-pipelines azure-pipelines-build-task
1个回答
0
投票

我面临着同样的问题:(CoreCompile目标)->Services / ASWebAuthenticationSessionBrowser.cs(4,7):错误CS0246:找不到类型或名称空间名称“ AuthenticationServices”(您是否缺少using指令或程序集引用?)[/ Users / runner / runners / 2.160.0 /work/1/s/eWorker.Xamarin/eWorker.iOS/eWorker.iOS.csproj]Services / ASWebAuthenticationSessionBrowser.cs(12,9):错误CS0246:找不到类型或名称空间名称“ ASWebAuthenticationSession”(您是否缺少using指令或程序集引用?)[/ Users / runner / runners / 2.160.0 /work/1/s/eWorker.Xamarin/eWorker.iOS/eWorker.iOS.csproj]Services / ASWebAuthenticationSessionBrowser.cs(55,72):错误CS0246:找不到类型或名称空间名称“ IASWebAuthenticationPresentationContextProviding”(您是否缺少using指令或程序集引用?)[/ Users / runner / runners / 2.160.0 /work/1/s/eWorker.Xamarin/eWorker.iOS/eWorker.iOS.csproj]Services / ASWebAuthenticationSessionBrowser.cs(57,51):错误CS0246:找不到类型或名称空间名称“ ASWebAuthenticationSession”(您是否缺少using指令或程序集引用?)[/ Users / runner / runners / 2.160.0 /work/1/s/eWorker.Xamarin/eWorker.iOS/eWorker.iOS.csproj]

© www.soinside.com 2019 - 2024. All rights reserved.