6

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?

Rishi Jasapara
  • 638
  • 9
  • 33
  • Have you done a search of the old GUID string to find out where else it might be defined? – Mark Ransom Jul 16 '13 at 20:38
  • AFAIK, it is there in the Assembly Info and WMAppManifest.xml file. Also a strange thing I noticed was the GUID and product ID in the XML file were different. – Rishi Jasapara Jul 16 '13 at 20:39
  • Sick people just trying to downvote! Maybe the problem never occurred for you, but I am GENUINELY STUCK ! – Rishi Jasapara Jul 18 '13 at 21:09
  • 3
    They probably downvoted because they thought the question wasn't complete. Kind of rude to do that though without offering a suggestion on how to make it better. – Mark Ransom Jul 18 '13 at 21:34
  • I have tried making the question as complete as possible. I don't think I missed out anything from the XML file to Assembly Info, nothing! – Rishi Jasapara Jul 18 '13 at 21:36

2 Answers2

7

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.
Rishi Jasapara
  • 638
  • 9
  • 33
1

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.

anderZubi
  • 6,414
  • 5
  • 37
  • 67