public ProjectRestoreSettings Clone()
        {
            var clonedObject = new ProjectRestoreSettings();

            clonedObject.HideWarningsAndErrors = HideWarningsAndErrors;
            return(clonedObject);
        }
        private static ProjectRestoreSettings GetRestoreSettings(PackageSpec packageSpec, JObject rawPackageSpec)
        {
            var rawRestoreSettings = rawPackageSpec.Value <JToken>(RestoreSettings) as JObject;
            var restoreSettings    = new ProjectRestoreSettings();

            if (rawRestoreSettings != null)
            {
                restoreSettings.HideWarningsAndErrors = GetBoolOrFalse(rawRestoreSettings, HideWarningsAndErrors, packageSpec.FilePath);
            }

            return(restoreSettings);
        }
        public bool Equals(ProjectRestoreSettings other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(HideWarningsAndErrors == other.HideWarningsAndErrors);
        }