Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working on a Visual Studio Project with multiple users?

I just wonder what the best approach is to have multiple users work on a Project in Visual Studio 2005 Professional.

We got a Solution with multiple Class Libraries, but when everyone opens the solution, we keep getting the "X was modified, Reload/Discard?" prompt all the time. Just opening one project is an obvious alternative, but I find it harder to use as you can't just see some of the other classes in other projects that way.

Are there any Guidelines for Team Development with VS2005 Pro?

Edit: Thanks. The current environment is a bit limited in the sense there is only 1 PC with RDP Connection, but that will change in the future. Marking the first answer as Accepted, but they are all good :)

like image 804
Michael Stum Avatar asked Dec 02 '22 08:12

Michael Stum


2 Answers

What you need is source control.

You should definitely not open the same files over the network on multiple machines. For one thing, Visual Studio has safeguards in place to prevent you from modifying certain files during a build, but it has none of that that will prevent others from modifying the same files over the network.

By setting up source control, each developer will have a separate copy of the files locally on his or her developer machine, and periodically communicate with the source control system to check in/commit changes. After that, other developers can ask for the latest updates when they're ready to retrieve them.

like image 52
Lasse V. Karlsen Avatar answered Dec 05 '22 13:12

Lasse V. Karlsen


Use source control to keep a central repository of all your code. Then each user checks out their own copy of the source code and works locally. Then submits only the code that changed.

https://en.wikipedia.org/wiki/Version_control

like image 30
Mark Ingram Avatar answered Dec 05 '22 13:12

Mark Ingram