Reputation: 55
I am using the below code,
WorkspaceInfo workspaceInfo = Workstation.Current.GetLocalWorkspaceInfo("$/UKNML1234_1");
Uri serverUri = workspaceInfo.ServerUri;
TfsTeamProjectCollection server = new TfsTeamProjectCollection(serverUri);
var versionControlServer = server.GetService<VersionControlServer>();
Workspace WS = workspaceInfo.GetWorkspace(versionControlServer.AuthorizedUser);
but I am getting the error
cannot convert from ‘string’ to ‘Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
Any idea how to fix this?
Edit: the error is generated on the fifth line at versionControlServer.AuthorizedUser
Upvotes: 0
Views: 37