如何更改 Xamarin.Forms 中的应用程序名称? [英] How to change the App name in Xamarin.Forms?

查看:37
本文介绍了如何更改 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 is crashing"

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 清单 并更改您的应用程序名称

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

2 更改您的 MainActivity 标签文本

2 Change your MainActivity Label Text

iOS

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

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

这篇关于如何更改 Xamarin.Forms 中的应用程序名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆