Problem with sharing projects across solutions

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

rwallacej
Posts: 8
Joined: Thu Jun 24, 2010 6:48 am

Re: Problem with sharing projects across solutions

Post by rwallacej » Fri Jun 25, 2010 10:38 am

I am loading using Vault


Here's order of events

1.Load Main Solution (using VS--Source control menu) - Successful
2.Add Shared solution (using VS, Add Item) - Successful
3.Save Solution. Close solution - successful
4.Restart Visual Studio
5.Load Main Solution (using VS--Source control menu, as in step 1.) - Unsuccessful.
( the Solution loads with 4 projects, but an error that can't open the one added in step 2.)

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Problem with sharing projects across solutions

Post by lbauer » Fri Jun 25, 2010 3:16 pm

I'm still not clear about what you mean by "loading." Are you using File->Source Control->Open from Vault? You shouldn't have to do this again once you've added the shared project and saved the solution and checked it in. You should just be able to open the solution file from disk or use File->Open in Visual Studio.

There are a lot of little details that can make a difference. I'd suggest we schedule a remote assist session where I can take a closer look. I'm available Monday afternoon , and I'm in the Central Daylight Time zone. I'll contact you via our Help system and we can set up a convenient time.
Linda Bauer
SourceGear
Technical Support Manager

rwallacej
Posts: 8
Joined: Thu Jun 24, 2010 6:48 am

Re: Problem with sharing projects across solutions

Post by rwallacej » Sat Jun 26, 2010 3:06 am

Yes I am using File->Source Control->Open from Vault
(tried using File--Open project now too, then it adds my main project to the shared one)

A web session would be good please. I am in BST (United Kingdom). Note that this is not GMT

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Problem with sharing projects across solutions

Post by lbauer » Mon Jun 28, 2010 12:30 pm

We did an online session and determined part of the problem was that projects were in different repositories. The user is currently moving all projects into the same repository as a first step.
Linda Bauer
SourceGear
Technical Support Manager

clabough
Posts: 27
Joined: Thu Sep 15, 2005 4:55 pm

Re: Problem with sharing projects across solutions

Post by clabough » Mon Jun 27, 2011 11:25 am

I see some past posts about people wanting to share a common project across multiple repositories. It has been said that they could all be moved into one common repository, but it seems counter-intuitive to move multiple (or all) unrelated solutions into one repository just to be able to share a common utility project. Has this been placed on the list as a feature enhancement yet? I'm using 5.1.1.19215 Standard.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Problem with sharing projects across solutions

Post by Beth » Mon Jun 27, 2011 1:00 pm

clabough: Are you suggesting sharing across repositories? If so, are you working with Vault through Visual Studio, or are you using it separately from VS?
Beth Kieler
SourceGear Technical Support

clabough
Posts: 27
Joined: Thu Sep 15, 2005 4:55 pm

Re: Problem with sharing projects across solutions

Post by clabough » Thu Jul 07, 2011 4:50 pm

Yes, say I have the following structure:

Project Alpha Repository
Project Beta Repository
Utility Project Repository

I'd like to be able to have the Utility Project referenced in both Alpha and Beta solutions (and any others that will utilize the Utility Project) and not have to move to this structure:

Global Repository
- Project Alpha branch
- Project Beta branch
- Utility Project branch

I'm using Visual Studio enhanced client. 5.1.1.19215

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Problem with sharing projects across solutions

Post by lbauer » Fri Jul 08, 2011 7:31 am

In general, Vault IDE integration doesn't support solutions with projects in different repositories.

You might be able to accomplish this structure if you don't use integration -- do your source control functions to update working folders and checkin with the Vault GUI Client, and modify files with Visual Studio.

Another possibility that we can test out is to keep the solution file out of source control. The solution file has information about the projects, and if the projects are in different repositories, the projects probably won't load properly.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply