Browse Source

Bug 1777: Do not obsolete Session.DisableVersionCheck

https://winscp.net/tracker/1777

See 1225978c and 472980fc

Source commit: 9082bf3d96ab8460227e129b91c63be0a7f8c2c3
Martin Prikryl 6 years ago
parent
commit
3195d901ac
2 changed files with 1 additions and 3 deletions
  1. 0 2
      dotnet/Session.cs
  2. 1 1
      dotnet/internal/ExeSessionProcess.cs

+ 0 - 2
dotnet/Session.cs

@@ -72,7 +72,6 @@ namespace WinSCP
         public string AdditionalExecutableArguments { get { return _additionalExecutableArguments; } set { CheckNotOpened(); _additionalExecutableArguments = value; } }
         [Obsolete("Use AddRawConfiguration")]
         public bool DefaultConfiguration { get { return _defaultConfiguration; } set { CheckNotOpened(); _defaultConfiguration = value; } }
-        [Obsolete("Always use the same version of assembly and WinSCP")]
         public bool DisableVersionCheck { get { return _disableVersionCheck; } set { CheckNotOpened(); _disableVersionCheck = value; } }
         [Obsolete("Use AddRawConfiguration")]
         public string IniFilePath { get { return _iniFilePath; } set { CheckNotOpened(); _iniFilePath = value; } }
@@ -2521,7 +2520,6 @@ namespace WinSCP
         internal Dictionary<string, string> RawConfiguration { get; private set; }
         internal bool DefaultConfigurationInternal { get { return _defaultConfiguration; } }
         internal string IniFilePathInternal { get { return _iniFilePath; } }
-        internal bool DisableVersionCheckInternal { get { return _disableVersionCheck; } }
 
         private ExeSessionProcess _process;
         private DateTime _lastOutput;

+ 1 - 1
dotnet/internal/ExeSessionProcess.cs

@@ -936,7 +936,7 @@ namespace WinSCP
 
                     _logger.WriteLine("Version of {0} is {1}, product {2} version is {3}", exePath, version.FileVersion, version.ProductName, version.ProductVersion);
 
-                    if (_session.DisableVersionCheckInternal)
+                    if (_session.DisableVersionCheck)
                     {
                         _logger.WriteLine("Version check disabled (not recommended)");
                     }