azure-pipelines-tasks: Xamarin.Android build task fails
I’ve added the Xamarin.Android build task to my VSO Build, using the Hosted build agent. When VSO runs the task, it fails with the error message:
2015-08-20T16:39:01.2412835Z 1>CSC : error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll' and 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'. Remove one of the duplicate references. [C:\a\a815ee8d\phoneword\PhonewordAndroid\PhonewordAndroid.csproj]
I don’t have this problem when I build my Xamarin.Android project locally via Visual Studio 2015 or using the command line.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 51 (24 by maintainers)
Same issue here… Changing to 6 solved it, but that’s definitely not optimal.
I can confirm - build is green if compile target is Android 6. Would prefer not to have to change that just to get my CI to work though 😐
@thechrisjohnson is updating it today
https://www.visualstudio.com/en-us/docs/build/concepts/agents/hosted has a “Software” section that is kept up to date with all the software installed on the hosted build VMs.
Why can’t the tools on the hosted build VMs be kept up to date with Xamarin releases? Xamarin is part of Microsoft for a year now… Part of their release it should be updating the hosted build VMs.