private static IEnumerable <IUICommand> VSChilds() { return(VisualStudioPluginHelper.GetInstalledStudios().Select(info => { return new DelegateCommand <IEnumerable <ProjectViewModel> >(info.Name, models => OpenProjects(models, info), models => true); })); }
/// <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"); }
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"); } } }