diff --git a/Source/SvnBackup/Program.cs b/Source/SvnBackup/Program.cs index 289dc2f..5e853d6 100644 --- a/Source/SvnBackup/Program.cs +++ b/Source/SvnBackup/Program.cs @@ -1,6 +1,6 @@ using System; -using System.Collections.Generic; using System.Text; +using log4net; using SvnTools; using SvnTools.CommandLine; @@ -10,8 +10,14 @@ namespace SvnBackup { class Program { + private static readonly ILog Log = LogManager.GetLogger(typeof(Program)); + static int Main(string[] args) { + + AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; + + Log.Info("Current Dir:" + Environment.CurrentDirectory); if (Parser.ParseHelp(args)) { OutputHeader(); @@ -34,6 +40,11 @@ static int Main(string[] args) return 0; } + private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) + { + Log.Fatal("Unhandled exception:" + e.ExceptionObject); + } + private static void OutputUsageHelp() { Console.WriteLine(); diff --git a/Source/SvnBackup/SvnBackup.csproj b/Source/SvnBackup/SvnBackup.csproj index 715928c..636b8fb 100644 --- a/Source/SvnBackup/SvnBackup.csproj +++ b/Source/SvnBackup/SvnBackup.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -12,8 +12,26 @@ SvnBackup v2.0 512 - - + + + + + 3.5 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true true @@ -37,9 +55,9 @@ False ..\..\Libraries\Ionic.Zip.Reduced.dll - - False - ..\..\Libraries\log4net.dll + + ..\packages\log4net.2.0.5\lib\net20-full\log4net.dll + True @@ -54,6 +72,7 @@ + @@ -61,6 +80,13 @@ SvnTools + + + False + .NET Framework 3.5 SP1 + true + +