How do I get the latest version a project using .NET API?

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
Tanguy
Posts: 23
Joined: Fri Oct 18, 2013 1:18 pm

How do I get the latest version a project using .NET API?

Post by Tanguy » Fri Jul 08, 2016 2:58 am

I want to know how to get the latest version of a project.

I'm using Vault Client .NET API.

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

Re: How do I get the latest version a project using .NET API

Post by Beth » Fri Jul 08, 2016 10:12 am

Here is a basic get on a folder.

Code: Select all

            GetOptions getOptions = new GetOptions();
            getOptions.Recursive = true;
            GetOperations.ProcessCommandGet(new string[] { diskPath }, getOptions);
Beth Kieler
SourceGear Technical Support

Tanguy
Posts: 23
Joined: Fri Oct 18, 2013 1:18 pm

Re: How do I get the latest version a project using .NET API

Post by Tanguy » Thu Jul 14, 2016 12:48 am

Thank you Beth. That's the exact solution to my problem.

Post Reply