From 97c6d60e1264f1c68af6fd9c844718a71d90cf12 Mon Sep 17 00:00:00 2001 From: sschlesier Date: Thu, 26 May 2011 23:01:07 -0700 Subject: [PATCH] Make Release build compile succesfully --- Migrator.net/Migrator.Providers/Migrator.Providers.csproj | 2 +- NzbDrone.Core/NzbDrone.Core.csproj | 4 +++- NzbDrone/Program.cs | 6 ++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Migrator.net/Migrator.Providers/Migrator.Providers.csproj b/Migrator.net/Migrator.Providers/Migrator.Providers.csproj index b6290d3c2..6880f3f86 100644 --- a/Migrator.net/Migrator.Providers/Migrator.Providers.csproj +++ b/Migrator.net/Migrator.Providers/Migrator.Providers.csproj @@ -46,7 +46,7 @@ pdbonly true bin\Release\ - TRACE + TRACE;DOTNET2 prompt 4 diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 370be78d8..b234a3322 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -132,7 +132,9 @@ False ..\packages\Ninject.2.2.1.0\lib\.NetFramework 4.0\Ninject.dll - + + Libraries\NLog.dll + False Libraries\SubSonic.Core.dll diff --git a/NzbDrone/Program.cs b/NzbDrone/Program.cs index 84e49ed48..da9cb4b26 100644 --- a/NzbDrone/Program.cs +++ b/NzbDrone/Program.cs @@ -31,12 +31,9 @@ namespace NzbDrone IISController.StopServer(); IISController.StartServer(); - - #if DEBUG Attach(); #endif - try { Logger.Info("Starting default browser. {0}",IISController.AppUrl); @@ -60,6 +57,7 @@ namespace NzbDrone Console.ReadLine(); } +#if DEBUG private static void Attach() { if (Debugger.IsAttached) @@ -91,7 +89,7 @@ namespace NzbDrone } } } - +#endif private static void AppDomainException(object excepion) {