recreate GUID's in entire project

Ask general questions here.
mats
Certified Professional
Certified Professional
Posts: 23
Joined: Tue May 18, 2010 12:58 pm

recreate GUID's in entire project

Post by mats » Tue May 22, 2012 4:30 pm

I have copied a solution with one project 4 times. No I would like to have all projects in one solution, but all copied Recordings and TestSuite Items have the same GUID.

Is it possible to recreate all GUID's while adding an existing project?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: recreate GUID's in entire project

Post by Support Team » Wed May 23, 2012 9:27 am

Hi,
mats wrote: Is it possible to recreate all GUID's while adding an existing project?
There is no way to automatically recreate GUIDs for all items, but you can use the GUID structure to write a script which creates new GUIDs and replace the copied ones with your new created ones.

With
Guid my_guid = Guid.NewGuid();
you can create a new GUID and
my_guid.ToString()
will return the GUID as String.

Regards,
Tobias
Ranorex Team
.
Image