Writing Windows Service to connect to Visual Source Safe and download the code
-
First of all, I am not sure whether this is the right forum to ask this question. If not, could you please help me in choosing the right forum. This may be a stupid idea, but I think it is better if I can develop this. I need some help to start this. We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time. Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config. If this is possible, please guide me how to start with this. Any articles or urls will be great. Thanks in advance, meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
-
First of all, I am not sure whether this is the right forum to ask this question. If not, could you please help me in choosing the right forum. This may be a stupid idea, but I think it is better if I can develop this. I need some help to start this. We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time. Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config. If this is possible, please guide me how to start with this. Any articles or urls will be great. Thanks in advance, meeram395.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
meeram395 wrote:
We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time.
Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config.A Windows-service usually runs under a different context than the user; does it have access to SourceSafe? I'm using batch-files to achieve something similar. We've got Tortoise, and downloading the latest code from the repository can be done over the commandline;
TortoiseProc.exe /command:update /path:"c:\stuff\code\" /closeonend:1
When done, the batch-file proceeds to build and executes the unit-tests. Gets executed every day by the Windows Task Scheduler. SourceSafe supports the same[^].
Bastard Programmer from Hell :suss:
-
meeram395 wrote:
We are storing our source code in VSS which is in UK server. Inorder to work locally in India, we need to connect to VPN, then to VSS to get the latest version of the code, which is in VS.Net 2008. Now, while opening the solution and also for checkout and checkin the files , and also getting the latest version to VSS, it is taking 2.5 - 3 hrs everyday which eats most of our working time.
Is it possible to write a windows service which will connect automatically to VSS and download the source code to our local system every day. Obviously each person VSS id and pwd will be different, even though the path will be same. We can proivde this as input config.A Windows-service usually runs under a different context than the user; does it have access to SourceSafe? I'm using batch-files to achieve something similar. We've got Tortoise, and downloading the latest code from the repository can be done over the commandline;
TortoiseProc.exe /command:update /path:"c:\stuff\code\" /closeonend:1
When done, the batch-file proceeds to build and executes the unit-tests. Gets executed every day by the Windows Task Scheduler. SourceSafe supports the same[^].
Bastard Programmer from Hell :suss:
-
Thank you for the reply. I was actually looking for a similar kind of functionality. I will go through the same and come back to you.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
A better solution would be to setup a mirror server in India which gets (and sends) a backup every night to the uk server. In this case the uk-server should be the master and the India-server slave. We used a similar principle on a previous assigment and that worked quite well. This still ensures that you have the latest sources and can use the benefits of VSS, but keeps it all structured.