Exemplo n.º 1
0
        public ITFVCWorkspace CurrentWorkspace()
        {
            ITFVCWorkspace result = null;

            var fullName = _solutionService.GetActiveSolution()?.FullName;

            if (!string.IsNullOrWhiteSpace(fullName))
            {
                var solutionDir = System.IO.Path.GetDirectoryName(fullName);

                result = _versionControlService.TryGetWorkspace(solutionDir);
            }

            return(result);
        }