问题
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:
- Go to www.guidgen.com
- Copy the GUID.
- Open Assembly Information and paste it in the GUID field (in lowercase only).
- Open WMAppManifest.xml file and paste it again in the productID field (again in lowercase only)
- Rebuild and deploy the solution.
回答2:
To avoid the GUID issue copy the projects following next steps:
- Copy the project folder
- Change the name to the .csproj file
- Add the copyed project to the solution: Right click on solution -> Add -> Existing project...
- 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