The Free Software Media System - Server Backend & API
assembly consolidation
LukePulverenti170154df18fd
diff --git a/MediaBrowser.ApiInteraction/BaseApiClient.cs b/MediaBrowser.ApiInteraction/BaseApiClient.csindex 4bd4ace508..bcbcc53afb 100644--- a/MediaBrowser.ApiInteraction/BaseApiClient.cs+++ b/MediaBrowser.ApiInteraction/BaseApiClient.cs@@ -26,13 +26,13 @@ namespace MediaBrowser.ApiInteraction/// Gets the protobuf serializer./// </summary>/// <value>The protobuf serializer.</value>- public IProtobufSerializer ProtobufSerializer { get; private set; }+ public IProtobufSerializer ProtobufSerializer { get; set; }/// <summary>/// Gets the json serializer./// </summary>/// <value>The json serializer.</value>- public IJsonSerializer JsonSerializer { get; private set; }+ public IJsonSerializer JsonSerializer { get; set; }/// <summary>/// Initializes a new instance of the <see cref="BaseApiClient" /> class.diff --git a/MediaBrowser.Logging.NLog/LogHelper.cs b/MediaBrowser.Common.Implementations/Logging/LogHelper.cssimilarity index 98%rename from MediaBrowser.Logging.NLog/LogHelper.csrename to MediaBrowser.Common.Implementations/Logging/LogHelper.csindex 93df4b2aa6..4afd302d5b 100644--- a/MediaBrowser.Logging.NLog/LogHelper.cs+++ b/MediaBrowser.Common.Implementations/Logging/LogHelper.cs@@ -1,7 +1,7 @@using System;using System.Text;-namespace MediaBrowser.Logging.Nlog+namespace MediaBrowser.Common.Implementations.Logging{/// <summary>/// Class LogHelperdiff --git a/MediaBrowser.Logging.NLog/NLogger.cs b/MediaBrowser.Common.Implementations/Logging/NLogger.cssimilarity index 99%rename from MediaBrowser.Logging.NLog/NLogger.csrename to MediaBrowser.Common.Implementations/Logging/NLogger.csindex b3aedbf7c3..c87b58f70a 100644--- a/MediaBrowser.Logging.NLog/NLogger.cs+++ b/MediaBrowser.Common.Implementations/Logging/NLogger.cs@@ -2,7 +2,7 @@using System;using System.Text;-namespace MediaBrowser.Logging.Nlog+namespace MediaBrowser.Common.Implementations.Logging{/// <summary>/// Class NLoggerdiff --git a/MediaBrowser.Logging.NLog/NlogManager.cs b/MediaBrowser.Common.Implementations/Logging/NlogManager.cssimilarity index 98%rename from MediaBrowser.Logging.NLog/NlogManager.csrename to MediaBrowser.Common.Implementations/Logging/NlogManager.csindex fa69b94a01..1e525137cf 100644--- a/MediaBrowser.Logging.NLog/NlogManager.cs+++ b/MediaBrowser.Common.Implementations/Logging/NlogManager.cs@@ -6,7 +6,7 @@ using System;using System.IO;using System.Threading.Tasks;-namespace MediaBrowser.Logging.Nlog+namespace MediaBrowser.Common.Implementations.Logging{/// <summary>/// Class NlogManagerdiff --git a/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csproj b/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csprojindex 59ec01aaf1..52be41ddde 100644--- a/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csproj+++ b/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csproj@@ -35,6 +35,9 @@<RunPostBuildEvent>Always</RunPostBuildEvent></PropertyGroup><ItemGroup>+ <Reference Include="NLog">+ <HintPath>..\packages\NLog.2.0.0.2000\lib\net40\NLog.dll</HintPath>+ </Reference><Reference Include="protobuf-net"><HintPath>..\packages\protobuf-net.2.0.0.621\lib\net40\protobuf-net.dll</HintPath></Reference>@@ -56,6 +59,9 @@</Compile><Compile Include="BaseApplicationHost.cs" /><Compile Include="BaseApplicationPaths.cs" />+ <Compile Include="Logging\LogHelper.cs" />+ <Compile Include="Logging\NLogger.cs" />+ <Compile Include="Logging\NlogManager.cs" /><Compile Include="Properties\AssemblyInfo.cs" /><Compile Include="ScheduledTasks\ScheduledTaskWorker.cs" /><Compile Include="ScheduledTasks\TaskManager.cs" />diff --git a/MediaBrowser.Common.Implementations/packages.config b/MediaBrowser.Common.Implementations/packages.configindex 63fd0052fc..2578e48f3b 100644--- a/MediaBrowser.Common.Implementations/packages.config+++ b/MediaBrowser.Common.Implementations/packages.config@@ -1,5 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="NLog" version="2.0.0.2000" targetFramework="net45" /><package id="protobuf-net" version="2.0.0.621" targetFramework="net45" /><package id="ServiceStack.Text" version="3.9.37" targetFramework="net45" /><package id="SimpleInjector" version="2.0.0-beta5" targetFramework="net45" />diff --git a/MediaBrowser.Controller/Localization/LocalizedStrings.cs b/MediaBrowser.Controller/Localization/LocalizedStrings.csindex 6405be5f84..cd1a570470 100644--- a/MediaBrowser.Controller/Localization/LocalizedStrings.cs+++ b/MediaBrowser.Controller/Localization/LocalizedStrings.cs@@ -88,7 +88,7 @@ namespace MediaBrowser.Controller.Localization{using (var fs = new FileStream(file, FileMode.Open, FileAccess.Read)){- strings = (LocalizedStringData)xs.Deserialize(fs);+ strings = (BaseStrings)xs.Deserialize(fs);}}else@@ -100,7 +100,7 @@ namespace MediaBrowser.Controller.Localization{//only re-save the english version as that is the one defined internallystrings = new BaseStrings {FileName = file};- strings.Save();+ //strings.Save();}return strings;diff --git a/MediaBrowser.Logging.NLog/MediaBrowser.Logging.NLog.csproj b/MediaBrowser.Logging.NLog/MediaBrowser.Logging.NLog.csprojdeleted file mode 100644index 1bc6086790..0000000000--- a/MediaBrowser.Logging.NLog/MediaBrowser.Logging.NLog.csproj+++ /dev/null@@ -1,76 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<Project ToolsVersion="4.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>{67310740-0EC4-4DC2-9921-33DF38B20167}</ProjectGuid>- <OutputType>Library</OutputType>- <AppDesignerFolder>Properties</AppDesignerFolder>- <RootNamespace>MediaBrowser.Logging.NLog</RootNamespace>- <AssemblyName>MediaBrowser.Logging.NLog</AssemblyName>- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>- <FileAlignment>512</FileAlignment>- <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>- <RestorePackages>true</RestorePackages>- </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="NLog">- <HintPath>..\packages\NLog.2.0.0.2000\lib\net40\NLog.dll</HintPath>- </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.Xml" />- </ItemGroup>- <ItemGroup>- <Compile Include="..\SharedVersion.cs">- <Link>Properties\SharedVersion.cs</Link>- </Compile>- <Compile Include="LogHelper.cs" />- <Compile Include="NLogger.cs" />- <Compile Include="NlogManager.cs" />- <Compile Include="Properties\AssemblyInfo.cs" />- </ItemGroup>- <ItemGroup>- <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj">- <Project>{7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b}</Project>- <Name>MediaBrowser.Model</Name>- </ProjectReference>- </ItemGroup>- <ItemGroup>- <None Include="packages.config" />- </ItemGroup>- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />- <Import Project="$(SolutionDir)\.nuget\nuget.targets" />- <PropertyGroup>- <PostBuildEvent>xcopy "$(TargetPath)" "$(SolutionDir)\Nuget\dlls\" /y /d /r /i</PostBuildEvent>- </PropertyGroup>- <!-- 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/MediaBrowser.Logging.NLog/Properties/AssemblyInfo.cs b/MediaBrowser.Logging.NLog/Properties/AssemblyInfo.csdeleted file mode 100644index 345d727bee..0000000000--- a/MediaBrowser.Logging.NLog/Properties/AssemblyInfo.cs+++ /dev/null@@ -1,31 +0,0 @@-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("MediaBrowser.Logging.NLog")]-[assembly: AssemblyDescription("")]-[assembly: AssemblyConfiguration("")]-[assembly: AssemblyCompany("")]-[assembly: AssemblyProduct("MediaBrowser.Logging.NLog")]-[assembly: AssemblyCopyright("Copyright © 2013")]-[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("095763bf-68a9-4d89-ad01-d0e3c1f5c11f")]--// Version information for an assembly consists of the following four values:-//-// Major Version-// Minor Version-// Build Number-// Revision-//\ No newline at end of filediff --git a/MediaBrowser.Logging.NLog/packages.config b/MediaBrowser.Logging.NLog/packages.configdeleted file mode 100644index ede36938cc..0000000000--- a/MediaBrowser.Logging.NLog/packages.config+++ /dev/null@@ -1,4 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<packages>- <package id="NLog" version="2.0.0.2000" targetFramework="net45" />-</packages>\ No newline at end of filediff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.csindex 2cdb5789b4..2fe257aaf1 100644--- a/MediaBrowser.ServerApplication/ApplicationHost.cs+++ b/MediaBrowser.ServerApplication/ApplicationHost.cs@@ -1,6 +1,7 @@using BDInfo;using MediaBrowser.ClickOnce;using MediaBrowser.Common.Implementations;+using MediaBrowser.Common.Implementations.Logging;using MediaBrowser.Common.Implementations.ScheduledTasks;using MediaBrowser.Common.Implementations.Serialization;using MediaBrowser.Common.IO;@@ -10,7 +11,6 @@ using MediaBrowser.Common.Net;using MediaBrowser.Common.ScheduledTasks;using MediaBrowser.Controller;using MediaBrowser.IsoMounter;-using MediaBrowser.Logging.Nlog;using MediaBrowser.Model.IO;using MediaBrowser.Model.Logging;using MediaBrowser.Model.MediaInfo;diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csprojindex 3c82943bd8..9492fcfe0f 100644--- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj+++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj@@ -278,10 +278,6 @@<Project>{5356ae30-6a6e-4a64-81e3-f76c50595e64}</Project><Name>MediaBrowser.IsoMounter</Name></ProjectReference>- <ProjectReference Include="..\MediaBrowser.Logging.NLog\MediaBrowser.Logging.NLog.csproj">- <Project>{67310740-0ec4-4dc2-9921-33df38b20167}</Project>- <Name>MediaBrowser.Logging.NLog</Name>- </ProjectReference><ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj"><Project>{7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b}</Project><Name>MediaBrowser.Model</Name>diff --git a/MediaBrowser.sln b/MediaBrowser.slnindex 3105614f88..9221a7a347 100644--- a/MediaBrowser.sln+++ b/MediaBrowser.sln@@ -39,8 +39,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser.IsoMounter", "EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser.Installer", "MediaBrowser.Installer\MediaBrowser.Installer.csproj", "{3879F78A-D6F6-45E5-B2A8-D8DCF2DABB74}"EndProject-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser.Logging.NLog", "MediaBrowser.Logging.NLog\MediaBrowser.Logging.NLog.csproj", "{67310740-0EC4-4DC2-9921-33DF38B20167}"-EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser.ClickOnce", "MediaBrowser.ClickOnce\MediaBrowser.ClickOnce.csproj", "{CC96BF3E-0BDA-4809-BC4B-BB6D418F4A84}"EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaBrowser.Networking", "MediaBrowser.Networking\MediaBrowser.Networking.csproj", "{7C11010E-179A-49B7-BFB2-F1656F5E71AD}"@@ -251,20 +249,6 @@ Global{3879F78A-D6F6-45E5-B2A8-D8DCF2DABB74}.Release|Win32.ActiveCfg = Release|Any CPU{3879F78A-D6F6-45E5-B2A8-D8DCF2DABB74}.Release|x64.ActiveCfg = Release|Any CPU{3879F78A-D6F6-45E5-B2A8-D8DCF2DABB74}.Release|x86.ActiveCfg = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|Any CPU.ActiveCfg = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|Any CPU.Build.0 = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|Win32.ActiveCfg = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|x64.ActiveCfg = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Debug|x86.ActiveCfg = Debug|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|Any CPU.ActiveCfg = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|Any CPU.Build.0 = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|Mixed Platforms.Build.0 = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|Win32.ActiveCfg = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|x64.ActiveCfg = Release|Any CPU- {67310740-0EC4-4DC2-9921-33DF38B20167}.Release|x86.ActiveCfg = Release|Any CPU{CC96BF3E-0BDA-4809-BC4B-BB6D418F4A84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU{CC96BF3E-0BDA-4809-BC4B-BB6D418F4A84}.Debug|Any CPU.Build.0 = Debug|Any CPU{CC96BF3E-0BDA-4809-BC4B-BB6D418F4A84}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPUdiff --git a/Nuget/MediaBrowser.ApiClient.nuspec b/Nuget/MediaBrowser.ApiClient.nuspecindex a13bfd84c7..6b38b9aaba 100644--- a/Nuget/MediaBrowser.ApiClient.nuspec+++ b/Nuget/MediaBrowser.ApiClient.nuspec@@ -2,7 +2,7 @@<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"><metadata><id>MediaBrowser.ApiClient</id>- <version>3.0.0.7-beta</version>+ <version>3.0.0.8-beta</version><title>MediaBrowser.ApiClient</title><authors>Media Browser Team</authors><owners>scottisafool,Luke</owners>diff --git a/Nuget/MediaBrowser.Common.Internal.nuspec b/Nuget/MediaBrowser.Common.Internal.nuspecindex 18e8068df2..a291bc907a 100644--- a/Nuget/MediaBrowser.Common.Internal.nuspec+++ b/Nuget/MediaBrowser.Common.Internal.nuspec@@ -22,7 +22,6 @@<file src="dlls\MediaBrowser.ClickOnce.dll" target="lib\net45\MediaBrowser.ClickOnce.dll" /><file src="dlls\MediaBrowser.Common.Implementations.dll" target="lib\net45\MediaBrowser.Common.Implementations.dll" /><file src="dlls\MediaBrowser.IsoMounter.dll" target="lib\net45\MediaBrowser.IsoMounter.dll" />- <file src="dlls\MediaBrowser.Logging.NLog.dll" target="lib\net45\MediaBrowser.Logging.NLog.dll" /><file src="dlls\MediaBrowser.Networking.dll" target="lib\net45\MediaBrowser.Networking.dll" /><file src="dlls\pfmclrapi.dll" target="lib\net45\pfmclrapi.dll" /></files>