简体   繁体   English

现有解决方案中的新Xamarin.Forms项目覆盖以前部署的应用程序C#

[英]New Xamarin.Forms project from existing solution overwrites previously deployed app C#

I have a Xamarin Forms solution with iOS and android projects. 我有一个包含iOS和Android项目的Xamarin Forms解决方案。 I deployed it on Android. 我在Android上部署了它。

Now, I created new solution and copied previous solutions' projects into the new solution. 现在,我创建了新的解决方案并将以前的解决方案项目复制到新的解决方案中

Basically I need new instance of an app that has the same code like previous one with different Name only. 基本上我需要一个具有相同代码的应用程序的新实例,就像前一个只有不同名称的代码一样。

However when I deploy new Solutions' android project it overwrites the original one. 但是,当我部署新的解决方案的android项目时,它会覆盖原始项目。

How can I clone projects in a way they are not treated as the same project? 如何以不被视为同一项目的方式克隆项目?

Change the application's package name in AndroidManifest.xml . AndroidManifest.xml更改应用程序的包名称。

For iOS, change the Bundle Identifier in info.plist 对于iOS,请更改info.plist的Bundle Identifier

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM