Search code examples
c#azure-devopstfs-sdk

Microsoft.TeamFoundation.VersionControl.Client location?


I've got this nuget package (and the non-extended one): https://www.nuget.org/packages/Microsoft.TeamFoundationServer.ExtendedClient/

Which I'm seeing references to as a replacement for Microsoft.TeamFoundation.VersionControl.Client.dll. Unfortunately, I'm trying to access the Microsoft.TeamFoundation.VersionControl namespace, and it doesn't seem to exist. I see entries for Git and SourceControl, but VersionControl is throwing a "The type or namespace name 'VersionControl' does not exist in the namespace 'Microsoft.TeamFoundation' (are you missing an assembly reference?)" and Intellisense isn't suggesting anything else for Using statements regarding VersionControlServer and so forth.

My intention is to have an automation server pull down a workspace, manipulate some files, and upload to a new workspace, using TFVC with an access token. I have the rest of the logic worked out and written, but the "missing" reference is just causing issues.

I'm not really seeing any documentation about where it might have gone either. Any ideas?


Solution

  • Tested a new project per Fredy Treboux's suggestion and it worked there.

    At that point I completely uninstalled all TFS and VS Services-related packages and ensured all files were deleted for them, then reinstalled. Seems to have fixed it, all references are pulling through without error now.