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

Different AndroidManifest.xml based on Configuration

$
0
0

I am trying to setup a simple project that swaps out the AndroidManifest.xml file based on the active configuration (Debug, Ad-Hoc, Release). I've seen this question posted a few times, but I haven't found a solution that seems to work.

According to the documentation, you can use the AndroidManifest xml element in the csproj file to determine which file to merge into the final file; however, I can't seem to get it to work conditionally (it always uses the default element).

Does the AndroidManifest attribute work conditionally? If so, could someone please post a simple snippet that actually works? I am using > Xamarin.Android 6 so it's supported.

Thank you.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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