Windows phone apps with same GUID - Creating more apps from one single app

一笑奈何 提交于 2019-12-06 01:49:46

问题


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?


回答1:


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

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".

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

  1. Go to www.guidgen.com
  2. Copy the GUID.
  3. Open Assembly Information and paste it in the GUID field (in lowercase only).
  4. Open WMAppManifest.xml file and paste it again in the productID field (again in lowercase only)
  5. Rebuild and deploy the solution.



回答2:


To avoid the GUID issue copy the projects following next steps:

  1. Copy the project folder
  2. Change the name to the .csproj file
  3. Add the copyed project to the solution: Right click on solution -> Add -> Existing project...
  4. Open the WMAppManifest.xml file and replace the Product ID (you can use a generator)

This works for me. If I deploy multiple projects to the phone I can see all of them ther, they're not replaced.



来源:https://stackoverflow.com/questions/17686361/windows-phone-apps-with-same-guid-creating-more-apps-from-one-single-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!