Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
Little bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Gazic committed Apr 16, 2014
1 parent fb97a13 commit 4efa76e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Libraries/SharpDox.Config/ConfigController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ public T GetConfigSection<T>()

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);
Expand Down
4 changes: 2 additions & 2 deletions Libraries/SharpDox.Config/SharpDox.Config.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;RELEASE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
Expand Down

0 comments on commit 4efa76e

Please sign in to comment.