SG Vault Standard Error

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

SG Vault Standard Error

Post by btd » Thu Oct 23, 2014 4:51 am

I am using Vault 7.1 standard edition with Visual Studio 2008.
When I leave work for the day, I leave VS2008 open but do check all my files in.
When I come back to work next day, I begin working on a c# file but notice I did not get auto checkout.
Turns out I have to refresh my Vault each day BEFORE editing code. Otherwise its not checked out.

Is there a way to force auto refresh and auto checkout in VS2008 the next day?

The only workaround I have is to refresh my bindings. But I don't always remember to do that each morning when I begin.

THanks

BTD

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SG Vault Standard Error

Post by Beth » Thu Oct 23, 2014 8:49 am

Vault has a status refresh, which you probably already have set, but I don't think that will help with the VS bindings.

Does your VS project take too long to load in the morning? If so, I think you can make a little command-line script to start up Visual Studio and your project and schedule it to start before you arrive at work. Would that get you to what you need?
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: SG Vault Standard Error

Post by btd » Thu Oct 23, 2014 11:49 am

No, my VS project doesn't take long as its already loaded remember? I don't shut down VS when I leave work.
Yes, if you can send me a script that will refresh my Vault connection, that may just do the trick!

BTD

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: SG Vault Standard Error

Post by btd » Fri Oct 24, 2014 7:43 am

Can you send me the script to wake up Vault please?

Thanks

BTD

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SG Vault Standard Error

Post by Beth » Fri Oct 24, 2014 8:12 am

I didn't actually have one yet. So far I know one can start Visual Studio by running devenv from the command line. I don't know if one can just call their project behind that or not.

Some of the commands for devenv can be found here: http://143home.blogspot.com/2010_12_17_archive.html.

If it's not requiring you to login each day, then you can just run

Code: Select all

devenv mysolutionfile.sln
For example, I opened a solution with the following:

Code: Select all

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" "C:\Users\myname\Documents\Visual Studio 2012\Projects\WebApplication1\WebApplication1.sln"
That can be thrown into a .bat file and then scheduled with Task Scheduler.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: SG Vault Standard Error

Post by btd » Mon Oct 27, 2014 6:17 am

That works for me.

Thanks alot and have a great week!

Post Reply