diff --git a/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs b/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs index 1abe05387..45cca5cda 100644 --- a/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs +++ b/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs @@ -217,11 +217,7 @@ public sealed class ArchiWebHandler : IDisposable { yield break; } -#if NETFRAMEWORK - if (response.Content.TotalInventoryCount > 0X7FFFFFC7) { -#else if (response.Content.TotalInventoryCount > Array.MaxLength) { -#endif throw new InvalidOperationException(nameof(response.Content.TotalInventoryCount)); } diff --git a/ArchiSteamFarm/Web/WebBrowser.cs b/ArchiSteamFarm/Web/WebBrowser.cs index 64f41a07c..6366a83eb 100644 --- a/ArchiSteamFarm/Web/WebBrowser.cs +++ b/ArchiSteamFarm/Web/WebBrowser.cs @@ -153,11 +153,7 @@ public sealed class WebBrowser : IDisposable { } } -#if NETFRAMEWORK - if (response.Length > 0X7FFFFFC7) { -#else if (response.Length > Array.MaxLength) { -#endif throw new InvalidOperationException(nameof(response.Length)); } diff --git a/Directory.Build.props b/Directory.Build.props index f0bf0359c..abe5ae284 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -35,6 +35,7 @@ + diff --git a/Directory.Packages.props b/Directory.Packages.props index 450b8bed8..556b1e4a9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -27,7 +27,7 @@ - +