Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top