I am trying to setup a Azure Pipeline to build my Xamarin solution. The solution contains an Azure function project so I was trying to build by using project instead of solution. The Android project builds perfectly fine but the iOS project fails with error. 'The OutputPath property is not set for project 'MyProject.iOS.csproj'" There is a solution file but I build my android project from the project file without errors and wanted to do the iOS project the same way.
YAML for iOS build task:
- task: XamariniOS@2
inputs:
solutionFile: '**/*iOS.csproj'
configuration: '$(buildConfiguration)'
buildForSimulator: true
packageApp: false
Error from Azure build using system.debug=true.
Build started 6/10/2021 1:56:58 PM.
Project "/Users/runner/work/1/s/MyProject/MyProject.iOS/MyProject.iOS.csproj" on node 1 (default targets). /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(793,5): error : The OutputPath property is not set for project 'MyProject.iOS.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='$(buildConfiguration)' Platform='iPhoneSimulator'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [/Users/runner/work/1/s/MyProject/MyProject.iOS/MyProject.iOS.csproj] Done Building Project "/Users/runner/work/1/s/MyProject/MyProject.iOS/MyProject.iOS.csproj" (default targets) -- FAILED.
Build FAILED.
Can someone help with why I am getting this error with iOS?
Update: Do I need to add a second solution file that only has everything that iOS needs so that Azure pipeline will work?
Orgbrat