Xamarin Android app not building in DevOps

Steven Marriott 0 Reputation points
2024-12-04T12:54:36.8166667+00:00

We have a Xamarin Android app that no longer builds in Azure DevOps. I know Xamarin is out of support https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin and we have parallel stream of work to migrate the codebase. What I don't understand is why build support has been removed which is now preventing us building the app?

This is the build failure point:

Build started 11/28/2024 2:36:15 PM.

Project "/Users/runner/work/1/s/e-DC.Android/e-DC.Android.csproj" on node 1 (PackageForAndroid target(s)).

/Users/runner/work/1/s/e-DC.Android/e-DC.Android.csproj(747,11): error MSB4226: The imported project "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Also, tried to find "Xamarin/Android/Xamarin.Android.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "/Library/Frameworks/Mono.framework/External/xbuild/" . These search paths are defined in "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/MSBuild.dll.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

Done Building Project "/Users/runner/work/1/s/e-DC.Android/e-DC.Android.csproj" (PackageForAndroid target(s)) -- FAILED.

Anyone know why the frameworks have been pulled from the build environments? Other than building locally, is there anything that can be done to get this working in a DevOps build pipeline?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,829 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.