From 4efa76ee276f9eb4c6010ac43ea0ee6a53d113eb Mon Sep 17 00:00:00 2001 From: Gerrit Gazic Date: Wed, 16 Apr 2014 17:39:17 +0200 Subject: [PATCH] Little bugfix --- Libraries/SharpDox.Config/ConfigController.cs | 5 +++++ Libraries/SharpDox.Config/SharpDox.Config.csproj | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Libraries/SharpDox.Config/ConfigController.cs b/Libraries/SharpDox.Config/ConfigController.cs index bc8bd44c..ee68339a 100644 --- a/Libraries/SharpDox.Config/ConfigController.cs +++ b/Libraries/SharpDox.Config/ConfigController.cs @@ -96,7 +96,12 @@ public T GetConfigSection() private void GetRecentConfigs() { + #if DEBUG var recentFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "recent.xml"); + #elif RELEASE + var recentFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..", "recent.xml"); + #endif + if (File.Exists(recentFile)) { _recentConfigs.Load(recentFile); diff --git a/Libraries/SharpDox.Config/SharpDox.Config.csproj b/Libraries/SharpDox.Config/SharpDox.Config.csproj index 937db17b..5a805259 100644 --- a/Libraries/SharpDox.Config/SharpDox.Config.csproj +++ b/Libraries/SharpDox.Config/SharpDox.Config.csproj @@ -17,7 +17,7 @@ full false bin\Debug\ - DEBUG;TRACE + TRACE;DEBUG prompt 4 @@ -25,7 +25,7 @@ pdbonly true bin\Release\ - TRACE + TRACE;RELEASE prompt 4