Ejemplo n.º 1
0
        public ProjectRestoreSettings Clone()
        {
            var clonedObject = new ProjectRestoreSettings();

            clonedObject.HideWarningsAndErrors = HideWarningsAndErrors;
            return(clonedObject);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public bool Equals(ProjectRestoreSettings other)
        {
            if (other == null)
            {
                return(false);
            }

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

            return(HideWarningsAndErrors == other.HideWarningsAndErrors);
        }