具有相同 GUID 的 Windows 手机应用程序 - 从一个应用程序创建更多应用程序 [英] Windows phone apps with same GUID - Creating more apps from one single app

查看:31
本文介绍了具有相同 GUID 的 Windows 手机应用程序 - 从一个应用程序创建更多应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个 Windows Phone 7 应用程序.我复制粘贴同一个应用程序 10 次以创建 10 个不同的应用程序,因为这 10 个应用程序中唯一的区别是图像.但是现在我无法在模拟器上安装 2 个应用程序,因为它们具有相同的 GUID.我尝试使用 GUID 生成器工具 并替换了 WMAppManifest.xml 文件中的 product id 以及 GUID程序集信息新生成的 GUID,但是一旦我重建解决方案,它就会回到相同的旧 GUID 并仍然替换其他已使用相同 GUID 安装的应用程序.谁能帮助我为什么会发生这种情况?我错过了什么吗?

I had made a Windows Phone 7 application. I copy pasted that same application 10 times to create 10 different applications, as the only difference in those 10 apps were the images. But now I cannot install 2 applications on emulator as they have same GUID. I tried using the GUID generator tool and replaced the product id in WMAppManifest.xml file and also the GUID in Assembly Information with the new generated GUID, but as soon as I Rebuild the solution, it goes back to the same old GUID and still replaces other app already installed with same GUID. Can anyone help me why is this happening? Am I missing something?

推荐答案

我终于搞定了!!它可能会帮助像我一样被卡住的人.

I got it working finally!! It might help somebody who might be stuck just like me.

我犯的错误是我在大写中输入了该工具生成的GUID,而必须将其放入小写"中.Visual Studio 2012 中的 GUID 生成器工具会生成类似如下的 GUID:AAB123-xxxx-xxxx-xxxxxxx",而 WMAppManifest.xml 文件采用的是:aab123-xxxx-xxxx-xxxxxxx".

The mistake I was doing was I was entering the GUID generated by the tool in UpperCase while it has to be put in "LowerCase". The GUID Generator tool in Visual Studio 2012 generates a GUID something like this: "AAB123-xxxx-xxxx-xxxxxxx" while what the WMAppManifest.xml file takes is: "aab123-xxxx-xxxx-xxxxxxx".

因此更改任何项目的 GUID 的步骤如下:

So the steps to change GUID of any project is as follows:

  1. 转到www.guidgen.com
  2. 复制 GUID.
  3. 打开装配信息并将其粘贴到 GUID 字段中(仅限小写).
  4. 打开 WMAppManifest.xml 文件并将其再次粘贴到 productID 字段中(再次仅小写)
  5. 重新构建和部署解决方案.

这篇关于具有相同 GUID 的 Windows 手机应用程序 - 从一个应用程序创建更多应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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