We just transitioned from using TFS to using Git as our VCS. We are connected to Git and can check-in and such with ease.
But we have a Visual Studio extension that needs to be rewritten for Git. Using TFS programmatically was rather straight-forward, but I can't get anything working with Git. The Microsoft docs are either wrong or I'm doing it wrong. For example, to get a reference to a Git repository, use TfsGitRepository
and you get that via TeamFoundationGitRepositoryService
. That (supposedly) exists in the Microsoft.TeamFoundation.Git.Server
namespace. But when trying to add a reference, Visual Studio claims that namespace doesn't exist; only Microsoft.TeamFoundation.Git.Controls
does.
Does anyone know of some reliable documentation for using Git via Visual Studio? Or how to do it?
EDIT
We are using Visual Studio 2015