Same project in multiple solutions - changes in one not detected in other

I have a problem with two VS 2005/SP1 solutions that share a project. All code is in VSS 6.04d and they are VB projects. One solution has a Windows Forms project and a Class Library project. The other solution is setup/deployment for the first solution. If I have both solutions open and make a source change in one solution and then switch to the other solution, I expect to see a dialog asking me to reload the source file from disk. That's what I want to happen (and in other shared project situations that does occur). But in this case the second solution is unaware of the change and I end up having to check in the source from the first project for the second project to get the changes.

Thanks in advance for your suggestions.

-John

[759 byte] By [JohnnieK] at [2007-12-29]
# 1

Hi John,

Can you please provide more information on the solution configuration you have? Are there 2 copies of the projects on disk referenced by the two solutions? Did you download the two solutions from VSS to two different locations initially? Changes to a source file should be reflected in both the solutions ff there is a single copy for the files on disk. Also will it possible for you to send me the VSS Hierarchy for the two solutions? You can get the VSS information through VSS Explorer.

Thanks,

Nitin

NitinGuptaMSFT at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 2

Here's what our layout in VSS looks like. We use the same structure on our hard drives, where "C:\VSS" is the root directory of our source that maps to "$" in VSS. There is only one copy of the source for each item source controled.

$

/Solution1

/DLLProject1

/EXEProject 1

/Solution2

/DLLProject2

/EXEProject2

/Solution3

/DLLProject3

/EXEProject3

/CommonDLL

MyClass.vb

Solution1, Solution2 and Solution3 all include the CommonDLL project. DLLProject1, DLLProject2 and DLLProject3 all have project references to CommonDLL. Let's say that I have all 3 solutions open. In Solution1 I check out MyClass.vb and make a change. I then switch to Solution2 and a dialog appears: "Do you want to reload changes to MyClass.vb?" I say Yes and all is well. But when I switch to Solution3 I am not prompted about reloading and my change is not visible in the source window.

I hope this gives you the info you requested. Let me know if I need to explain further.

JohnnieK at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 3

I am unable to reproduce the problem on my machine. Can you please check the Full Path to the file MyClass.vb in each of the 3 solutions? You can see the Full Path to the file in the Properties window after selecting the file node.

Thanks,

Nitin

NitinGuptaMSFT at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...

Visual Studio

Site Classified