From 5bb864a0c4e0d38db10a4c844a9ace1a46ac7b4b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 11 Nov 2016 00:23:15 -0500 Subject: [PATCH] move class to new core project --- Emby.Server.Core/Emby.Server.Core.xproj | 7 ++++--- .../StartupOptions.cs | 2 +- Emby.Server.Core/project.json | 10 +++++++--- .../MediaBrowser.Server.Mono.csproj | 3 +++ MediaBrowser.Server.Mono/Native/MonoApp.cs | 1 + MediaBrowser.Server.Mono/Program.cs | 1 + MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 1 + .../FFMpeg/FFMpegLoader.cs | 4 +--- MediaBrowser.Server.Startup.Common/INativeApp.cs | 1 + .../MediaBrowser.Server.Startup.Common.csproj | 4 +++- MediaBrowser.ServerApplication/MainStartup.cs | 1 + .../MediaBrowser.ServerApplication.csproj | 3 +++ MediaBrowser.ServerApplication/Native/WindowsApp.cs | 1 + 13 files changed, 28 insertions(+), 11 deletions(-) rename {MediaBrowser.Server.Startup.Common => Emby.Server.Core}/StartupOptions.cs (93%) diff --git a/Emby.Server.Core/Emby.Server.Core.xproj b/Emby.Server.Core/Emby.Server.Core.xproj index f7f252dfb..704e84d26 100644 --- a/Emby.Server.Core/Emby.Server.Core.xproj +++ b/Emby.Server.Core/Emby.Server.Core.xproj @@ -4,7 +4,6 @@ 14.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - 65aa7d67-8059-40cd-91f1-16d02687226c @@ -13,9 +12,11 @@ .\bin\ v4.5.2 - 2.0 + + + - + \ No newline at end of file diff --git a/MediaBrowser.Server.Startup.Common/StartupOptions.cs b/Emby.Server.Core/StartupOptions.cs similarity index 93% rename from MediaBrowser.Server.Startup.Common/StartupOptions.cs rename to Emby.Server.Core/StartupOptions.cs index 1acaf6348..5da42394d 100644 --- a/MediaBrowser.Server.Startup.Common/StartupOptions.cs +++ b/Emby.Server.Core/StartupOptions.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace MediaBrowser.Server.Startup.Common +namespace Emby.Server.Core { public class StartupOptions { diff --git a/Emby.Server.Core/project.json b/Emby.Server.Core/project.json index 94ca05af0..678026745 100644 --- a/Emby.Server.Core/project.json +++ b/Emby.Server.Core/project.json @@ -1,4 +1,4 @@ -{ +{ "version": "1.0.0-*", "dependencies": { @@ -11,14 +11,18 @@ }, "dependencies": { - + "MediaBrowser.Model": { + "target": "project" + } } }, "netstandard1.6": { "imports": "dnxcore50", "dependencies": { "NETStandard.Library": "1.6.0", - + "MediaBrowser.Model": { + "target": "project" + } } } } diff --git a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj index c784f1bb3..d59725d1d 100644 --- a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj +++ b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj @@ -61,6 +61,9 @@ ..\ThirdParty\emby\Emby.Common.Implementations.dll + + ..\ThirdParty\emby\Emby.Server.Core.dll + False ..\packages\Mono.Posix.4.0.0.0\lib\net40\Mono.Posix.dll diff --git a/MediaBrowser.Server.Mono/Native/MonoApp.cs b/MediaBrowser.Server.Mono/Native/MonoApp.cs index a36475815..64d8488ab 100644 --- a/MediaBrowser.Server.Mono/Native/MonoApp.cs +++ b/MediaBrowser.Server.Mono/Native/MonoApp.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; using System.Reflection; using System.Text.RegularExpressions; +using Emby.Server.Core; using MediaBrowser.Model.System; using MediaBrowser.Server.Startup.Common.Persistence; using MediaBrowser.Server.Startup.Common.FFMpeg; diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs index 77fa6fd91..d45359627 100644 --- a/MediaBrowser.Server.Mono/Program.cs +++ b/MediaBrowser.Server.Mono/Program.cs @@ -14,6 +14,7 @@ using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; using Emby.Common.Implementations.IO; using Emby.Common.Implementations.Logging; +using Emby.Server.Core; namespace MediaBrowser.Server.Mono { diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index 5cadd99c4..f0c134c08 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -89,6 +89,7 @@ using Emby.Dlna.ContentDirectory; using Emby.Dlna.Main; using Emby.Dlna.MediaReceiverRegistrar; using Emby.Dlna.Ssdp; +using Emby.Server.Core; using Emby.Server.Implementations.Activity; using Emby.Server.Implementations.Channels; using Emby.Server.Implementations.Collections; diff --git a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs index 757e43db6..e40dfe45f 100644 --- a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs +++ b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs @@ -9,9 +9,7 @@ using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; -using MediaBrowser.Common.IO; -using MediaBrowser.Controller.IO; -using MediaBrowser.Model.IO; +using Emby.Server.Core; namespace MediaBrowser.Server.Startup.Common.FFMpeg { diff --git a/MediaBrowser.Server.Startup.Common/INativeApp.cs b/MediaBrowser.Server.Startup.Common/INativeApp.cs index ca0e9d21e..4dd6ecfe1 100644 --- a/MediaBrowser.Server.Startup.Common/INativeApp.cs +++ b/MediaBrowser.Server.Startup.Common/INativeApp.cs @@ -2,6 +2,7 @@ using MediaBrowser.Model.Logging; using System.Collections.Generic; using System.Reflection; +using Emby.Server.Core; using MediaBrowser.Server.Startup.Common.FFMpeg; using MediaBrowser.Server.Startup.Common.Persistence; diff --git a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj index 272ad3b09..8976582b1 100644 --- a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj +++ b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj @@ -37,6 +37,9 @@ ..\ThirdParty\emby\Emby.Common.Implementations.dll + + ..\ThirdParty\emby\Emby.Server.Core.dll + ..\packages\ini-parser.2.3.0\lib\net20\INIFileParser.dll True @@ -166,7 +169,6 @@ - diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index a3f409636..01657868d 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -20,6 +20,7 @@ using System.Threading.Tasks; using System.Windows.Forms; using Emby.Common.Implementations.IO; using Emby.Common.Implementations.Logging; +using Emby.Server.Core; using ImageMagickSharp; using MediaBrowser.Common.Net; diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index 4b682ed3e..2c78c22c9 100644 --- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj +++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj @@ -67,6 +67,9 @@ ..\ThirdParty\emby\Emby.Common.Implementations.dll + + ..\ThirdParty\emby\Emby.Server.Core.dll + False ..\packages\ImageMagickSharp.1.0.0.18\lib\net45\ImageMagickSharp.dll diff --git a/MediaBrowser.ServerApplication/Native/WindowsApp.cs b/MediaBrowser.ServerApplication/Native/WindowsApp.cs index 87139cc72..82d448994 100644 --- a/MediaBrowser.ServerApplication/Native/WindowsApp.cs +++ b/MediaBrowser.ServerApplication/Native/WindowsApp.cs @@ -8,6 +8,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; using System.Windows.Forms; +using Emby.Server.Core; using MediaBrowser.Common.IO; using MediaBrowser.Controller.IO; using MediaBrowser.Model.IO;