VS6 and VAULT
Moderator: SourceGear
VS6 and VAULT
We are a new user to this system. I need to take Vault and make it available through Visual Studio 6 so that we can check-in and check-out projects.
I have already selected the "use Vault as the default Source Safe" in the client settings.
Also, we already have all of the files and projects checked into Vault, so I will need to know what to do to check the projects in and out of Vault through Visual Studio 6.
Thanks,
Jim
I have already selected the "use Vault as the default Source Safe" in the client settings.
Also, we already have all of the files and projects checked into Vault, so I will need to know what to do to check the projects in and out of Vault through Visual Studio 6.
Thanks,
Jim
Jim Webster
In VB, under the Tools menu. You should see "SourceGear Vault."
Select SourceGear Vault->Create Project from SourceGear Vault. You'll be prompted to log in to the Vault server and choose a repository. If the project in already in the Vault repository, click on the folder in the tree that contains the project and Vault will retrieve that project and create the necessary source control bindings.
For additional information about IDE integration see this KB article:
http://support.sourcegear.com/viewtopic.php?t=776
It discusses VS.NET, but the basic principles apply to VB also.
Select SourceGear Vault->Create Project from SourceGear Vault. You'll be prompted to log in to the Vault server and choose a repository. If the project in already in the Vault repository, click on the folder in the tree that contains the project and Vault will retrieve that project and create the necessary source control bindings.
For additional information about IDE integration see this KB article:
http://support.sourcegear.com/viewtopic.php?t=776
It discusses VS.NET, but the basic principles apply to VB also.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Visual Studio
I do not have the option in tools in vb to do anything with Vault. That is the problem. (This is visual studio 6) How do I get this option to appear?
Jim Webster
I have projects created using VC++ 6 (infact i have 2 projects creating in a Workspace). I also face difficulty to add the solution/workspace into the Vault Server. When i check the server option, *.dsw extension is excluded. What does that means? As mentioned by jwebster, the option you mentioned cannot be found in the VC++ 6 IDE.
I could use more information. Are you unable to add a project to source control, or you can't open a project from source control?When i check the server option, *.dsw extension is excluded. What does that means? As mentioned by jwebster, the option you mentioned cannot be found in the VC++ 6 IDE.
What server option are you checking?
It would be helpful if you could provide specific steps to reproduce the problem.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
It is not the Server Options. It is Repository Options under Vault Admin Tool. At File Types group -> File Exclusions (ex., *.exe, *.dll): field.
It is not really i can't add the projects into the Vault Server. It is just that i do not know of a correct steps to do that. What i have done was add the Workspace (.dsw) (surprisingly it can be added in) - the dialog box list only one .dsw file, then add the projects (.dsp) - the dialog box also list only one .dsp file and then highlight all the source & header folders to add the files into the vault server. It is too manual for me.
Note: when i first added the project file (.dsp), the dialog box list the dsp file and all the source files. However, when i remove the project from Source Control & then try to add it back again, the dialog box shows only one dsp file.
When other user need to open the same project from a different PC, only one projects appear as under source code. The other project was not under source control. I would suspect it was due to the project was not added properly into the Vault Server in the first place.
It is not really i can't add the projects into the Vault Server. It is just that i do not know of a correct steps to do that. What i have done was add the Workspace (.dsw) (surprisingly it can be added in) - the dialog box list only one .dsw file, then add the projects (.dsp) - the dialog box also list only one .dsp file and then highlight all the source & header folders to add the files into the vault server. It is too manual for me.
Note: when i first added the project file (.dsp), the dialog box list the dsp file and all the source files. However, when i remove the project from Source Control & then try to add it back again, the dialog box shows only one dsp file.
When other user need to open the same project from a different PC, only one projects appear as under source code. The other project was not under source control. I would suspect it was due to the project was not added properly into the Vault Server in the first place.
- Attachments
-
- Add dsw to Source Control
- Add dsw to Source Control.jpg (56.22 KiB) Viewed 27692 times
-
- Dialog Box list only one dsw file
- Add Workspace.jpg (97.43 KiB) Viewed 27693 times
-
- Dialog box shows only one dsp file
- Add dsp to Source Control.jpg (74.14 KiB) Viewed 27693 times
-
- Hightlight the folders and select the add to solution command. It lists all the source / header files
- Add source file to Source Control.jpg (126 KiB) Viewed 27693 times
Integraton with Visual C++ does seem to take more manual steps than VS.NET, for instance. It helps to set the project up properly so that other users can retrieve them more easily.
Here are the steps I followed to create the project in VC++ as you showed in your screenshots. I created everything new, but you could also probably do this by adding existing projects to a new workspace.
I created a new workspace, WorkspaceTest. Then I created project LibFiles and added it to the current workspace and then created TestProject and added it to the current workspace. (Note: You can configure Visual C++ to prompt you to add project/files to source control when you create them (Tools->Options->Source Control), but I opted to complete the structure first.)
Then I had to add the workspace and the projects to Vault in separate steps. I was unable to find a recursive way to do this. When I added the workspace to source control a WorkspaceTest folder was created, and I added both LibFiles and TestProject to the WorkspaceTest folder in Vault.
The folder structure in Vault is:
WorkspaceTest
|--LibFiles
|--TestProject
This is the same structure on my local drive.
Then I connected to Vault as a different user from a different machine and opened the workspace and project from source control:
In VC++, I did Open workspace and in the bottom of that dialog, chose Open a project from Source Control, which gave a me a login to Vault. In the folder tree, I chose the WorkspaceTest folder and clicked OK, then clicked Open in the Open Workspace dialog. I was prompted to Get latest version of the Libfiles.dsp and Testfiles.dsp files, and the workspace and both projects appeared in VC++.
It's possible that if your user retrieved both projects from source control but only sees one in VC++, they can try highlighting the WorkspaceTest in VC++ and selecting Project->Insert Project in to Workspace.
Another option that can save steps: In Tools->Options->Source Control you can choose to check in all your files when you close the workspace.
Here are the steps I followed to create the project in VC++ as you showed in your screenshots. I created everything new, but you could also probably do this by adding existing projects to a new workspace.
I created a new workspace, WorkspaceTest. Then I created project LibFiles and added it to the current workspace and then created TestProject and added it to the current workspace. (Note: You can configure Visual C++ to prompt you to add project/files to source control when you create them (Tools->Options->Source Control), but I opted to complete the structure first.)
Then I had to add the workspace and the projects to Vault in separate steps. I was unable to find a recursive way to do this. When I added the workspace to source control a WorkspaceTest folder was created, and I added both LibFiles and TestProject to the WorkspaceTest folder in Vault.
The folder structure in Vault is:
WorkspaceTest
|--LibFiles
|--TestProject
This is the same structure on my local drive.
Then I connected to Vault as a different user from a different machine and opened the workspace and project from source control:
In VC++, I did Open workspace and in the bottom of that dialog, chose Open a project from Source Control, which gave a me a login to Vault. In the folder tree, I chose the WorkspaceTest folder and clicked OK, then clicked Open in the Open Workspace dialog. I was prompted to Get latest version of the Libfiles.dsp and Testfiles.dsp files, and the workspace and both projects appeared in VC++.
It's possible that if your user retrieved both projects from source control but only sees one in VC++, they can try highlighting the WorkspaceTest in VC++ and selecting Project->Insert Project in to Workspace.
Another option that can save steps: In Tools->Options->Source Control you can choose to check in all your files when you close the workspace.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Back to work on earlier projects coded in VC++ using VS6. The files were added in through Vault client & not thorough the IDE. Due to some reason, i do not want to alter the files - so i practically hand coded the binding information:
1) Created the MSSCCPRJ.SCC file manually with the following info:
2) Add this line in *.dsw file:
3) Add this line in *.dsp file:
Everything works OK but i am baffled by each time when i start VS6 & load the workspace, it always prompt me for the repository selection. (i have checked the rep id & #4 is correct). Subsequently when i close the worksplace (without exiting VS6) & reload again, it never prompt me again. It only prompt when i first start VS6.
I just wonder if there is any way to stop this prompting.
BTW, if i follow the correct way to add project into Source Control & retrieve it, this observation never happen.
1) Created the MSSCCPRJ.SCC file manually with the following info:
Code: Select all
SCC = This is a source code control file
[UI.dsw]
SCC_Aux_Path = http://csd-data-server/VaultService|Joel:4
SCC_Project_Name = $/LU-028 - TFTR Machine - #E/Source Code/VC++
[UI.DSP]
SCC_Aux_Path = http://csd-data-server/VaultService|Joel:4
SCC_Project_Name = $/LU-028 - TFTR Machine - #E/Source Code/VC++
Code: Select all
begin source code control
$/LU-028 - TFTR Machine - #E/Source Code/VC++
.
Code: Select all
# PROP Scc_ProjName "$/LU-028 - TFTR Machine - #E/Source Code/VC++"
# PROP Scc_LocalPath "."
Everything works OK but i am baffled by each time when i start VS6 & load the workspace, it always prompt me for the repository selection. (i have checked the rep id & #4 is correct). Subsequently when i close the worksplace (without exiting VS6) & reload again, it never prompt me again. It only prompt when i first start VS6.
I just wonder if there is any way to stop this prompting.
BTW, if i follow the correct way to add project into Source Control & retrieve it, this observation never happen.