Microsoft KB Archive/318109

= PRB: Changes Are Not Saved When You Bind Solution to Another Source Control Project =

Article ID: 318109

Article Last Modified on 2/23/2007

-

APPLIES TO

 Microsoft Visual SourceSafe 6.0C, when used with:  Microsoft Visual Studio .NET 2002 Professional Edition

 Microsoft Visual Studio .NET 2002 Enterprise Architect

 Microsoft Visual Studio .NET 2002 Enterprise Developer 

-

<div class="notice_section">

This article was previously published under Q318109

<div class="symptoms_section">

SYMPTOMS
When you change the binding information for a source control project that has been branched to a newly created branched location, your local files may be overwritten with the file version that the source code control provider stores.

<div class="cause_section">

CAUSE
Visual Studio .NET compares the files in your local working folder to those that your source code control provider stores. This problem occurs because Visual Studio .NET replaces any files that are not the same as the files that the source code control provider stores.

<div class="resolution_section">

RESOLUTION
To resolve this problem, make sure that you back up your local working folder before you bind to a new location.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
<ol> User 1 creates a Microsoft Visual Basic .NET project and then adds a solution and a project to source code control.</li> In Visual SourceSafe Explorer, someone shares and branches the project.</li> User 1 edits the solution item and then checks in the solution.</li> User 2 clicks Source Control on the File menu and then clicks Create project from Source Control to enlist to the new location.</li> User 2 makes conflicting edits to the solution item and then checks in the solution.</li> User 1 unbinds the solution from the original location, closes the dialog box, clicks Source Control on the File menu, and then clicks Change Source Control to rebind to the new location. User 1 receives the following error message:

The following items must be modified to change the source control bindings. They cannot be checked out from source control, so the items' attributes will be overridden. You can use the Get Latest Version on the affected items to merge your changes. However you should check with your system administrator before doing so.

Some items at the new binding have different contents on your local disk than in the newly bound database. You should consult your administrator. The Get Latest Version command may be able to resolve these issues, but you should exercise caution as this may cause you to lose any changes you have made.

</li></ol>

<div class="references_section">