Ejemplo n.º 1
0
 private static IEnumerable <IUICommand> VSChilds()
 {
     return(VisualStudioPluginHelper.GetInstalledStudios().Select(info =>
     {
         return new DelegateCommand <IEnumerable <ProjectViewModel> >(info.Name, models => OpenProjects(models, info), models => true);
     }));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of MSTest Process Wrapper
        /// </summary>
        public MSTestProcess(string vsBasePath = null)
        {
            if (string.IsNullOrEmpty(vsBasePath) || !vsBasePath.EndsWith("IDE"))
            {
                var visualStudioInfo = VisualStudioPluginHelper.GetInstalledStudios().Last();
                vsBasePath = Path.GetDirectoryName(visualStudioInfo.ExePath);
            }

            MsTestPath = Path.Combine(vsBasePath, "MSTest.exe");
        }
Ejemplo n.º 3
0
 private void CheckTFExe()
 {
     if (!File.Exists(tfExe))
     {
         var visualStudioInfo = VisualStudioPluginHelper.GetInstalledStudios().Last();
         if (visualStudioInfo.Version < Version.Parse("15.0"))
         {
             tfExe = Path.Combine(visualStudioInfo.Path, "Common7", "IDE", "TF.exe");
         }
         else
         {
             tfExe = Path.Combine(visualStudioInfo.Path, "Common7", "IDE", "CommonExtensions", "Microsoft", "TeamFoundation", "Team Explorer", "TF.exe");
         }
     }
 }