diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-03 15:07:48 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-03 15:07:48 -0400 |
| commit | 8fd3bf42173e02f3b05c0373072c97e19fb76b9a (patch) | |
| tree | 0bbdb2ba3bbceca88955ceb012c7a07713b95102 /MediaBrowser.Common | |
| parent | a2dd144d5ccc8a5092f49983df8a030f7df4f82b (diff) | |
change pcl's to .netstandard
Diffstat (limited to 'MediaBrowser.Common')
| -rw-r--r-- | MediaBrowser.Common/MediaBrowser.Common.csproj | 7 | ||||
| -rw-r--r-- | MediaBrowser.Common/MediaBrowser.Common.nuget.targets | 6 | ||||
| -rw-r--r-- | MediaBrowser.Common/Net/HttpRequestOptions.cs | 8 | ||||
| -rw-r--r-- | MediaBrowser.Common/Properties/AssemblyInfo.cs | 3 | ||||
| -rw-r--r-- | MediaBrowser.Common/Updates/IInstallationManager.cs | 3 | ||||
| -rw-r--r-- | MediaBrowser.Common/project.json | 25 |
6 files changed, 21 insertions, 31 deletions
diff --git a/MediaBrowser.Common/MediaBrowser.Common.csproj b/MediaBrowser.Common/MediaBrowser.Common.csproj index 9e212219db..0164a7829a 100644 --- a/MediaBrowser.Common/MediaBrowser.Common.csproj +++ b/MediaBrowser.Common/MediaBrowser.Common.csproj @@ -14,9 +14,10 @@ <ProductVersion>10.0.0</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <TargetFrameworkProfile>Profile7</TargetFrameworkProfile> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> - <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion> + <TargetFrameworkProfile> + </TargetFrameworkProfile> + <TargetFrameworkVersion>v5.0</TargetFrameworkVersion> + <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> diff --git a/MediaBrowser.Common/MediaBrowser.Common.nuget.targets b/MediaBrowser.Common/MediaBrowser.Common.nuget.targets deleted file mode 100644 index e69ce0e64f..0000000000 --- a/MediaBrowser.Common/MediaBrowser.Common.nuget.targets +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="no"?> -<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Target Name="EmitMSBuildWarning" BeforeTargets="Build"> - <Warning Text="Packages containing MSBuild targets and props files cannot be fully installed in projects targeting multiple frameworks. The MSBuild targets and props files have been ignored." /> - </Target> -</Project>
\ No newline at end of file diff --git a/MediaBrowser.Common/Net/HttpRequestOptions.cs b/MediaBrowser.Common/Net/HttpRequestOptions.cs index f70986d678..e1ecd6595e 100644 --- a/MediaBrowser.Common/Net/HttpRequestOptions.cs +++ b/MediaBrowser.Common/Net/HttpRequestOptions.cs @@ -17,7 +17,7 @@ namespace MediaBrowser.Common.Net /// <value>The URL.</value> public string Url { get; set; } - public DecompressionMethods? DecompressionMethod { get; set; } + public CompressionMethod? DecompressionMethod { get; set; } /// <summary> /// Gets or sets the accept header. @@ -141,4 +141,10 @@ namespace MediaBrowser.Common.Net None = 0, Unconditional = 1 } + + public enum CompressionMethod + { + Deflate, + Gzip + } } diff --git a/MediaBrowser.Common/Properties/AssemblyInfo.cs b/MediaBrowser.Common/Properties/AssemblyInfo.cs index d7bbb6f3ab..09fd68f93a 100644 --- a/MediaBrowser.Common/Properties/AssemblyInfo.cs +++ b/MediaBrowser.Common/Properties/AssemblyInfo.cs @@ -18,9 +18,6 @@ using System.Runtime.InteropServices; // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("cdec1bb7-6ffd-409f-b41f-0524a73df9be")] - // Version information for an assembly consists of the following four values: // // Major Version diff --git a/MediaBrowser.Common/Updates/IInstallationManager.cs b/MediaBrowser.Common/Updates/IInstallationManager.cs index f7a202f972..636526567e 100644 --- a/MediaBrowser.Common/Updates/IInstallationManager.cs +++ b/MediaBrowser.Common/Updates/IInstallationManager.cs @@ -2,7 +2,6 @@ using MediaBrowser.Model.Events; using MediaBrowser.Model.Updates; using System; -using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -24,7 +23,7 @@ namespace MediaBrowser.Common.Updates /// <summary> /// The completed installations /// </summary> - ConcurrentBag<InstallationInfo> CompletedInstallations { get; set; } + IEnumerable<InstallationInfo> CompletedInstallations { get; } /// <summary> /// Occurs when [plugin uninstalled]. diff --git a/MediaBrowser.Common/project.json b/MediaBrowser.Common/project.json index fbbe9eaf32..19f6c6a991 100644 --- a/MediaBrowser.Common/project.json +++ b/MediaBrowser.Common/project.json @@ -1,17 +1,10 @@ -{ - "frameworks":{ - "netstandard1.6":{ - "dependencies":{ - "NETStandard.Library":"1.6.0", - } - }, - ".NETPortable,Version=v4.5,Profile=Profile7":{ - "buildOptions": { - "define": [ ] - }, - "frameworkAssemblies":{ - - } - } - } +{ + "supports": {}, + "dependencies": { + "Microsoft.NETCore.Portable.Compatibility": "1.0.1", + "NETStandard.Library": "1.6.0" + }, + "frameworks": { + "netstandard1.0": {} + } }
\ No newline at end of file |
