From 53415782c1a582aa4308abb78a3d02883b8aabf4 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 9 Mar 2017 18:53:28 -0600 Subject: [PATCH] (GH-1059) Deprecate old config elements The top level config settings for chocolatey.config had a couple of elements that were deprecated once configSettings section became availalbe and settings could be set with the choco config command. Mark those settings as deprecated and up for removal. --- .../infrastructure.app/configuration/ConfigFileSettings.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chocolatey/infrastructure.app/configuration/ConfigFileSettings.cs b/src/chocolatey/infrastructure.app/configuration/ConfigFileSettings.cs index d23730f9af..231ad45667 100644 --- a/src/chocolatey/infrastructure.app/configuration/ConfigFileSettings.cs +++ b/src/chocolatey/infrastructure.app/configuration/ConfigFileSettings.cs @@ -26,12 +26,11 @@ namespace chocolatey.infrastructure.app.configuration [XmlRoot("chocolatey")] public class ConfigFileSettings { + [Obsolete("This will be removed in v1 of Chocolatey")] [XmlElement(ElementName = "cacheLocation")] public string CacheLocation { get; set; } - [XmlElement(ElementName = "containsLegacyPackageInstalls")] - public bool ContainsLegacyPackageInstalls { get; set; } - + [Obsolete("This will be removed in v1 of Chocolatey")] [XmlElement(ElementName = "commandExecutionTimeoutSeconds")] public int CommandExecutionTimeoutSeconds { get; set; }