c# - Create App to download Changeset in TFS -
im not sure if possible looking able create app (vb or c#) replicate behaviour of 'view history' of selected tfs project. want able browse changeset, select 1 , download solution specified location.
i have not had chance take proper yet, assume straight forward changeset history sql database, not sure next able download associated solution/project. similar filestream?
if has covered in past, love hear how got project files.
try following code (i assume using tfvc version control):
using system; using microsoft.teamfoundation.client; using microsoft.teamfoundation.versioncontrol.client; namespace api { class program { static void main(string[] args) { string vsuri = "http://xxx.xxx.xxx.xxx"; tfsteamprojectcollection tpc = new tfsteamprojectcollection(new uri(vsuri)); tpc.ensureauthenticated(); versioncontrolserver vcs = tpc.getservice<versioncontrolserver>(); workspace ws = vcs.createworkspace("newworkspace"); ws.map("$/projectname","c:\\locationpath"); int changesetversiontoget = 111; changesetversionspec cvs = new changesetversionspec(changesetversiontoget); ws.get(cvs,getoptions.getall); } } }
the code create work space , files specified version version team explorer\source control.
Comments
Post a Comment