protected override int DoCheckin(TfsChangesetInfo changeset, string refToCheckin)
{
if (!changeset.Remote.Tfs.CanShowCheckinDialog)
throw new GitTfsException(
"checkintool does not work with this TFS version (" + changeset.Remote.Tfs.TfsClientLibraryVersion + ").",
new[] { "Try installing the VS2010 edition of Team Explorer." });
return changeset.Remote.CheckinTool(refToCheckin, changeset);
}