How can I get a disconnected project back into sourcesafe?
Can anyone tell me how to "reconnect" a project to Sourcesafe?
I know what I did is unconventional, and not the proper way to do things, I just need to know how to get my latest changes back in.
I have a project which already has some history in sourcesafe.
I did a "Get Latest Version" from sourcesafe and then took that version I got and disconnected it from SS.
I made a bunch of changes to it, and now I want to add this back into sourcesafe.
I tried going into Visual Studio and reconnecting it, but then SS doesn't show it as checked out, so I cannot check it in.
How can I get the latest version of my disconnected project back into sourcesafe, without losing the history that already exists in sourcesafe for this project.
Thanks
答案
- You should be able to simply rebind to VSS, then check out the entire solution recursively.
"I tried going into Visual Studio and reconnecting"
I'm not sure how you did the "disconnect" and how you tried reconnecting.
If by "disconnect" you mean Unbind/Remove source control integration completely for that project, the right way to "reconnect" is to open the solution in Visual Studio (it will be uncontrolled), open the File/SourceControl/ChangeSourceControl dialog and use the Bind button the dialog's toolbar to bind the projects in the correct existent location in the VSS database.
If by "disconnect" you mean you use the "Work disconnected" button in ChangeSourceControl, you should be able to reconnect the solution using the same ChangeSourceControl dialog and the "Connect" button. When you ok the ChangeScc dialog VS will prompt to checkout the files that you modified locally since you disconnected the solution. The recommended way is to let VS checkout those files. You can later checkin your changes back to VSS.
Alin
全部回复
- You should be able to simply rebind to VSS, then check out the entire solution recursively.
"I tried going into Visual Studio and reconnecting"
I'm not sure how you did the "disconnect" and how you tried reconnecting.
If by "disconnect" you mean Unbind/Remove source control integration completely for that project, the right way to "reconnect" is to open the solution in Visual Studio (it will be uncontrolled), open the File/SourceControl/ChangeSourceControl dialog and use the Bind button the dialog's toolbar to bind the projects in the correct existent location in the VSS database.
If by "disconnect" you mean you use the "Work disconnected" button in ChangeSourceControl, you should be able to reconnect the solution using the same ChangeSourceControl dialog and the "Connect" button. When you ok the ChangeScc dialog VS will prompt to checkout the files that you modified locally since you disconnected the solution. The recommended way is to let VS checkout those files. You can later checkin your changes back to VSS.
Alin
I had a similar problem, which I've now figured out, in Visual Studio 2008. (Also working with TFS, but I don't think the issue I had is specific to TFS source control): I said "yes" when the project asked if I wanted to open disconnected from source control. It turns out Visual Studio 2008 has a new feature that allows you to take your solution offline, then when you put it online again, it prompts to check out any files you've touched offline. The way to reconnect is to right click the solution file and choose the option to go back online.
I didn't know this, and instead tried to go back online the old way: tried opening File / SourceControl / ChangeSourceControl dialog. I got the following message and said yes, (which turned out to be a mistake):
"The current solution is associated with source control but is offline. Would you like to completely disassociate the solution from source control?".
After that, I was able to go again to File / SourceControl / ChangeSourceControl and Bind the projects to source control there (as described in the post above). --------- BUT --------- when I closed Visual Studio and reopened it, even if I was on the network, the same thing happened again - instead of defaulting to connected mode, it defaulted to disconnected mode, and the only way to connect was to go through the whole source control re-binding every time I open the solution.
I did not find a way to fix from that point, but once I deleted the whole project from my hard drive and did a new "Get Specific Version" from TFS with "overwrite files that are not checked out" checked, the newly downloaded project was okay (it did NOT work to just Get Specific Version without first deleting the project from my hard drive).
Also, in the Output window throughout all this, even when I was on the network, it said the following - which was correct in saying the solution was offline, but incorrect in saying the Team Foundation Server was offline:
This solution is offline. [Team Foundation Server: http://<myserver'sname>/]
The solution is offline because its associated Team Foundation Server is offline.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- RiskSW, please post in the TFS forum.
Hello,
My problem is some wt similar.
But wt makes it different from urs is that in the File Menu the source Control menu cannot be seen.So I cant even try to bind.While opening the project it throws the following error.
The VSS is installed . And I m able to work with the VSS in unbound mode.....
The project appears to be under source control, but no source control provider is installed on this computer. Source control integration will be disabled for this project.
Can any one please help
Thanks and Regards
Pooja
Pooja, your VSS is most likely incorrectly/incomplete installed or you may have a VS version that doesn't support scci.
Try "regsvr32 ssscc.dll" or run ssint.exe (if you have VSS6), close and reopen VS to pick up the changes.
If that doesn't fix it, open a new thread and give more details - VS version and flavor, VSS version, etc. Different behavior means most likely different problem and different answer.
- RiskSWDeveloper_WorkEmail,
Your explanation helped me a lot, I was about to do that same mistake you did thanks for sharing.
MosaliR - I have always considered this to be a bug.....when you open a project under source control, and for some reason (network outage - whatever) you can't open your project in source control, there no way to simply say - ok, cancel - stop - don't do anything. The dialog doesn't give you the opportunity of just getting out. I have decided that the least troublesome option is saying 'work offline' and then reconnecting the next time as stated about from the the 'file/source contro/change source control' dialog.
Won't someone please ask the developers to add a 'never mind' button to that dialog?

