Best practices for multiple projects?
Moderator: SourceGear
Best practices for multiple projects?
I'm making the move from a single-developer environment to a larger team, and I'm trying to figure out how to set up my repositories -- any help would be much appreciated!
I'm using the current version of Vault, with VS 2005 integration.
The questions are:
- one repository for everything, or several? can you have more than one project in a repository? more than one solution? should you?
- if not everything is in the same repository and/or solution, how do I deal with references? Right now, it's a big mess.
Here's what I have:
A VB.NET class library "utils_1.dll"
A VB.NET class library, "utils_2.dll"
3 websites. All reference utils_1.dll, one references utils_2.dll. (There's a Web Deployment Project for each of these -- but this only needs to exist on the machine that's doing the final builds.)
2 windows applications. Both reference utils_1.dll, one references utils_2.dll
Both the websites and the applications reference some of the Microsoft Data-Access Application Block dll's. (I don't have the source code for these; binaries only.)
What's the best way to set this all up so that we're not wrestling with the references?
Thanks in advance...
I'm using the current version of Vault, with VS 2005 integration.
The questions are:
- one repository for everything, or several? can you have more than one project in a repository? more than one solution? should you?
- if not everything is in the same repository and/or solution, how do I deal with references? Right now, it's a big mess.
Here's what I have:
A VB.NET class library "utils_1.dll"
A VB.NET class library, "utils_2.dll"
3 websites. All reference utils_1.dll, one references utils_2.dll. (There's a Web Deployment Project for each of these -- but this only needs to exist on the machine that's doing the final builds.)
2 windows applications. Both reference utils_1.dll, one references utils_2.dll
Both the websites and the applications reference some of the Microsoft Data-Access Application Block dll's. (I don't have the source code for these; binaries only.)
What's the best way to set this all up so that we're not wrestling with the references?
Thanks in advance...
You can have more than one project per repository. If you are sharing or re-using dependent files and references in different projects, they should be in the same repository, since you can't interact across repositories.
Details here:
http://support.sourcegear.com/viewtopic.php?p=5183
Details here:
http://support.sourcegear.com/viewtopic.php?p=5183
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Multiple solutions in one repository?
Thanks, Linda. So it sounds like it's 50/50 -- you suggested keeping everything in one repository, and the article you linked to makes some good arguments for using multiple repositories.
Can I have multiple VS solutions in one repository? AFAIK, I can't have both windows forms apps and web applications in the same solution.
Can I have multiple VS solutions in one repository? AFAIK, I can't have both windows forms apps and web applications in the same solution.
Yes, you can have more than one VS solution in a repository.
My suggestion was to use the same repository for projects that are sharing the same files or other resources.
If every project stands alone, then you can use a repository for each project. You can put multiple projects in one repository. What you don't want to do is put different parts of a project in different repositories.
My suggestion was to use the same repository for projects that are sharing the same files or other resources.
If every project stands alone, then you can use a repository for each project. You can put multiple projects in one repository. What you don't want to do is put different parts of a project in different repositories.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Binding one solution to multiple repositories.
In the 4.x version of the Vault can one bind multiple projects within a solution to multiple repositories?
I've searched through here and found no definitive answer, and don't see it on the latest fix list. I was hoping the new VS.NET 2005 client may address this issue, however.
In our scenario, we have database projects, .NET code, and SQL Reporting, etc. in different repositories. We like to have our .NET project code as various projects within a solution, and then have the associated database projects also in the solution. However, because of the issue of going across repositories we haven't been able to do this since we went to Vault.
As we're considering upgrading from 3.x to 4.x it'd be useful to know what the status of this is.
Thank you,
Aaron
I've searched through here and found no definitive answer, and don't see it on the latest fix list. I was hoping the new VS.NET 2005 client may address this issue, however.
In our scenario, we have database projects, .NET code, and SQL Reporting, etc. in different repositories. We like to have our .NET project code as various projects within a solution, and then have the associated database projects also in the solution. However, because of the issue of going across repositories we haven't been able to do this since we went to Vault.
As we're considering upgrading from 3.x to 4.x it'd be useful to know what the status of this is.
Thank you,
Aaron