Issue
I am working with Xamarin.Forms in Visual Studio For Mac and I have created a very basic Xamarin.Forms application.
I have checked Android and iOS targets. I got 3 projects:
- A common project
- An iOS specific project
- And a Droid specific project.
The Android specific application has a ".Droid" suffix in application name.
So I decided to right click on droid project, and to remove this suffix in "Assembly name" field.
I got an exception where I run the app (at startup). If I change Assembly name again to put the droid suffix, it does not work anymore.
You can try this with a blank project with the latest version of Xamarin.Forms.
I do not understand why?
Solution
The problem is that you are changing the assembly name of your application, not the name.
If you want to change the application name in Xamarin.Forms Android you have two options:
- Go to your
MainActivityand change theLabelproperty:
- Or remove the
Labelof theMainActivityand add the name in theManifest.xmlvia UI or code:
On iOS you must change it in Info.plist.
Answered By - jzeferino




0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.