YadirHB
YadirHB

Reputation: 168

Exclude Android build while building Xmarin.Forms sln

Currently I installed a Mac pipeline agent without android tools, because I intended to use it for iOS only. My question is how to filter the Xamarin.Form solution not to build Android because it fails on this environment.

I'm wondering if there is a way for exclude the android part in the Build Xamarin azure task. I'm asking a way of doing it through: msbuild /t:restore;build /avoid:Android.csproj;Android.Binding.csproj or something alike...

Upvotes: 0

Views: 245

Answers (1)

Jason
Jason

Reputation: 89102

in VS Mac (should be similar, but possibly with different menu paths, on PC) select Solution --> Options in the Solution Explorer. Under Build/Configurations create a new config (or copy an existing one). Then select Configuration Mappings, select the config you just created, and Disable the projects that you want to exclude.

When setting up your build pipeline you should have to specify which configuration you want to use.

Upvotes: 1

Related Questions