public string GetDisplayName(NuGetProject nuGetProject, VSSolutionManager solutionManager) { string safeName = solutionManager.GetNuGetProjectSafeName(nuGetProject); Project project = solutionManager.GetDTEProject(safeName); return(EnvDTEProjectUtility.GetDisplayName(project)); }
private static string GetDisplayName(NuGetProject nuGetProject, VSSolutionManager solutionManager) { Debug.Assert(ThreadHelper.CheckAccess()); var safeName = solutionManager.GetNuGetProjectSafeName(nuGetProject); var project = solutionManager.GetDTEProject(safeName); return(EnvDTEProjectUtility.GetDisplayName(project)); }
private void SolutionManager_NuGetProjectRenamed(object sender, NuGetProjectEventArgs e) { VSSolutionManager manager = SolutionManager as VSSolutionManager; if (manager != null) { Project project = manager.GetDTEProject(manager.GetNuGetProjectSafeName(e.NuGetProject)); var windowFrame = FindExistingWindowFrame(project); if (windowFrame != null) { windowFrame.SetProperty((int) __VSFPROPID.VSFPROPID_OwnerCaption, String.Format( CultureInfo.CurrentCulture, Resx.Label_NuGetWindowCaption, project.Name)); } } }
public string GetDisplayName(NuGetProject nuGetProject, VSSolutionManager solutionManager) { string safeName = solutionManager.GetNuGetProjectSafeName(nuGetProject); Project project = solutionManager.GetDTEProject(safeName); return EnvDTEProjectUtility.GetDisplayName(project); }