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 1ee838259..ca76530f6 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)
{