From 8fd3bf42173e02f3b05c0373072c97e19fb76b9a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 3 Nov 2016 15:07:48 -0400 Subject: [PATCH] change pcl's to .netstandard --- .../HttpClientManager/HttpClientManager.cs | 20 ++- Emby.Common.Implementations/project.json | 28 ++-- .../Emby.Server.Implementations.csproj | 50 +++---- .../Properties/AssemblyInfo.cs | 4 +- .../Updates/InstallationManager.cs | 10 +- Emby.Server.Implementations/packages.config | 5 - Emby.Server.Implementations/project.json | 12 ++ .../MediaBrowser.Common.csproj | 7 +- .../MediaBrowser.Common.nuget.targets | 6 - MediaBrowser.Common/Net/HttpRequestOptions.cs | 8 +- .../Properties/AssemblyInfo.cs | 3 - .../Updates/IInstallationManager.cs | 3 +- MediaBrowser.Common/project.json | 25 ++-- .../MediaBrowser.Controller.csproj | 9 +- .../MediaBrowser.Controller.nuget.targets | 6 - .../Properties/AssemblyInfo.cs | 3 - MediaBrowser.Controller/packages.config | 3 - MediaBrowser.Controller/project.json | 25 ++-- MediaBrowser.Model/MediaBrowser.Model.csproj | 7 +- .../MediaBrowser.Model.nuget.targets | 6 - MediaBrowser.Model/project.json | 25 ++-- .../LiveTv/Listings/XmlTvListingsProvider.cs | 2 +- ...MediaBrowser.Server.Implementations.csproj | 10 +- .../packages.config | 6 +- .../MediaBrowser.Server.Mono.csproj | 4 +- MediaBrowser.Server.Mono/packages.config | 2 +- .../MediaBrowser.Server.Startup.Common.csproj | 6 +- .../packages.config | 2 +- .../MediaBrowser.ServerApplication.csproj | 4 +- .../packages.config | 2 +- MediaBrowser.sln | 126 +++++++++--------- Mono.Nat/project.json | 12 +- Nuget/MediaBrowser.Common.nuspec | 7 +- 33 files changed, 208 insertions(+), 240 deletions(-) delete mode 100644 Emby.Server.Implementations/packages.config create mode 100644 Emby.Server.Implementations/project.json delete mode 100644 MediaBrowser.Common/MediaBrowser.Common.nuget.targets delete mode 100644 MediaBrowser.Controller/MediaBrowser.Controller.nuget.targets delete mode 100644 MediaBrowser.Controller/packages.config delete mode 100644 MediaBrowser.Model/MediaBrowser.Model.nuget.targets diff --git a/Emby.Common.Implementations/HttpClientManager/HttpClientManager.cs b/Emby.Common.Implementations/HttpClientManager/HttpClientManager.cs index 4c034fa6aa..85fcb556f0 100644 --- a/Emby.Common.Implementations/HttpClientManager/HttpClientManager.cs +++ b/Emby.Common.Implementations/HttpClientManager/HttpClientManager.cs @@ -169,9 +169,23 @@ namespace Emby.Common.Implementations.HttpClientManager AddRequestHeaders(httpWebRequest, options); #if NET46 - httpWebRequest.AutomaticDecompression = options.EnableHttpCompression ? - (options.DecompressionMethod ?? DecompressionMethods.Deflate) : - DecompressionMethods.None; + if (options.EnableHttpCompression) + { + if (options.DecompressionMethod.HasValue) + { + httpWebRequest.AutomaticDecompression = options.DecompressionMethod.Value == CompressionMethod.Gzip + ? DecompressionMethods.GZip + : DecompressionMethods.Deflate; + } + else + { + httpWebRequest.AutomaticDecompression = DecompressionMethods.Deflate; + } + } + else + { + httpWebRequest.AutomaticDecompression = DecompressionMethods.None; + } #endif } diff --git a/Emby.Common.Implementations/project.json b/Emby.Common.Implementations/project.json index a65b863458..dc96f5726c 100644 --- a/Emby.Common.Implementations/project.json +++ b/Emby.Common.Implementations/project.json @@ -23,27 +23,20 @@ "System.Xml.Serialization": "4.0.0.0" }, "dependencies": { - "MediaBrowser.Common": { - "target": "project" - }, + "SimpleInjector": "3.2.4", + "NLog": "4.4.0-betaV15", "MediaBrowser.Model": { "target": "project" }, - "SimpleInjector": "3.2.4", - "NLog": "4.4.0-betaV15" - } + "MediaBrowser.Common": { + "target": "project" + } } }, "netstandard1.6": { "imports": "dnxcore50", "dependencies": { "NETStandard.Library": "1.6.0", - "MediaBrowser.Common": { - "target": "project" - }, - "MediaBrowser.Model": { - "target": "project" - }, - "System.IO.FileSystem.DriveInfo": "4.0.0", + "System.IO.FileSystem.DriveInfo": "4.0.0", "System.Diagnostics.Process": "4.1.0", "System.Threading.Timer": "4.0.1", "System.Net.Requests": "4.0.11", @@ -58,8 +51,13 @@ "System.Reflection.Primitives": "4.0.1", "System.Runtime.Loader": "4.0.0", "SimpleInjector": "3.2.4", - "NLog": "4.4.0-betaV15" - } + "NLog": "4.4.0-betaV15", + "MediaBrowser.Model": { + "target": "project" + }, + "MediaBrowser.Common": { + "target": "project" + } } } } } diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csproj index 18e3576799..5c7136eabe 100644 --- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj +++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj @@ -2,10 +2,10 @@ - 11.0 + 14.0 Debug AnyCPU - {D08B8079-08B3-48F2-83C4-E9CCCE48AFF1} + {E383961B-9356-4D5D-8233-9A1079D03055} Library Properties Emby.Server.Implementations @@ -13,8 +13,9 @@ en-US 512 {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Profile7 - v4.5 + + + v5.0 true @@ -35,23 +36,9 @@ - - {9142eefa-7570-41e1-bfcc-468bb571af2f} - MediaBrowser.Common - - - {17e1f4e6-8abd-4fe5-9ecf-43d4b6087ba2} - MediaBrowser.Controller - - - {7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b} - MediaBrowser.Model - + - - Properties\SharedVersion.cs - @@ -170,20 +157,21 @@ - - ..\packages\MediaBrowser.Naming.1.0.0.57\lib\portable-net45+sl4+wp71+win8+wpa81\MediaBrowser.Naming.dll - True - - - ..\packages\Patterns.Logging.1.0.0.4\lib\portable-net45+dnxcore50+sl4+wp71+win8+wpa81\Patterns.Logging.dll - True - - - - + - + + {9142eefa-7570-41e1-bfcc-468bb571af2f} + MediaBrowser.Common + + + {17e1f4e6-8abd-4fe5-9ecf-43d4b6087ba2} + MediaBrowser.Controller + + + {7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b} + MediaBrowser.Model +