The Free Software Media System - Server Backend & API
update portable projects
Luke Pulverenti5655787c1ac9
diff --git a/Emby.Common.Implementations/BaseApplicationHost.cs b/Emby.Common.Implementations/BaseApplicationHost.csindex 9571ea3889..f0309511e0 100644--- a/Emby.Common.Implementations/BaseApplicationHost.cs+++ b/Emby.Common.Implementations/BaseApplicationHost.cs@@ -152,8 +152,6 @@ namespace Emby.Common.Implementationsprotected IIsoManager IsoManager { get; private set; }- protected ISystemEvents SystemEvents { get; private set; }-protected IProcessFactory ProcessFactory { get; private set; }protected ITimerFactory TimerFactory { get; private set; }protected ISocketFactory SocketFactory { get; private set; }@@ -193,22 +191,29 @@ namespace Emby.Common.Implementationsget { return EnvironmentInfo.OperatingSystemName; }}- public IMemoryStreamFactory MemoryStreamProvider { get; set; }-/// <summary>/// The container/// </summary>protected readonly SimpleInjector.Container Container = new SimpleInjector.Container();+ protected ISystemEvents SystemEvents { get; private set; }+ protected IMemoryStreamFactory MemoryStreamFactory { get; private set; }+/// <summary>/// Initializes a new instance of the <see cref="BaseApplicationHost{TApplicationPathsType}"/> class./// </summary>protected BaseApplicationHost(TApplicationPathsType applicationPaths,ILogManager logManager,IFileSystem fileSystem,- IEnvironmentInfo environmentInfo)+ IEnvironmentInfo environmentInfo,+ ISystemEvents systemEvents,+ IMemoryStreamFactory memoryStreamFactory,+ INetworkManager networkManager){+ NetworkManager = networkManager;EnvironmentInfo = environmentInfo;+ SystemEvents = systemEvents;+ MemoryStreamFactory = memoryStreamFactory;// hack alert, until common can target .net coreBaseExtensions.CryptographyProvider = CryptographyProvider;@@ -236,9 +241,6 @@ namespace Emby.Common.ImplementationsJsonSerializer = CreateJsonSerializer();- MemoryStreamProvider = CreateMemoryStreamProvider();- SystemEvents = CreateSystemEvents();-OnLoggerLoaded(true);LogManager.LoggerLoaded += (s, e) => OnLoggerLoaded(false);@@ -270,9 +272,6 @@ namespace Emby.Common.Implementationsprogress.Report(100);}- protected abstract IMemoryStreamFactory CreateMemoryStreamProvider();- protected abstract ISystemEvents CreateSystemEvents();-protected virtual void OnLoggerLoaded(bool isFirstLoad){Logger.Info("Application version: {0}", ApplicationVersion);@@ -524,7 +523,7 @@ return null;RegisterSingleInstance(JsonSerializer);RegisterSingleInstance(XmlSerializer);- RegisterSingleInstance(MemoryStreamProvider);+ RegisterSingleInstance(MemoryStreamFactory);RegisterSingleInstance(SystemEvents);RegisterSingleInstance(LogManager);@@ -535,10 +534,9 @@ return null;RegisterSingleInstance(FileSystemManager);- HttpClient = new HttpClientManager.HttpClientManager(ApplicationPaths, LogManager.GetLogger("HttpClient"), FileSystemManager, MemoryStreamProvider);+ HttpClient = new HttpClientManager.HttpClientManager(ApplicationPaths, LogManager.GetLogger("HttpClient"), FileSystemManager, MemoryStreamFactory);RegisterSingleInstance(HttpClient);- NetworkManager = CreateNetworkManager(LogManager.GetLogger("NetworkManager"));RegisterSingleInstance(NetworkManager);IsoManager = new IsoManager();@@ -591,8 +589,6 @@ return null;}}- protected abstract INetworkManager CreateNetworkManager(ILogger logger);-/// <summary>/// Creates an instance of type and resolves all constructor dependancies/// </summary>diff --git a/Emby.Drawing.ImageMagick/Emby.Drawing.ImageMagick.csproj b/Emby.Drawing.ImageMagick/Emby.Drawing.ImageMagick.csprojnew file mode 100644index 0000000000..98e99c92b1--- /dev/null+++ b/Emby.Drawing.ImageMagick/Emby.Drawing.ImageMagick.csproj@@ -0,0 +1,83 @@+<?xml version="1.0" encoding="utf-8"?>+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />+ <PropertyGroup>+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>+ <ProjectGuid>{6CFEE013-6E7C-432B-AC37-CABF0880C69A}</ProjectGuid>+ <OutputType>Library</OutputType>+ <AppDesignerFolder>Properties</AppDesignerFolder>+ <RootNamespace>Emby.Drawing.ImageMagick</RootNamespace>+ <AssemblyName>Emby.Drawing.ImageMagick</AssemblyName>+ <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>+ <FileAlignment>512</FileAlignment>+ </PropertyGroup>+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">+ <DebugSymbols>true</DebugSymbols>+ <DebugType>full</DebugType>+ <Optimize>false</Optimize>+ <OutputPath>bin\Debug\</OutputPath>+ <DefineConstants>DEBUG;TRACE</DefineConstants>+ <ErrorReport>prompt</ErrorReport>+ <WarningLevel>4</WarningLevel>+ </PropertyGroup>+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">+ <DebugType>pdbonly</DebugType>+ <Optimize>true</Optimize>+ <OutputPath>bin\Release\</OutputPath>+ <DefineConstants>TRACE</DefineConstants>+ <ErrorReport>prompt</ErrorReport>+ <WarningLevel>4</WarningLevel>+ </PropertyGroup>+ <ItemGroup>+ <Reference Include="ImageMagickSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <HintPath>..\packages\ImageMagickSharp.1.0.0.18\lib\net45\ImageMagickSharp.dll</HintPath>+ <Private>True</Private>+ </Reference>+ <Reference Include="System" />+ <Reference Include="System.Core" />+ <Reference Include="System.Xml.Linq" />+ <Reference Include="System.Data.DataSetExtensions" />+ <Reference Include="Microsoft.CSharp" />+ <Reference Include="System.Data" />+ <Reference Include="System.Net.Http" />+ <Reference Include="System.Xml" />+ </ItemGroup>+ <ItemGroup>+ <Compile Include="ImageHelpers.cs" />+ <Compile Include="ImageMagickEncoder.cs" />+ <Compile Include="PercentPlayedDrawer.cs" />+ <Compile Include="PlayedIndicatorDrawer.cs" />+ <Compile Include="Properties\AssemblyInfo.cs" />+ <Compile Include="StripCollageBuilder.cs" />+ <Compile Include="UnplayedCountIndicator.cs" />+ </ItemGroup>+ <ItemGroup>+ <EmbeddedResource Include="fonts\robotoregular.ttf" />+ </ItemGroup>+ <ItemGroup>+ <None Include="packages.config" />+ </ItemGroup>+ <ItemGroup>+ <ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">+ <Project>{9142eefa-7570-41e1-bfcc-468bb571af2f}</Project>+ <Name>MediaBrowser.Common</Name>+ </ProjectReference>+ <ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj">+ <Project>{17e1f4e6-8abd-4fe5-9ecf-43d4b6087ba2}</Project>+ <Name>MediaBrowser.Controller</Name>+ </ProjectReference>+ <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj">+ <Project>{7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b}</Project>+ <Name>MediaBrowser.Model</Name>+ </ProjectReference>+ </ItemGroup>+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.+ Other similar extension points exist, see Microsoft.Common.targets.+ <Target Name="BeforeBuild">+ </Target>+ <Target Name="AfterBuild">+ </Target>+ -->+</Project>\ No newline at end of filediff --git a/Emby.Drawing.ImageMagick/ImageHelpers.cs b/Emby.Drawing.ImageMagick/ImageHelpers.csnew file mode 100644index 0000000000..c623c21aa2--- /dev/null+++ b/Emby.Drawing.ImageMagick/ImageHelpers.cs@@ -0,0 +1,43 @@+using System;+using System.Collections.Generic;+using System.Linq;++namespace Emby.Drawing.ImageMagick+{+ internal static class ImageHelpers+ {+ internal static List<string> ProjectPaths(List<string> paths, int count)+ {+ if (count <= 0)+ {+ throw new ArgumentOutOfRangeException("count");+ }+ if (paths.Count == 0)+ {+ throw new ArgumentOutOfRangeException("paths");+ }++ var list = new List<string>();++ AddToList(list, paths, count);++ return list.Take(count).ToList();+ }++ private static void AddToList(List<string> list, List<string> paths, int count)+ {+ while (list.Count < count)+ {+ foreach (var path in paths)+ {+ list.Add(path);++ if (list.Count >= count)+ {+ return;+ }+ }+ }+ }+ }+}diff --git a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs b/Emby.Drawing.ImageMagick/ImageMagickEncoder.cssimilarity index 100%rename from Emby.Drawing/ImageMagick/ImageMagickEncoder.csrename to Emby.Drawing.ImageMagick/ImageMagickEncoder.csdiff --git a/Emby.Drawing/ImageMagick/PercentPlayedDrawer.cs b/Emby.Drawing.ImageMagick/PercentPlayedDrawer.cssimilarity index 100%rename from Emby.Drawing/ImageMagick/PercentPlayedDrawer.csrename to Emby.Drawing.ImageMagick/PercentPlayedDrawer.csdiff --git a/Emby.Drawing/ImageMagick/PlayedIndicatorDrawer.cs b/Emby.Drawing.ImageMagick/PlayedIndicatorDrawer.cssimilarity index 100%rename from Emby.Drawing/ImageMagick/PlayedIndicatorDrawer.csrename to Emby.Drawing.ImageMagick/PlayedIndicatorDrawer.csdiff --git a/Emby.Drawing.ImageMagick/Properties/AssemblyInfo.cs b/Emby.Drawing.ImageMagick/Properties/AssemblyInfo.csnew file mode 100644index 0000000000..1089607d67--- /dev/null+++ b/Emby.Drawing.ImageMagick/Properties/AssemblyInfo.cs@@ -0,0 +1,36 @@+using System.Reflection;+using System.Runtime.CompilerServices;+using System.Runtime.InteropServices;++// General Information about an assembly is controlled through the following+// set of attributes. Change these attribute values to modify the information+// associated with an assembly.+[assembly: AssemblyTitle("Emby.Drawing.ImageMagick")]+[assembly: AssemblyDescription("")]+[assembly: AssemblyConfiguration("")]+[assembly: AssemblyCompany("")]+[assembly: AssemblyProduct("Emby.Drawing.ImageMagick")]+[assembly: AssemblyCopyright("Copyright © 2016")]+[assembly: AssemblyTrademark("")]+[assembly: AssemblyCulture("")]++// Setting ComVisible to false makes the types in this assembly not visible+// to COM components. If you need to access a type in this assembly from+// 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("6cfee013-6e7c-432b-ac37-cabf0880c69a")]++// Version information for an assembly consists of the following four values:+//+// Major Version+// Minor Version+// Build Number+// Revision+//+// You can specify all the values or you can default the Build and Revision Numbers+// by using the '*' as shown below:+// [assembly: AssemblyVersion("1.0.*")]+[assembly: AssemblyVersion("1.0.0.0")]+[assembly: AssemblyFileVersion("1.0.0.0")]diff --git a/Emby.Drawing/ImageMagick/StripCollageBuilder.cs b/Emby.Drawing.ImageMagick/StripCollageBuilder.cssimilarity index 100%rename from Emby.Drawing/ImageMagick/StripCollageBuilder.csrename to Emby.Drawing.ImageMagick/StripCollageBuilder.csdiff --git a/Emby.Drawing/ImageMagick/UnplayedCountIndicator.cs b/Emby.Drawing.ImageMagick/UnplayedCountIndicator.cssimilarity index 100%rename from Emby.Drawing/ImageMagick/UnplayedCountIndicator.csrename to Emby.Drawing.ImageMagick/UnplayedCountIndicator.csdiff --git a/Emby.Drawing/packages.config b/Emby.Drawing.ImageMagick/packages.configsimilarity index 81%rename from Emby.Drawing/packages.configrename to Emby.Drawing.ImageMagick/packages.configindex be2fb41879..619310d28e 100644--- a/Emby.Drawing/packages.config+++ b/Emby.Drawing.ImageMagick/packages.config@@ -1,4 +1,4 @@<?xml version="1.0" encoding="utf-8"?><packages>- <package id="ImageMagickSharp" version="1.0.0.18" targetFramework="net45" />+ <package id="ImageMagickSharp" version="1.0.0.18" targetFramework="net452" /></packages>\ No newline at end of filediff --git a/Emby.Drawing/GDI/DynamicImageHelpers.cs b/Emby.Drawing.Net/DynamicImageHelpers.cssimilarity index 99%rename from Emby.Drawing/GDI/DynamicImageHelpers.csrename to Emby.Drawing.Net/DynamicImageHelpers.csindex 9cbd6cbe3a..1910f7840d 100644--- a/Emby.Drawing/GDI/DynamicImageHelpers.cs+++ b/Emby.Drawing.Net/DynamicImageHelpers.cs@@ -7,7 +7,7 @@ using MediaBrowser.Common.IO;using MediaBrowser.Controller.IO;using MediaBrowser.Model.IO;-namespace Emby.Drawing.GDI+namespace Emby.Drawing.Net{public static class DynamicImageHelpers{diff --git a/Emby.Drawing.Net/Emby.Drawing.Net.csproj b/Emby.Drawing.Net/Emby.Drawing.Net.csprojnew file mode 100644index 0000000000..16e72a085b--- /dev/null+++ b/Emby.Drawing.Net/Emby.Drawing.Net.csproj@@ -0,0 +1,78 @@+<?xml version="1.0" encoding="utf-8"?>+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />+ <PropertyGroup>+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>+ <ProjectGuid>{C97A239E-A96C-4D64-A844-CCF8CC30AECB}</ProjectGuid>+ <OutputType>Library</OutputType>+ <AppDesignerFolder>Properties</AppDesignerFolder>+ <RootNamespace>Emby.Drawing.Net</RootNamespace>+ <AssemblyName>Emby.Drawing.Net</AssemblyName>+ <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>+ <FileAlignment>512</FileAlignment>+ </PropertyGroup>+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">+ <DebugSymbols>true</DebugSymbols>+ <DebugType>full</DebugType>+ <Optimize>false</Optimize>+ <OutputPath>bin\Debug\</OutputPath>+ <DefineConstants>DEBUG;TRACE</DefineConstants>+ <ErrorReport>prompt</ErrorReport>+ <WarningLevel>4</WarningLevel>+ </PropertyGroup>+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">+ <DebugType>pdbonly</DebugType>+ <Optimize>true</Optimize>+ <OutputPath>bin\Release\</OutputPath>+ <DefineConstants>TRACE</DefineConstants>+ <ErrorReport>prompt</ErrorReport>+ <WarningLevel>4</WarningLevel>+ </PropertyGroup>+ <ItemGroup>+ <Reference Include="System" />+ <Reference Include="System.Core" />+ <Reference Include="System.Drawing" />+ <Reference Include="System.Xml.Linq" />+ <Reference Include="System.Data.DataSetExtensions" />+ <Reference Include="Microsoft.CSharp" />+ <Reference Include="System.Data" />+ <Reference Include="System.Net.Http" />+ <Reference Include="System.Xml" />+ </ItemGroup>+ <ItemGroup>+ <Compile Include="DynamicImageHelpers.cs" />+ <Compile Include="GDIImageEncoder.cs" />+ <Compile Include="ImageExtensions.cs" />+ <Compile Include="ImageHelpers.cs" />+ <Compile Include="PercentPlayedDrawer.cs" />+ <Compile Include="PlayedIndicatorDrawer.cs" />+ <Compile Include="Properties\AssemblyInfo.cs" />+ <Compile Include="UnplayedCountIndicator.cs" />+ </ItemGroup>+ <ItemGroup>+ <ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">+ <Project>{9142eefa-7570-41e1-bfcc-468bb571af2f}</Project>+ <Name>MediaBrowser.Common</Name>+ </ProjectReference>+ <ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj">+ <Project>{17e1f4e6-8abd-4fe5-9ecf-43d4b6087ba2}</Project>+ <Name>MediaBrowser.Controller</Name>+ </ProjectReference>+ <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj">+ <Project>{7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b}</Project>+ <Name>MediaBrowser.Model</Name>+ </ProjectReference>+ </ItemGroup>+ <ItemGroup>+ <EmbeddedResource Include="empty.png" />+ </ItemGroup>+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.+ Other similar extension points exist, see Microsoft.Common.targets.+ <Target Name="BeforeBuild">+ </Target>+ <Target Name="AfterBuild">+ </Target>+ -->+</Project>\ No newline at end of filediff --git a/Emby.Drawing/GDI/GDIImageEncoder.cs b/Emby.Drawing.Net/GDIImageEncoder.cssimilarity index 99%rename from Emby.Drawing/GDI/GDIImageEncoder.csrename to Emby.Drawing.Net/GDIImageEncoder.csindex 2fd2cac7e8..831a579792 100644--- a/Emby.Drawing/GDI/GDIImageEncoder.cs+++ b/Emby.Drawing.Net/GDIImageEncoder.cs@@ -12,7 +12,7 @@ using MediaBrowser.Controller.IO;using MediaBrowser.Model.IO;using ImageFormat = MediaBrowser.Model.Drawing.ImageFormat;-namespace Emby.Drawing.GDI+namespace Emby.Drawing.Net{public class GDIImageEncoder : IImageEncoder{diff --git a/Emby.Drawing/GDI/ImageExtensions.cs b/Emby.Drawing.Net/ImageExtensions.cssimilarity index 99%rename from Emby.Drawing/GDI/ImageExtensions.csrename to Emby.Drawing.Net/ImageExtensions.csindex 6af5a8688f..dec2613d0f 100644--- a/Emby.Drawing/GDI/ImageExtensions.cs+++ b/Emby.Drawing.Net/ImageExtensions.cs@@ -4,7 +4,7 @@ using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;-namespace Emby.Drawing.GDI+namespace Emby.Drawing.Net{public static class ImageExtensions{diff --git a/Emby.Drawing/ImageHelpers.cs b/Emby.Drawing.Net/ImageHelpers.cssimilarity index 97%rename from Emby.Drawing/ImageHelpers.csrename to Emby.Drawing.Net/ImageHelpers.csindex 90bde8b3bd..1afc47cd03 100644--- a/Emby.Drawing/ImageHelpers.cs+++ b/Emby.Drawing.Net/ImageHelpers.cs@@ -2,7 +2,7 @@using System.Collections.Generic;using System.Linq;-namespace Emby.Drawing+namespace Emby.Drawing.Net{internal static class ImageHelpers{diff --git a/Emby.Drawing/GDI/PercentPlayedDrawer.cs b/Emby.Drawing.Net/PercentPlayedDrawer.cssimilarity index 97%rename from Emby.Drawing/GDI/PercentPlayedDrawer.csrename to Emby.Drawing.Net/PercentPlayedDrawer.csindex c7afda60e4..fac15ba47a 100644--- a/Emby.Drawing/GDI/PercentPlayedDrawer.cs+++ b/Emby.Drawing.Net/PercentPlayedDrawer.cs@@ -1,7 +1,7 @@using System;using System.Drawing;-namespace Emby.Drawing.GDI+namespace Emby.Drawing.Net{public class PercentPlayedDrawer{diff --git a/Emby.Drawing/GDI/PlayedIndicatorDrawer.cs b/Emby.Drawing.Net/PlayedIndicatorDrawer.cssimilarity index 97%rename from Emby.Drawing/GDI/PlayedIndicatorDrawer.csrename to Emby.Drawing.Net/PlayedIndicatorDrawer.csindex 4428e4cbac..53683e6f45 100644--- a/Emby.Drawing/GDI/PlayedIndicatorDrawer.cs+++ b/Emby.Drawing.Net/PlayedIndicatorDrawer.cs@@ -1,6 +1,6 @@using System.Drawing;-namespace Emby.Drawing.GDI+namespace Emby.Drawing.Net{public class PlayedIndicatorDrawer{diff --git a/Emby.Drawing.Net/Properties/AssemblyInfo.cs b/Emby.Drawing.Net/Properties/AssemblyInfo.csnew file mode 100644index 0000000000..321c3a297c--- /dev/null+++ b/Emby.Drawing.Net/Properties/AssemblyInfo.cs@@ -0,0 +1,36 @@+using System.Reflection;+using System.Runtime.CompilerServices;+using System.Runtime.InteropServices;++// General Information about an assembly is controlled through the following+// set of attributes. Change these attribute values to modify the information+// associated with an assembly.+[assembly: AssemblyTitle("Emby.Drawing.Net")]+[assembly: AssemblyDescription("")]+[assembly: AssemblyConfiguration("")]+[assembly: AssemblyCompany("")]+[assembly: AssemblyProduct("Emby.Drawing.Net")]+[assembly: AssemblyCopyright("Copyright © 2016")]+[assembly: AssemblyTrademark("")]+[assembly: AssemblyCulture("")]++// Setting ComVisible to false makes the types in this assembly not visible+// to COM components. If you need to access a type in this assembly from+// 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("c97a239e-a96c-4d64-a844-ccf8cc30aecb")]++// Version information for an assembly consists of the following four values:+//+// Major Version+// Minor Version+// Build Number+// Revision+//+// You can specify all the values or you can default the Build and Revision Numbers+// by using the '*' as shown below:+// [assembly: AssemblyVersion("1.0.*")]+[assembly: AssemblyVersion("1.0.0.0")]+[assembly: AssemblyFileVersion("1.0.0.0")]diff --git a/Emby.Drawing/GDI/UnplayedCountIndicator.cs b/Emby.Drawing.Net/UnplayedCountIndicator.cssimilarity index 98%rename from Emby.Drawing/GDI/UnplayedCountIndicator.csrename to Emby.Drawing.Net/UnplayedCountIndicator.csindex 6420abb27f..a38abeb324 100644--- a/Emby.Drawing/GDI/UnplayedCountIndicator.cs+++ b/Emby.Drawing.Net/UnplayedCountIndicator.cs@@ -1,6 +1,6 @@using System.Drawing;-namespace Emby.Drawing.GDI+namespace Emby.Drawing.Net{public class UnplayedCountIndicator{diff --git a/Emby.Drawing/GDI/empty.png b/Emby.Drawing.Net/empty.pngsimilarity index 100%rename from Emby.Drawing/GDI/empty.pngrename to Emby.Drawing.Net/empty.pngdiff --git a/Emby.Drawing/Common/ImageHeader.cs b/Emby.Drawing/Common/ImageHeader.csindex 45a8f0d474..c385779a1e 100644--- a/Emby.Drawing/Common/ImageHeader.cs+++ b/Emby.Drawing/Common/ImageHeader.cs@@ -48,7 +48,7 @@ namespace Emby.Drawing.Common/// <exception cref="ArgumentException">The image was of an unrecognised format.</exception>public static ImageSize GetDimensions(string path, ILogger logger, IFileSystem fileSystem){- using (var fs = File.OpenRead(path))+ using (var fs = fileSystem.OpenRead(path)){using (var binaryReader = new BinaryReader(fs)){diff --git a/Emby.Drawing/Emby.Drawing.csproj b/Emby.Drawing/Emby.Drawing.csprojindex a883d06495..90418f6317 100644--- a/Emby.Drawing/Emby.Drawing.csproj+++ b/Emby.Drawing/Emby.Drawing.csproj@@ -9,10 +9,11 @@<AppDesignerFolder>Properties</AppDesignerFolder><RootNamespace>Emby.Drawing</RootNamespace><AssemblyName>Emby.Drawing</AssemblyName>- <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>+ <TargetFrameworkProfile>Profile7</TargetFrameworkProfile>+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion><FileAlignment>512</FileAlignment><SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>- <TargetFrameworkProfile /></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols>@@ -32,18 +33,6 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>- <Reference Include="ImageMagickSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">- <SpecificVersion>False</SpecificVersion>- <HintPath>..\packages\ImageMagickSharp.1.0.0.18\lib\net45\ImageMagickSharp.dll</HintPath>- </Reference>- <Reference Include="System" />- <Reference Include="System.Core" />- <Reference Include="System.Drawing" />- <Reference Include="System.Xml.Linq" />- <Reference Include="System.Data.DataSetExtensions" />- <Reference Include="Microsoft.CSharp" />- <Reference Include="System.Data" />- <Reference Include="System.Xml" /><Reference Include="TagLib.Portable"><HintPath>..\ThirdParty\taglib\TagLib.Portable.dll</HintPath></Reference>@@ -53,25 +42,9 @@<Link>Properties\SharedVersion.cs</Link></Compile><Compile Include="Common\ImageHeader.cs" />- <Compile Include="GDI\DynamicImageHelpers.cs" />- <Compile Include="GDI\GDIImageEncoder.cs" />- <Compile Include="GDI\ImageExtensions.cs" />- <Compile Include="GDI\PercentPlayedDrawer.cs" />- <Compile Include="GDI\PlayedIndicatorDrawer.cs" />- <Compile Include="GDI\UnplayedCountIndicator.cs" />- <Compile Include="IImageEncoder.cs" />- <Compile Include="ImageHelpers.cs" />- <Compile Include="ImageMagick\ImageMagickEncoder.cs" />- <Compile Include="ImageMagick\StripCollageBuilder.cs" /><Compile Include="ImageProcessor.cs" />- <Compile Include="ImageMagick\PercentPlayedDrawer.cs" />- <Compile Include="ImageMagick\PlayedIndicatorDrawer.cs" /><Compile Include="NullImageEncoder.cs" /><Compile Include="Properties\AssemblyInfo.cs" />- <Compile Include="ImageMagick\UnplayedCountIndicator.cs" />- </ItemGroup>- <ItemGroup>- <EmbeddedResource Include="ImageMagick\fonts\robotoregular.ttf" /></ItemGroup><ItemGroup><ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">@@ -87,13 +60,8 @@<Name>MediaBrowser.Model</Name></ProjectReference></ItemGroup>- <ItemGroup>- <None Include="packages.config" />- </ItemGroup>- <ItemGroup>- <EmbeddedResource Include="GDI\empty.png" />- </ItemGroup>- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />+ <ItemGroup />+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.<Target Name="BeforeBuild">diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.csindex aa18058719..292896856d 100644--- a/Emby.Drawing/ImageProcessor.cs+++ b/Emby.Drawing/ImageProcessor.cs@@ -21,8 +21,8 @@ using MediaBrowser.Common.IO;using MediaBrowser.Controller.IO;using MediaBrowser.Controller.Library;using MediaBrowser.Model.Net;+using MediaBrowser.Model.Threading;using TagLib;-using File = System.IO.File;namespace Emby.Drawing{@@ -65,7 +65,7 @@ namespace Emby.DrawingIFileSystem fileSystem,IJsonSerializer jsonSerializer,IImageEncoder imageEncoder,- int maxConcurrentImageProcesses, Func<ILibraryManager> libraryManager)+ int maxConcurrentImageProcesses, Func<ILibraryManager> libraryManager, ITimerFactory timerFactory){_logger = logger;_fileSystem = fileSystem;@@ -75,7 +75,7 @@ namespace Emby.Drawing_appPaths = appPaths;ImageEnhancers = new List<IImageEnhancer>();- _saveImageSizeTimer = new Timer(SaveImageSizeCallback, null, Timeout.Infinite, Timeout.Infinite);+ _saveImageSizeTimer = timerFactory.Create(SaveImageSizeCallback, null, Timeout.Infinite, Timeout.Infinite);Dictionary<Guid, ImageSize> sizeDictionary;@@ -89,7 +89,7 @@ namespace Emby.Drawing// No biggiesizeDictionary = new Dictionary<Guid, ImageSize>();}- catch (DirectoryNotFoundException)+ catch (IOException){// No biggiesizeDictionary = new Dictionary<Guid, ImageSize>();@@ -286,7 +286,7 @@ namespace Emby.Drawing{try{- File.Copy(src, destination, true);+ _fileSystem.CopyFile(src, destination, true);}catch{@@ -600,7 +600,7 @@ namespace Emby.Drawingreturn ImageHeader.GetDimensions(path, _logger, _fileSystem);}- private readonly Timer _saveImageSizeTimer;+ private readonly ITimer _saveImageSizeTimer;private const int SaveImageSizeTimeout = 5000;private readonly object _saveImageSizeLock = new object();private void StartSaveImageSizeTimer()@@ -801,7 +801,7 @@ namespace Emby.Drawingtry{- File.Copy(tmpPath, enhancedImagePath, true);+ _fileSystem.CopyFile(tmpPath, enhancedImagePath, true);}catch{diff --git a/Emby.Drawing/project.json b/Emby.Drawing/project.jsonnew file mode 100644index 0000000000..fbbe9eaf32--- /dev/null+++ b/Emby.Drawing/project.json@@ -0,0 +1,17 @@+{+ "frameworks":{+ "netstandard1.6":{+ "dependencies":{+ "NETStandard.Library":"1.6.0",+ }+ },+ ".NETPortable,Version=v4.5,Profile=Profile7":{+ "buildOptions": {+ "define": [ ]+ },+ "frameworkAssemblies":{++ }+ }+ }+}\ No newline at end of filediff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/Emby.Server.Core/ApplicationHost.cssimilarity index 95%rename from MediaBrowser.Server.Startup.Common/ApplicationHost.csrename to Emby.Server.Core/ApplicationHost.csindex 87bbc48dbd..9e0aee325b 100644--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs+++ b/Emby.Server.Core/ApplicationHost.cs@@ -1,7 +1,4 @@-using Emby.Drawing;-using Emby.Drawing.GDI;-using Emby.Drawing.ImageMagick;-using MediaBrowser.Api;+using MediaBrowser.Api;using MediaBrowser.Common;using MediaBrowser.Common.Configuration;using MediaBrowser.Common.Events;@@ -66,7 +63,6 @@ using Emby.Common.Implementations;using Emby.Common.Implementations.Archiving;using Emby.Common.Implementations.Networking;using Emby.Common.Implementations.Reflection;-using Emby.Common.Implementations.Security;using Emby.Common.Implementations.Serialization;using Emby.Common.Implementations.TextEncoding;using Emby.Common.Implementations.Updates;@@ -135,13 +131,13 @@ using MediaBrowser.Model.Services;using MediaBrowser.Model.Social;using MediaBrowser.Model.Text;using MediaBrowser.Model.Xml;-using MediaBrowser.Server.Startup.Common.IO;using OpenSubtitlesHandler;using ServiceStack;using SocketHttpListener.Primitives;using StringExtensions = MediaBrowser.Controller.Extensions.StringExtensions;+using Emby.Drawing;-namespace MediaBrowser.Server.Startup.Common+namespace Emby.Server.Core{/// <summary>/// Class CompositionRoot@@ -267,6 +263,10 @@ namespace MediaBrowser.Server.Startup.Commoninternal INativeApp NativeApp { get; set; }internal IPowerManagement PowerManagement { get; private set; }+ internal IImageEncoder ImageEncoder { get; private set; }++ private readonly Action<string, string> _certificateGenerator;+ private readonly Func<string> _defaultUserNameFactory;/// <summary>/// Initializes a new instance of the <see cref="ApplicationHost" /> class.@@ -278,14 +278,30 @@ namespace MediaBrowser.Server.Startup.CommonINativeApp nativeApp,IPowerManagement powerManagement,string releaseAssetFilename,- IEnvironmentInfo environmentInfo)- : base(applicationPaths, logManager, fileSystem, environmentInfo)+ IEnvironmentInfo environmentInfo,+ IImageEncoder imageEncoder,+ ISystemEvents systemEvents,+ IMemoryStreamFactory memoryStreamFactory,+ INetworkManager networkManager,+ Action<string, string> certificateGenerator,+ Func<string> defaultUsernameFactory)+ : base(applicationPaths,+ logManager,+ fileSystem,+ environmentInfo,+ systemEvents,+ memoryStreamFactory,+ networkManager){_startupOptions = options;+ _certificateGenerator = certificateGenerator;_releaseAssetFilename = releaseAssetFilename;+ _defaultUserNameFactory = defaultUsernameFactory;NativeApp = nativeApp;PowerManagement = powerManagement;+ ImageEncoder = imageEncoder;+SetBaseExceptionMessage();}@@ -298,7 +314,7 @@ namespace MediaBrowser.Server.Startup.Common{get{- return _version ?? (_version = NativeApp.GetType().Assembly.GetName().Version);+ return _version ?? (_version = GetAssembly(NativeApp.GetType()).GetName().Version);}}@@ -324,6 +340,11 @@ namespace MediaBrowser.Server.Startup.Common}}+ private Assembly GetAssembly(Type type)+ {+ return type.GetTypeInfo().Assembly;+ }+/// <summary>/// Gets a value indicating whether this instance can self restart./// </summary>@@ -408,21 +429,6 @@ namespace MediaBrowser.Server.Startup.CommonLogManager.RemoveConsoleOutput();}- protected override IMemoryStreamFactory CreateMemoryStreamProvider()- {- if (Environment.OSVersion.Platform == PlatformID.Win32NT)- {- return new RecyclableMemoryStreamProvider();- }-- return new MemoryStreamProvider();- }-- protected override ISystemEvents CreateSystemEvents()- {- return new SystemEvents(LogManager.GetLogger("SystemEvents"));- }-protected override IJsonSerializer CreateJsonSerializer(){try@@ -574,11 +580,11 @@ namespace MediaBrowser.Server.Startup.CommonUserRepository = await GetUserRepository().ConfigureAwait(false);- var displayPreferencesRepo = new SqliteDisplayPreferencesRepository(LogManager, JsonSerializer, ApplicationPaths, NativeApp.GetDbConnector(), MemoryStreamProvider);+ var displayPreferencesRepo = new SqliteDisplayPreferencesRepository(LogManager, JsonSerializer, ApplicationPaths, NativeApp.GetDbConnector(), MemoryStreamFactory);DisplayPreferencesRepository = displayPreferencesRepo;RegisterSingleInstance(DisplayPreferencesRepository);- var itemRepo = new SqliteItemRepository(ServerConfigurationManager, JsonSerializer, LogManager, NativeApp.GetDbConnector(), MemoryStreamProvider);+ var itemRepo = new SqliteItemRepository(ServerConfigurationManager, JsonSerializer, LogManager, NativeApp.GetDbConnector(), MemoryStreamFactory);ItemRepository = itemRepo;RegisterSingleInstance(ItemRepository);@@ -591,7 +597,7 @@ namespace MediaBrowser.Server.Startup.CommonSyncRepository = await GetSyncRepository().ConfigureAwait(false);RegisterSingleInstance(SyncRepository);- UserManager = new UserManager(LogManager.GetLogger("UserManager"), ServerConfigurationManager, UserRepository, XmlSerializer, NetworkManager, () => ImageProcessor, () => DtoService, () => ConnectManager, this, JsonSerializer, FileSystemManager, CryptographyProvider, Environment.UserName);+ UserManager = new UserManager(LogManager.GetLogger("UserManager"), ServerConfigurationManager, UserRepository, XmlSerializer, NetworkManager, () => ImageProcessor, () => DtoService, () => ConnectManager, this, JsonSerializer, FileSystemManager, CryptographyProvider, _defaultUserNameFactory());RegisterSingleInstance(UserManager);LibraryManager = new LibraryManager(Logger, TaskManager, UserManager, ServerConfigurationManager, UserDataManager, () => LibraryMonitor, FileSystemManager, () => ProviderManager, () => UserViewManager);@@ -603,17 +609,17 @@ namespace MediaBrowser.Server.Startup.CommonLibraryMonitor = new LibraryMonitor(LogManager, TaskManager, LibraryManager, ServerConfigurationManager, FileSystemManager, TimerFactory, SystemEvents, EnvironmentInfo);RegisterSingleInstance(LibraryMonitor);- ProviderManager = new ProviderManager(HttpClient, ServerConfigurationManager, LibraryMonitor, LogManager, FileSystemManager, ApplicationPaths, () => LibraryManager, JsonSerializer, MemoryStreamProvider);+ ProviderManager = new ProviderManager(HttpClient, ServerConfigurationManager, LibraryMonitor, LogManager, FileSystemManager, ApplicationPaths, () => LibraryManager, JsonSerializer, MemoryStreamFactory);RegisterSingleInstance(ProviderManager);RegisterSingleInstance<ISearchEngine>(() => new SearchEngine(LogManager, LibraryManager, UserManager));- HttpServer = HttpServerFactory.CreateServer(this, LogManager, ServerConfigurationManager, NetworkManager, MemoryStreamProvider, "Emby", "web/index.html", textEncoding, SocketFactory, CryptographyProvider, JsonSerializer, XmlSerializer, EnvironmentInfo, Certificate);+ HttpServer = HttpServerFactory.CreateServer(this, LogManager, ServerConfigurationManager, NetworkManager, MemoryStreamFactory, "Emby", "web/index.html", textEncoding, SocketFactory, CryptographyProvider, JsonSerializer, XmlSerializer, EnvironmentInfo, Certificate);HttpServer.GlobalResponse = LocalizationManager.GetLocalizedString("StartupEmbyServerIsLoading");RegisterSingleInstance(HttpServer, false);progress.Report(10);- ServerManager = new ServerManager(this, JsonSerializer, LogManager.GetLogger("ServerManager"), ServerConfigurationManager, MemoryStreamProvider, textEncoding);+ ServerManager = new ServerManager(this, JsonSerializer, LogManager.GetLogger("ServerManager"), ServerConfigurationManager, MemoryStreamFactory, textEncoding);RegisterSingleInstance(ServerManager);var innerProgress = new ActionableProgress<double>();@@ -625,7 +631,7 @@ namespace MediaBrowser.Server.Startup.CommonTVSeriesManager = new TVSeriesManager(UserManager, UserDataManager, LibraryManager, ServerConfigurationManager);RegisterSingleInstance(TVSeriesManager);- SyncManager = new SyncManager(LibraryManager, SyncRepository, ImageProcessor, LogManager.GetLogger("SyncManager"), UserManager, () => DtoService, this, TVSeriesManager, () => MediaEncoder, FileSystemManager, () => SubtitleEncoder, ServerConfigurationManager, UserDataManager, () => MediaSourceManager, JsonSerializer, TaskManager, MemoryStreamProvider);+ SyncManager = new SyncManager(LibraryManager, SyncRepository, ImageProcessor, LogManager.GetLogger("SyncManager"), UserManager, () => DtoService, this, TVSeriesManager, () => MediaEncoder, FileSystemManager, () => SubtitleEncoder, ServerConfigurationManager, UserDataManager, () => MediaSourceManager, JsonSerializer, TaskManager, MemoryStreamFactory);RegisterSingleInstance(SyncManager);DtoService = new DtoService(LogManager.GetLogger("DtoService"), LibraryManager, UserDataManager, ItemRepository, ImageProcessor, ServerConfigurationManager, FileSystemManager, ProviderManager, () => ChannelManager, SyncManager, this, () => DeviceManager, () => MediaSourceManager, () => LiveTvManager);@@ -713,7 +719,7 @@ namespace MediaBrowser.Server.Startup.CommonAuthService = new AuthService(UserManager, authContext, ServerConfigurationManager, ConnectManager, SessionManager, DeviceManager);RegisterSingleInstance<IAuthService>(AuthService);- SubtitleEncoder = new SubtitleEncoder(LibraryManager, LogManager.GetLogger("SubtitleEncoder"), ApplicationPaths, FileSystemManager, MediaEncoder, JsonSerializer, HttpClient, MediaSourceManager, MemoryStreamProvider, ProcessFactory, textEncoding);+ SubtitleEncoder = new SubtitleEncoder(LibraryManager, LogManager.GetLogger("SubtitleEncoder"), ApplicationPaths, FileSystemManager, MediaEncoder, JsonSerializer, HttpClient, MediaSourceManager, MemoryStreamFactory, ProcessFactory, textEncoding);RegisterSingleInstance(SubtitleEncoder);await displayPreferencesRepo.Initialize().ConfigureAwait(false);@@ -742,7 +748,7 @@ namespace MediaBrowser.Server.Startup.Common{X509Certificate2 localCert = new X509Certificate2(certificateLocation);//localCert.PrivateKey = PrivateKey.CreateFromFile(pvk_file).RSA;- if (localCert.PrivateKey == null)+ if (!localCert.HasPrivateKey){//throw new FileNotFoundException("Secure requested, no private key included", certificateLocation);return null;@@ -766,38 +772,7 @@ namespace MediaBrowser.Server.Startup.Commonint.TryParse(_startupOptions.GetOption("-imagethreads"), NumberStyles.Any, CultureInfo.InvariantCulture, out maxConcurrentImageProcesses);}- return new ImageProcessor(LogManager.GetLogger("ImageProcessor"), ServerConfigurationManager.ApplicationPaths, FileSystemManager, JsonSerializer, GetImageEncoder(), maxConcurrentImageProcesses, () => LibraryManager);- }-- private IImageEncoder GetImageEncoder()- {- if (!_startupOptions.ContainsOption("-enablegdi"))- {- try- {- return new ImageMagickEncoder(LogManager.GetLogger("ImageMagick"), ApplicationPaths, HttpClient, FileSystemManager, ServerConfigurationManager);- }- catch- {- Logger.Error("Error loading ImageMagick. Will revert to GDI.");- }- }-- try- {- return new GDIImageEncoder(FileSystemManager, LogManager.GetLogger("GDI"));- }- catch- {- Logger.Error("Error loading GDI. Will revert to NullImageEncoder.");- }-- return new NullImageEncoder();- }-- protected override INetworkManager CreateNetworkManager(ILogger logger)- {- return NativeApp.CreateNetworkManager(logger);+ return new ImageProcessor(LogManager.GetLogger("ImageProcessor"), ServerConfigurationManager.ApplicationPaths, FileSystemManager, JsonSerializer, ImageEncoder, maxConcurrentImageProcesses, () => LibraryManager, TimerFactory);}/// <summary>@@ -831,10 +806,11 @@ namespace MediaBrowser.Server.Startup.Common() => SubtitleEncoder,() => MediaSourceManager,HttpClient,- ZipClient, MemoryStreamProvider,+ ZipClient,+ MemoryStreamFactory,ProcessFactory,- Environment.Is64BitOperatingSystem ? (Environment.ProcessorCount > 2 ? 14000 : 20000) : 40000,- Environment.OSVersion.Platform == PlatformID.Win32NT);+ (Environment.ProcessorCount > 2 ? 14000 : 40000),+ EnvironmentInfo.OperatingSystem == MediaBrowser.Model.System.OperatingSystem.Windows);MediaEncoder = mediaEncoder;RegisterSingleInstance(MediaEncoder);@@ -846,7 +822,7 @@ namespace MediaBrowser.Server.Startup.Common/// <returns>Task{IUserRepository}.</returns>private async Task<IUserRepository> GetUserRepository(){- var repo = new SqliteUserRepository(LogManager, ApplicationPaths, JsonSerializer, NativeApp.GetDbConnector(), MemoryStreamProvider);+ var repo = new SqliteUserRepository(LogManager, ApplicationPaths, JsonSerializer, NativeApp.GetDbConnector(), MemoryStreamFactory);await repo.Initialize().ConfigureAwait(false);@@ -1071,7 +1047,7 @@ namespace MediaBrowser.Server.Startup.Commontry{- CertificateGenerator.CreateSelfSignCertificatePfx(certPath, certHost, Logger);+ _certificateGenerator(certPath, certHost);}catch (Exception ex){@@ -1182,51 +1158,51 @@ namespace MediaBrowser.Server.Startup.Common// This will prevent the .dll file from getting locked, and allow us to replace it when needed// Include composable parts in the Api assembly- list.Add(typeof(ApiEntryPoint).Assembly);+ list.Add(GetAssembly(typeof(ApiEntryPoint)));// Include composable parts in the Dashboard assembly- list.Add(typeof(DashboardService).Assembly);+ list.Add(GetAssembly(typeof(DashboardService)));// Include composable parts in the Model assembly- list.Add(typeof(SystemInfo).Assembly);+ list.Add(GetAssembly(typeof(SystemInfo)));// Include composable parts in the Common assembly- list.Add(typeof(IApplicationHost).Assembly);+ list.Add(GetAssembly(typeof(IApplicationHost)));// Include composable parts in the Controller assembly- list.Add(typeof(IServerApplicationHost).Assembly);+ list.Add(GetAssembly(typeof(IServerApplicationHost)));// Include composable parts in the Providers assembly- list.Add(typeof(ProviderUtils).Assembly);+ list.Add(GetAssembly(typeof(ProviderUtils)));// Include composable parts in the Photos assembly- list.Add(typeof(PhotoProvider).Assembly);+ list.Add(GetAssembly(typeof(PhotoProvider)));// Common implementations- list.Add(typeof(TaskManager).Assembly);+ list.Add(GetAssembly(typeof(TaskManager)));// Emby.Server implementations- list.Add(typeof(InstallationManager).Assembly);+ list.Add(GetAssembly(typeof(InstallationManager)));// Emby.Server.Core- list.Add(typeof(ServerApplicationPaths).Assembly);+ list.Add(GetAssembly(typeof(ServerApplicationPaths)));// MediaEncoding- list.Add(typeof(MediaEncoder).Assembly);+ list.Add(GetAssembly(typeof(MediaEncoder)));// Dlna- list.Add(typeof(DlnaEntryPoint).Assembly);+ list.Add(GetAssembly(typeof(DlnaEntryPoint)));// Local metadata- list.Add(typeof(BoxSetXmlSaver).Assembly);+ list.Add(GetAssembly(typeof(BoxSetXmlSaver)));// Xbmc- list.Add(typeof(ArtistNfoProvider).Assembly);+ list.Add(GetAssembly(typeof(ArtistNfoProvider)));list.AddRange(NativeApp.GetAssembliesWithParts());// Include composable parts in the running assembly- list.Add(GetType().Assembly);+ list.Add(GetAssembly(GetType()));return list;}diff --git a/Emby.Server.Core/Emby.Server.Core.xproj b/Emby.Server.Core/Emby.Server.Core.xprojindex 94de75bff9..fefaa6284e 100644--- a/Emby.Server.Core/Emby.Server.Core.xproj+++ b/Emby.Server.Core/Emby.Server.Core.xproj@@ -16,6 +16,14 @@<SchemaVersion>2.0</SchemaVersion></PropertyGroup><ItemGroup>+ <ProjectReference Include="..\Emby.Drawing\Emby.Drawing.csproj" />+ <ProjectReference Include="..\Emby.Photos\Emby.Photos.csproj" />+ <ProjectReference Include="..\MediaBrowser.Api\MediaBrowser.Api.csproj" />+ <ProjectReference Include="..\MediaBrowser.XbmcMetadata\MediaBrowser.XbmcMetadata.csproj" />+ <ProjectReference Include="..\MediaBrowser.LocalMetadata\MediaBrowser.LocalMetadata.csproj" />+ <ProjectReference Include="..\MediaBrowser.WebDashboard\MediaBrowser.WebDashboard.csproj" />+ <ProjectReference Include="..\MediaBrowser.MediaEncoding\MediaBrowser.MediaEncoding.csproj" />+ <ProjectReference Include="..\Emby.Dlna\Emby.Dlna.csproj" /><ProjectReference Include="..\Emby.Server.Implementations\Emby.Server.Implementations.csproj" /><ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj" /><ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj" />diff --git a/MediaBrowser.Server.Startup.Common/HttpServerFactory.cs b/Emby.Server.Core/HttpServerFactory.cssimilarity index 98%rename from MediaBrowser.Server.Startup.Common/HttpServerFactory.csrename to Emby.Server.Core/HttpServerFactory.csindex c0c376996c..d6c07e2581 100644--- a/MediaBrowser.Server.Startup.Common/HttpServerFactory.cs+++ b/Emby.Server.Core/HttpServerFactory.cs@@ -20,7 +20,7 @@ using MediaBrowser.Model.Text;using ServiceStack.Text.Jsv;using SocketHttpListener.Primitives;-namespace MediaBrowser.Server.Startup.Common+namespace Emby.Server.Core{/// <summary>/// Class ServerFactorydiff --git a/Emby.Server.Core/INativeApp.cs b/Emby.Server.Core/INativeApp.csindex a79d1f02b8..a4e4b32217 100644--- a/Emby.Server.Core/INativeApp.cs+++ b/Emby.Server.Core/INativeApp.cs@@ -67,12 +67,6 @@ namespace Emby.Server.Core/// <param name="autorun">if set to <c>true</c> [autorun].</param>void ConfigureAutoRun(bool autorun);- /// <summary>- /// Gets the network manager.- /// </summary>- /// <returns>INetworkManager.</returns>- INetworkManager CreateNetworkManager(ILogger logger);-FFMpegInstallInfo GetFfmpegInstallInfo();void LaunchUrl(string url);diff --git a/Emby.Server.Core/project.json b/Emby.Server.Core/project.jsonindex d5f274858e..5d14aac3f3 100644--- a/Emby.Server.Core/project.json+++ b/Emby.Server.Core/project.json@@ -31,8 +31,33 @@},"MediaBrowser.Server.Implementations": {"target": "project"- }- }+ },+ "Emby.Dlna": {+ "target": "project"+ },+ "Emby.Photos": {+ "target": "project"+ },+ "MediaBrowser.Api": {+ "target": "project"+ },+ "MediaBrowser.MediaEncoding": {+ "target": "project"+ },+ "MediaBrowser.XbmcMetadata": {+ "target": "project"+ },+ "MediaBrowser.LocalMetadata": {+ "target": "project"+ },+ "MediaBrowser.WebDashboard": {+ "target": "project"+ },+ "Emby.Drawing": {+ "target": "project"+ },+ "SocketHttpListener.Portable": "1.0.50"+ }},"netstandard1.6": {"imports": "dnxcore50",@@ -41,6 +66,10 @@"System.AppDomain": "2.0.11","System.Globalization.Extensions": "4.0.1","System.IO.FileSystem.Watcher": "4.0.0",+ "System.Net.Security": "4.0.0",+ "System.Security.Cryptography.X509Certificates": "4.1.0",+ "System.Runtime.Extensions": "4.1.0",+ "SocketHttpListener.Portable": "1.0.50","MediaBrowser.Model": {"target": "project"},@@ -61,6 +90,30 @@},"MediaBrowser.Server.Implementations": {"target": "project"+ },+ "Emby.Dlna": {+ "target": "project"+ },+ "Emby.Photos": {+ "target": "project"+ },+ "MediaBrowser.Api": {+ "target": "project"+ },+ "MediaBrowser.MediaEncoding": {+ "target": "project"+ },+ "MediaBrowser.XbmcMetadata": {+ "target": "project"+ },+ "MediaBrowser.LocalMetadata": {+ "target": "project"+ },+ "MediaBrowser.WebDashboard": {+ "target": "project"+ },+ "Emby.Drawing": {+ "target": "project"}}}diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex f65b8ac4aa..72053daa07 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -278,9 +278,6 @@<Reference Include="ServiceStack"><HintPath>..\ThirdParty\ServiceStack\ServiceStack.dll</HintPath></Reference>- <Reference Include="SocketHttpListener.Portable">- <HintPath>..\ThirdParty\emby\SocketHttpListener.Portable.dll</HintPath>- </Reference><Reference Include="UniversalDetector, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"><HintPath>..\packages\UniversalDetector.1.0.1\lib\portable-net45+sl4+wp71+win8+wpa81\UniversalDetector.dll</HintPath><Private>True</Private>diff --git a/Emby.Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.cssimilarity index 96%rename from Emby.Drawing/IImageEncoder.csrename to MediaBrowser.Controller/Drawing/IImageEncoder.csindex 73b5398993..de1909e542 100644--- a/Emby.Drawing/IImageEncoder.cs+++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs@@ -1,8 +1,7 @@-using MediaBrowser.Controller.Drawing;+using System;using MediaBrowser.Model.Drawing;-using System;-namespace Emby.Drawing+namespace MediaBrowser.Controller.Drawing{public interface IImageEncoder : IDisposable{diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csprojindex 518daa6d75..2f96088ab9 100644--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj@@ -88,6 +88,7 @@<Compile Include="Dlna\IEventManager.cs" /><Compile Include="Dlna\IMediaReceiverRegistrar.cs" /><Compile Include="Dlna\IUpnpService.cs" />+ <Compile Include="Drawing\IImageEncoder.cs" /><Compile Include="Drawing\IImageProcessor.cs" /><Compile Include="Drawing\ImageCollageOptions.cs" /><Compile Include="Drawing\ImageProcessingOptions.cs" />diff --git a/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.csindex 72cd1c4c8e..f430df2971 100644--- a/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs@@ -11,28 +11,28 @@ using MediaBrowser.Model.Xml;namespace MediaBrowser.LocalMetadata.Providers{- public class PersonXmlProvider : BaseXmlProvider<Person>- {- private readonly ILogger _logger;- private readonly IProviderManager _providerManager;- protected IXmlReaderSettingsFactory XmlReaderSettingsFactory { get; private set; }+ //public class PersonXmlProvider : BaseXmlProvider<Person>+ //{+ // private readonly ILogger _logger;+ // private readonly IProviderManager _providerManager;+ // protected IXmlReaderSettingsFactory XmlReaderSettingsFactory { get; private set; }- public PersonXmlProvider(IFileSystem fileSystem, ILogger logger, IProviderManager providerManager, IXmlReaderSettingsFactory xmlReaderSettingsFactory)- : base(fileSystem)- {- _logger = logger;- _providerManager = providerManager;- XmlReaderSettingsFactory = xmlReaderSettingsFactory;- }+ // public PersonXmlProvider(IFileSystem fileSystem, ILogger logger, IProviderManager providerManager, IXmlReaderSettingsFactory xmlReaderSettingsFactory)+ // : base(fileSystem)+ // {+ // _logger = logger;+ // _providerManager = providerManager;+ // XmlReaderSettingsFactory = xmlReaderSettingsFactory;+ // }- protected override void Fetch(MetadataResult<Person> result, string path, CancellationToken cancellationToken)- {- new BaseItemXmlParser<Person>(_logger, _providerManager, XmlReaderSettingsFactory, FileSystem).Fetch(result, path, cancellationToken);- }+ // protected override void Fetch(MetadataResult<Person> result, string path, CancellationToken cancellationToken)+ // {+ // new BaseItemXmlParser<Person>(_logger, _providerManager, XmlReaderSettingsFactory, FileSystem).Fetch(result, path, cancellationToken);+ // }- protected override FileSystemMetadata GetXmlFile(ItemInfo info, IDirectoryService directoryService)- {- return directoryService.GetFile(Path.Combine(info.Path, "person.xml"));- }- }+ // protected override FileSystemMetadata GetXmlFile(ItemInfo info, IDirectoryService directoryService)+ // {+ // return directoryService.GetFile(Path.Combine(info.Path, "person.xml"));+ // }+ //}}diff --git a/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.csindex 84b766a6ac..8409e483d0 100644--- a/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs@@ -10,48 +10,48 @@ using MediaBrowser.Model.Xml;namespace MediaBrowser.LocalMetadata.Savers{- /// <summary>- /// Class PersonXmlSaver- /// </summary>- public class PersonXmlSaver : BaseXmlSaver- {- public override bool IsEnabledFor(IHasMetadata item, ItemUpdateType updateType)- {- if (!item.SupportsLocalMetadata)- {- return false;- }-- return item is Person && updateType >= ItemUpdateType.MetadataDownload;- }-- protected override List<string> GetTagsUsed()- {- var list = new List<string>- {- "PlaceOfBirth"- };-- return list;- }-- protected override void WriteCustomElements(IHasMetadata item, XmlWriter writer)- {- var person = (Person)item;-- if (person.ProductionLocations.Count > 0)- {- writer.WriteElementString("PlaceOfBirth", person.ProductionLocations[0]);- }- }-- protected override string GetLocalSavePath(IHasMetadata item)- {- return Path.Combine(item.Path, "person.xml");- }-- public PersonXmlSaver(IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, IUserManager userManager, IUserDataManager userDataManager, ILogger logger, IXmlReaderSettingsFactory xmlReaderSettingsFactory) : base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger, xmlReaderSettingsFactory)- {- }- }+ ///// <summary>+ ///// Class PersonXmlSaver+ ///// </summary>+ //public class PersonXmlSaver : BaseXmlSaver+ //{+ // public override bool IsEnabledFor(IHasMetadata item, ItemUpdateType updateType)+ // {+ // if (!item.SupportsLocalMetadata)+ // {+ // return false;+ // }++ // return item is Person && updateType >= ItemUpdateType.MetadataDownload;+ // }++ // protected override List<string> GetTagsUsed()+ // {+ // var list = new List<string>+ // {+ // "PlaceOfBirth"+ // };++ // return list;+ // }++ // protected override void WriteCustomElements(IHasMetadata item, XmlWriter writer)+ // {+ // var person = (Person)item;++ // if (person.ProductionLocations.Count > 0)+ // {+ // writer.WriteElementString("PlaceOfBirth", person.ProductionLocations[0]);+ // }+ // }++ // protected override string GetLocalSavePath(IHasMetadata item)+ // {+ // return Path.Combine(item.Path, "person.xml");+ // }++ // public PersonXmlSaver(IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, IUserManager userManager, IUserDataManager userDataManager, ILogger logger, IXmlReaderSettingsFactory xmlReaderSettingsFactory) : base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger, xmlReaderSettingsFactory)+ // {+ // }+ //}}diff --git a/MediaBrowser.Server.Startup.Common/ImageEncoderHelper.cs b/MediaBrowser.Server.Startup.Common/ImageEncoderHelper.csnew file mode 100644index 0000000000..e66c000d9f--- /dev/null+++ b/MediaBrowser.Server.Startup.Common/ImageEncoderHelper.cs@@ -0,0 +1,46 @@+using Emby.Drawing;+using Emby.Drawing.Net;+using Emby.Drawing.ImageMagick;+using Emby.Server.Core;+using MediaBrowser.Common.Net;+using MediaBrowser.Controller.Configuration;+using MediaBrowser.Controller.Drawing;+using MediaBrowser.Model.IO;+using MediaBrowser.Model.Logging;++namespace MediaBrowser.Server.Startup.Common+{+ public class ImageEncoderHelper+ {+ public static IImageEncoder GetImageEncoder(ILogger logger,+ ILogManager logManager,+ IFileSystem fileSystem,+ StartupOptions startupOptions,+ IHttpClient httpClient,+ IServerConfigurationManager config)+ {+ if (!startupOptions.ContainsOption("-enablegdi"))+ {+ try+ {+ return new ImageMagickEncoder(logManager.GetLogger("ImageMagick"), config.ApplicationPaths, httpClient, fileSystem, config);+ }+ catch+ {+ logger.Error("Error loading ImageMagick. Will revert to GDI.");+ }+ }++ try+ {+ return new GDIImageEncoder(fileSystem, logManager.GetLogger("GDI"));+ }+ catch+ {+ logger.Error("Error loading GDI. Will revert to NullImageEncoder.");+ }++ return new NullImageEncoder();+ }+ }+}diff --git a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csprojindex ff7456977b..262b0e2e8b 100644--- a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj+++ b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj@@ -60,8 +60,8 @@<SpecificVersion>False</SpecificVersion><HintPath>..\packages\Mono.Posix.4.0.0.0\lib\net40\Mono.Posix.dll</HintPath></Reference>- <Reference Include="Patterns.Logging, Version=1.0.6151.30227, Culture=neutral, processorArchitecture=MSIL">- <HintPath>..\packages\Patterns.Logging.1.0.0.6\lib\portable-net45+win8\Patterns.Logging.dll</HintPath>+ <Reference Include="Patterns.Logging, Version=1.0.6159.22455, Culture=neutral, processorArchitecture=MSIL">+ <HintPath>..\packages\Patterns.Logging.1.0.0.7\lib\netstandard1.3\Patterns.Logging.dll</HintPath><Private>True</Private></Reference><Reference Include="ServiceStack, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">@@ -76,9 +76,9 @@<HintPath>..\packages\SimpleInjector.3.2.4\lib\net45\SimpleInjector.dll</HintPath><Private>True</Private></Reference>- <Reference Include="SocketHttpListener.Portable, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">- <SpecificVersion>False</SpecificVersion>- <HintPath>..\ThirdParty\emby\SocketHttpListener.Portable.dll</HintPath>+ <Reference Include="SocketHttpListener, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <HintPath>..\packages\SocketHttpListener.Portable.1.0.50\lib\portable-net45+win8\SocketHttpListener.dll</HintPath>+ <Private>True</Private></Reference><Reference Include="System" /><Reference Include="System.Configuration" />@@ -93,7 +93,6 @@<Compile Include="..\SharedVersion.cs"><Link>Properties\SharedVersion.cs</Link></Compile>- <Compile Include="ApplicationHost.cs" /><Compile Include="ApplicationPathHelper.cs" /><Compile Include="Cryptography\ASN1.cs" /><Compile Include="Cryptography\ASN1Convert.cs" />@@ -113,7 +112,7 @@<Compile Include="Cryptography\X509Extension.cs" /><Compile Include="Cryptography\X509Extensions.cs" /><Compile Include="Cryptography\X520Attributes.cs" />- <Compile Include="HttpServerFactory.cs" />+ <Compile Include="ImageEncoderHelper.cs" /><Compile Include="IO\MemoryStreamProvider.cs" /><Compile Include="LiveTv\TunerHosts\SatIp\ChannelScan.cs" /><Compile Include="LiveTv\TunerHosts\SatIp\Rtcp\ReportBlock.cs" />@@ -145,6 +144,14 @@<Project>{805844ab-e92f-45e6-9d99-4f6d48d129a5}</Project><Name>Emby.Dlna</Name></ProjectReference>+ <ProjectReference Include="..\Emby.Drawing.ImageMagick\Emby.Drawing.ImageMagick.csproj">+ <Project>{6cfee013-6e7c-432b-ac37-cabf0880c69a}</Project>+ <Name>Emby.Drawing.ImageMagick</Name>+ </ProjectReference>+ <ProjectReference Include="..\Emby.Drawing.Net\Emby.Drawing.Net.csproj">+ <Project>{c97a239e-a96c-4d64-a844-ccf8cc30aecb}</Project>+ <Name>Emby.Drawing.Net</Name>+ </ProjectReference><ProjectReference Include="..\Emby.Drawing\Emby.Drawing.csproj"><Project>{08fff49b-f175-4807-a2b5-73b0ebd9f716}</Project><Name>Emby.Drawing</Name>diff --git a/MediaBrowser.Server.Startup.Common/packages.config b/MediaBrowser.Server.Startup.Common/packages.configindex 838fbe667d..b364fe32bd 100644--- a/MediaBrowser.Server.Startup.Common/packages.config+++ b/MediaBrowser.Server.Startup.Common/packages.config@@ -4,7 +4,8 @@<package id="MediaBrowser.Naming" version="1.0.0.59" targetFramework="net46" /><package id="Microsoft.IO.RecyclableMemoryStream" version="1.1.0.0" targetFramework="net46" /><package id="Mono.Posix" version="4.0.0.0" targetFramework="net45" />- <package id="Patterns.Logging" version="1.0.0.6" targetFramework="net46" />+ <package id="Patterns.Logging" version="1.0.0.7" targetFramework="net46" /><package id="ServiceStack.Text" version="4.5.4" targetFramework="net46" /><package id="SimpleInjector" version="3.2.4" targetFramework="net46" />+ <package id="SocketHttpListener.Portable" version="1.0.50" targetFramework="net46" /></packages>\ No newline at end of filediff --git a/MediaBrowser.sln b/MediaBrowser.slnindex 1ecf672cbc..aff9c5c119 100644--- a/MediaBrowser.sln+++ b/MediaBrowser.sln@@ -74,6 +74,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Dlna", "Emby.Dlna\EmbyEndProjectProject("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Emby.Server.Core", "Emby.Server.Core\Emby.Server.Core.xproj", "{65AA7D67-8059-40CD-91F1-16D02687226C}"EndProject+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing.ImageMagick", "Emby.Drawing.ImageMagick\Emby.Drawing.ImageMagick.csproj", "{6CFEE013-6E7C-432B-AC37-CABF0880C69A}"+EndProject+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing.Net", "Emby.Drawing.Net\Emby.Drawing.Net.csproj", "{C97A239E-A96C-4D64-A844-CCF8CC30AECB}"+EndProjectGlobalGlobalSection(SolutionConfigurationPlatforms) = preSolutionDebug|Any CPU = Debug|Any CPU@@ -718,6 +722,66 @@ Global{65AA7D67-8059-40CD-91F1-16D02687226C}.Release|x64.Build.0 = Release|Any CPU{65AA7D67-8059-40CD-91F1-16D02687226C}.Release|x86.ActiveCfg = Release|Any CPU{65AA7D67-8059-40CD-91F1-16D02687226C}.Release|x86.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|Win32.ActiveCfg = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|Win32.Build.0 = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|x64.ActiveCfg = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|x64.Build.0 = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|x86.ActiveCfg = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Debug|x86.Build.0 = Debug|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|Any CPU.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|Any CPU.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|Mixed Platforms.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|Mixed Platforms.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|Win32.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|Win32.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|x64.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|x64.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|x86.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release Mono|x86.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|Any CPU.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|Mixed Platforms.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|Win32.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|Win32.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|x64.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|x64.Build.0 = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|x86.ActiveCfg = Release|Any CPU+ {6CFEE013-6E7C-432B-AC37-CABF0880C69A}.Release|x86.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|Any CPU.Build.0 = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|Win32.ActiveCfg = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|Win32.Build.0 = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|x64.ActiveCfg = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|x64.Build.0 = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|x86.ActiveCfg = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Debug|x86.Build.0 = Debug|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|Any CPU.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|Any CPU.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|Mixed Platforms.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|Mixed Platforms.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|Win32.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|Win32.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|x64.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|x64.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|x86.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release Mono|x86.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|Any CPU.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|Any CPU.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|Mixed Platforms.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|Win32.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|Win32.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|x64.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|x64.Build.0 = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|x86.ActiveCfg = Release|Any CPU+ {C97A239E-A96C-4D64-A844-CCF8CC30AECB}.Release|x86.Build.0 = Release|Any CPUEndGlobalSectionGlobalSection(SolutionProperties) = preSolutionHideSolutionNode = FALSE