/// <summary> /// Opens the in SharePoint designer. /// </summary> /// <param name="url">The URL.</param> void OpenInSharePointDesigner(string url) { string path = String.Empty; SharePointVersion version = ProjectUtilities.WhichSharePointVersionIsProjectDeployingTo(); if (version == SharePointVersion.SP2010) { path = Path.Combine(ProjectUtilities.GetSharePoint14DesignerInstallRoot(), "SPDesign.exe"); } else if (version == SharePointVersion.SP2013) { path = Path.Combine(ProjectUtilities.GetSharePoint15DesignerInstallRoot(), "SPDesign.exe"); } ProcessUtilities utils = new ProcessUtilities(); if (!String.IsNullOrEmpty(path)) { if (File.Exists(path)) { utils.StartProcess(DTEManager.ActiveSharePointProject, path, url); } } }