Answered Single instance - duplicated

DavyEFC

Well-known member
Joined
Dec 17, 2010
Messages
51
Programming Experience
5-10
I wrote app1 that had 'make single instance application' checked in the app properties. All good there.
I then needed app2, which is an admin version of app1, and the code wasn't going to be substantially different to app1 so i took a copy of it and did the renaming things (the folder, subfolder, in the .sln file etc.) and made my changes. All good there too. However i can't run both at the same time because of the single instance thing. I though that renaming the second app would let me run it as its essentially a different app.
So, my question is, what do i need to change in order for the system to see it as two different apps?
In the .sln file i see:
Project("{ long hex number }") = ...
Is it something to do with this number? (same in both apps)
 
Last edited:

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,603
Location
Norway
Programming Experience
10+
Open Application tab of project properties, click the 'Assembly information' button. It would appear that the GUID here is the instance ID that is used.
You can change it manually or generate one with Guid.NewGuid Method (System) | Microsoft Docs. There should also be a "Create Guid" in VS Tools menu that can be used.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,603
Location
Norway
Programming Experience
10+
I'm using that VS too, perhaps a configuration/installation thing?
 
Top Bottom