private bool OnBindStatus(ProjectInformation projectInformation)
 {
     return(projectInformation != null &&
            this.host.VisualStateManager.IsConnected &&
            !this.host.VisualStateManager.IsBusy &&
            VsShellUtils.IsSolutionExistsAndFullyLoaded() &&
            VsShellUtils.IsSolutionExistsAndNotBuildingAndNotDebugging() &&
            (this.projectSystemHelper.GetSolutionProjects()?.Any() ?? false));
 }
Example #2
0
 private bool OnBindStatus(BindCommandArgs args)
 {
     return(args != null &&
            args.ProjectKey != null &&
            this.host.VisualStateManager.IsConnected &&
            !this.host.VisualStateManager.IsBusy &&
            VsShellUtils.IsSolutionExistsAndFullyLoaded() &&
            VsShellUtils.IsSolutionExistsAndNotBuildingAndNotDebugging() &&
            (this.projectSystemHelper.GetSolutionProjects()?.Any() ?? false));
 }