我有一个在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项目。我尝试删除并重新添加项目引用,但似乎没有帮助。
我的项目的设置如下:
我需要为Azure DevOps配置不同的内容吗?
答案 0 :(得分: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]