Disable Android build - Xamarin.Forms

I’ve selected ios build only

However there seems to still be work on the Android part going on:

...
/usr/bin/java -Xmx3G -jar /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/26.0.2/lib/dx.jar --dex --no-strict --multi-dex 
Done Building Project "/Users/vagrant/git/Droid/Yoke.Droid.csproj" (default targets)
...

Hi @lengk, I’ll ask the tooling team to check this! :slight_smile:

Great. Let me know if it’s something on my end?

1 Like

Hi @lengk,
thanks for the question!

When xamarin-archive step builds your xamarin solution it calls two type of build commands: the first builds the solution to build shared resources and dependencies etc… , then it calls the platform specific build commands which generates the platform artifact (.ipa, .apk, etc…) files.

Using the Specify project types to build input of the step, you can control which platform specific commands should run and which not, but it does not have effect to the first build command against the solution file.

If you want to fully avoid building one platform’s project, please create a solution config+platform in your solution, which only maps to the projects which you want to build.

In this sample:

The solution’s Release configuration + Any CPU platform maps to every projects.

But in this example:

the same solution configuration + platform combination does not builds the Multiplatform.Droid project.

1 Like