Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We use VB2008 and 2010 (and going to 2012)for our programs.

VS let you open the same solution on the same PC multiple times. We do this by mistake and are now editing the same solution is different instances of VS which is we do not want to do.

VS6 would not allow this.

How can we get VS.Net to not allow it or at least get a message.

Thanks
Posted

I don't think you can. But what Visual Studio does is that it notifies you if any file loaded into current project is editing outside the opened instance.
 
Share this answer
 
Comments
QuickBooksDev 9-Aug-13 15:34pm    
Thanks but that I knew.

I didn't think you could but had to ask.
Sergey Alexandrovich Kryukov 9-Aug-13 15:45pm    
Okay, I think you are right, a 5.

But — this is not the most important thing. Most important thing is that loading the same solution is fundamentally important feature. Not having such opportunity would be a blocker problem, so it's just silly to want this limitation.

Please see my answer where I explain why.

—SA
QuickBooksDev 12-Aug-13 16:36pm    
Sergey I do not agree with you. A warning message would be all that is needed. On some busy days with many interuptions I come back from lunch or something and see the same project opened twice. Which has the latest updates??? You don't get the 'modified outside ...' message unless you save one and then click on the other. I do sometimes open the same project twice on purpose but a warning message would not be a problem.
You never need it. What's a big deal if accidentally you do this?

But instead, Visual Studio gives you full freedom in opening different or the same solution in parallel. In some cases, this can be a critically important feature. One reason is debugging. You can have a solution with more than one application, and the application communicates during runtime. How to debug is? One of the best ways is: open the same solution twice and run two different applications at the same time under the debugger. If it was impossible, debugging would be much, much more difficult.

There are even cases when you want to debug two instances of the same exact application at the same time, because it plays the different roles and one instance communicate to another one, one the same machine or a different one on a network. How would you debug it?

So, what you want would be a great harm to you, not anything useful.

—SA
 
Share this answer
 
v2
Comments
Manas Bhardwaj 9-Aug-13 16:30pm    
Yup +5!
Sergey Alexandrovich Kryukov 9-Aug-13 16:48pm    
Thank you, Manas.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900