Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Multiple build targets

$
0
0

Hi guys,

I need to make a codebase to build around 10 apps with different configurations. In Xcode we can just add new targets and configs and can load the config from plist associated with the target.
for example for baseURL for api calls we can just get the plist entry "baseURL"
for background color the same would apple, just call plist "BGColor"

in xamarin, I couldn't find any way to add new targets to do this. When I created a forms (Shared) solution, xamarin build 3 folders:

VSShared
VSShared.Droid
VSShared.iOS

does it mean I have to create new solution for each build that's going to get the shared code?
the ideal solution would enable me to share codes across 10 apps for each of android and iOS with total of 20 apps.

something like
Melbourne,
Sydney,
London,
Paris,
etc.

they all should get the same code but with different configuration for 'baseURL', 'BGColor', 'titleLabelText', etc etc etc.

If there are already tutorial to do just that, could anyone point me there please.

Many thanks :)

edit: Might be worth it to mention I'm using xamarin studio on a mac


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>