K
K
kill942017-11-21 20:35:12
JavaScript
kill94, 2017-11-21 20:35:12

Are Tfs api builds compatible?

I am writing a Tfs Source Controle migration program from Tfs 2010 to Tfs 2017 using Tfs api. This uses the Microsoft.TeamFoundation.VersionControl.Client assembly version 15.

TfsTeamProjectCollection tpc = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(UrlServer));
tpc.EnsureAuthenticated();
var versionControl = tpc.GetService<VersionControlServer>()
var workspace =CreateWorkspace(workspaceName);
workspace.CreateMapping(new WorkingFolder (serverPath, localPath));

CreateMapping throws System.Xml.XmlException "Unexpected end of file." when it is created on tfs2010, but on tfs2017 everything is fine.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question