From 80201c8a8818cb3475757dd71d8f896ce6608b23 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 30 May 2011 00:51:33 -0700 Subject: [PATCH] fixed some build issues --- .../Migrator.Providers.csproj | 2 +- .../NzbDrone.PostProcessor.csproj | 57 ------------- NzbDrone.PostProcessor/PostProcessor.xml | 6 -- NzbDrone.PostProcessor/Program.cs | 84 ------------------- .../Properties/AssemblyInfo.cs | 39 --------- NzbDrone.Web/NzbDrone.Web.csproj | 3 + 6 files changed, 4 insertions(+), 187 deletions(-) delete mode 100644 NzbDrone.PostProcessor/NzbDrone.PostProcessor.csproj delete mode 100644 NzbDrone.PostProcessor/PostProcessor.xml delete mode 100644 NzbDrone.PostProcessor/Program.cs delete mode 100644 NzbDrone.PostProcessor/Properties/AssemblyInfo.cs diff --git a/Migrator.net/Migrator.Providers/Migrator.Providers.csproj b/Migrator.net/Migrator.Providers/Migrator.Providers.csproj index 6880f3f86..f0485ccdc 100644 --- a/Migrator.net/Migrator.Providers/Migrator.Providers.csproj +++ b/Migrator.net/Migrator.Providers/Migrator.Providers.csproj @@ -54,7 +54,7 @@ - ..\..\NzbDrone.Core\Libraries\System.Data.SQLite.dll + ..\..\Libraries\System.Data.SQLite.dll diff --git a/NzbDrone.PostProcessor/NzbDrone.PostProcessor.csproj b/NzbDrone.PostProcessor/NzbDrone.PostProcessor.csproj deleted file mode 100644 index 6fd62ee74..000000000 --- a/NzbDrone.PostProcessor/NzbDrone.PostProcessor.csproj +++ /dev/null @@ -1,57 +0,0 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {0C679573-736D-4F77-B934-FD8931AC1AA1} - Exe - Properties - NzbDrone.PostProcessor - NzbDrone.PostProcessor - v4.0 - 512 - - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NzbDrone.PostProcessor/PostProcessor.xml b/NzbDrone.PostProcessor/PostProcessor.xml deleted file mode 100644 index fc481481c..000000000 --- a/NzbDrone.PostProcessor/PostProcessor.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - localhost - 8989 - Not-An-API-KEY - \ No newline at end of file diff --git a/NzbDrone.PostProcessor/Program.cs b/NzbDrone.PostProcessor/Program.cs deleted file mode 100644 index 90428187d..000000000 --- a/NzbDrone.PostProcessor/Program.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.IO; -using System.Linq; -using System.Net; -using System.Xml.Linq; - -namespace NzbDrone.PostProcessor -{ - internal class Program - { - private static string _host = "localhost"; - private static int _port = 8989; - private static string _apiKey = String.Empty; - - private static void Main(string[] args) - { - try - { - if (args.Count() < 5) - { - Console.WriteLine("Did this come from SAB? Missing Arguments.."); - return; - } - - //Load the ConfigFile - if (!LoadConfig()) - return; - - string dir = args[0]; //Get dir from first CMD Line Argument - string nzbName = args[2]; //Get nzbName from third CMD Line Argument - string category = args[4]; //Get category from third CMD Line Argument - - var hostString = _host + ":" + _port; - - var url = String.Format("http://{0}/?apiKey={1}&dir={2}&nzbName={3}&category={4}", hostString, _apiKey, - dir, nzbName, category); - - var webClient = new WebClient(); - webClient.DownloadString(url); - } - catch (Exception ex) - { - Console.WriteLine(ex); - } - } - - private static bool LoadConfig() - { - var configFile = "PostProcessor.xml"; - if (!File.Exists(configFile)) - { - Console.WriteLine("Configuration File does not exist, please create"); - return false; - } - - var xDoc = XDocument.Load(configFile); - var config = (from c in xDoc.Descendants("Configuration") select c).FirstOrDefault(); - - if (config == null) - { - Console.WriteLine("Invalid Configuration File"); - return false; - } - - var hostNode = config.Descendants("Host").FirstOrDefault(); - var portNode = config.Descendants("Port").FirstOrDefault(); - ; - var apiKeyNode = config.Descendants("ApiKey").FirstOrDefault(); - ; - - if (hostNode == null || portNode == null || apiKeyNode == null) - { - Console.WriteLine("Invalid Configuration File"); - return false; - } - - _host = hostNode.Value; - Int32.TryParse(portNode.Value, out _port); - _apiKey = apiKeyNode.Value; - - return true; - } - } -} \ No newline at end of file diff --git a/NzbDrone.PostProcessor/Properties/AssemblyInfo.cs b/NzbDrone.PostProcessor/Properties/AssemblyInfo.cs deleted file mode 100644 index 3b75749fa..000000000 --- a/NzbDrone.PostProcessor/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Reflection; -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("NzbDrone.PostProcessor")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("TIO Networks Corp")] -[assembly: AssemblyProduct("NzbDrone.PostProcessor")] -[assembly: AssemblyCopyright("Copyright © TIO Networks Corp 2011")] -[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("6521fcb0-15dc-4324-b08a-f18f87d78859")] - -// 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")] \ No newline at end of file diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 0e1e6caf0..4d139c6d8 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -894,4 +894,7 @@ + + copy $(SolutionDir)\Libraries\SQLite.Interop.dll $(TargetDir) + \ No newline at end of file