/// <summary>
 /// Represents the user settings persisted in suo files.
 /// </summary>
 public UserSettings()
 {
     IncludePrerelease  = RegistrySettingUtility.GetBooleanSetting(Constants.IncludePrereleaseRegistryName);
     ShowPreviewWindow  = true;
     SelectedFilter     = ItemFilter.Installed;
     DependencyBehavior = DependencyBehavior.Lowest;
     FileConflictAction = FileConflictAction.PromptUser;
     OptionsExpanded    = false;
 }
        private async Task <bool> ShouldShowUpgradeProjectAsync()
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            // If user has turned it off, don't show
            if (RegistrySettingUtility.GetBooleanSetting(Constants.SuppressUpgradePackagesConfigName))
            {
                return(false);
            }

            // We don't currently support converting an entire solution
            if (_model.IsSolution)
            {
                return(false);
            }

            var projects = _model.Context.Projects.ToList();

            return((projects.Count == 1) && await _model.Context.IsNuGetProjectUpgradeableAsync(projects[0], CancellationToken.None));
        }
Exemple #3
0
 private static bool IsUILegalDisclaimerSuppressed()
 {
     return(RegistrySettingUtility.GetBooleanSetting(Constants.SuppressUIDisclaimerRegistryName));
 }
 public static bool IsDoNotShowPreviewWindowEnabled()
 {
     return(RegistrySettingUtility.GetBooleanSetting(
                Constants.DoNotShowPreviewWindowRegistryName));
 }
 public static bool GetDoNotShowPromptState()
 {
     return(RegistrySettingUtility.GetBooleanSetting(
                Constants.DoNotShowDeprecatedFrameworkWindowRegistryName));
 }