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

编程入门 行业动态 更新时间:2024-10-27 14:21:26
本文介绍了如何更改 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 中的应用程序名称?

本文发布于:2023-10-07 01:32:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1468061.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   如何更改   名称   Forms   Xamarin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!