Forum Xamarin.Android

Change the app name and package name based on conditional compilation symbols

I am using Visual studio to develop xamarin forms app. In the droid project, the Androidmanifest contains the App name, package name and the icon to be used. In the xml file, is there any way that the conditional compilation symbols be accessed, so that I can change the name, icon, etc of the app by just changing the compilation symbol before the build?

In code it is possible to use #if and other directives specified, but not in the xml code.

If changing programmatically is also possible, then it is helpful. (If it can be changed in the MainActivity , it is helpful)

Thanks in advance.


Sign In or Register to comment.