如何在Xamarin.Forms中更改应用程序名称?

如何在Xamarin.Forms中更改应用程序名称?

问题描述:

我已经开发了Xamarin.Forms应用程序,最初将项目命名为"modelapp".现在,当发布Android应用程序时,我将"MainActivity.cs"文件中的应用程序名称更改为"MyBooks".

I have developed an Xamarin.Forms app and I initially named the project "modelapp". Now when releasing the Android app I changed the name of the app in "MainActivity.cs" file to "MyBooks".

但是在安装apk文件时,它仍显示为您要安装modelapp吗?"甚至在应用崩溃时,它也会显示为"modelapp.android崩溃"

But when installing the apk file it is still displaying as "do you want to install modelapp?" And even when the app is crashing it is displayed as "modelapp.android is crashing"

我还需要在哪里将应用程序名称更改为"MyBooks",以便使其在任何地方都显示为"MyBooks"?

Where else do I need to change the app name to "MyBooks" so it everywhere gets displayed as "MyBooks"?

Android

1右键单击 Android项目,然后选择属性,然后从其中选择 Android Manifest 并更改您的应用程序名称

1 Right click on Android project and select properties from there select Android Manifest and change your Application name

2更改您的 MainActivity 标签文本

iOS

在您的iOS项目搜索文件 info.plist 中,并使用 iOS清单编辑器将其打开,然后选择 Application 标签并在此处更改应用名称

In your iOS project search file info.plist and open it with iOS Manifest Editor and select Application tab and change application name here

注意:您也可以更改包裹名称和捆绑包标识符名称

Note: You can change your package name and Bundle identifier name as well