Skip to content

Commit 59f1583

Browse files
committed
Allow trace in try Window
1 parent d44bd1f commit 59f1583

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CodingSeb.ExpressionEvaluator/CodingSeb.ExpressionEvaluator.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2929
<DebugType>pdbonly</DebugType>
3030
</PropertyGroup>
31+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net45|AnyCPU'">
32+
<DefineConstants>DEBUG;TRACE</DefineConstants>
33+
</PropertyGroup>
3134
<ItemGroup>
3235
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
3336
<PackageReference Include="System.Dynamic.Runtime" Version="4.3.0" />

TryWindow/MainWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ private async void CalculateButton_Click(object sender, RoutedEventArgs e)
3939
ExpressionEvaluator evaluator = new ExpressionEvaluator();
4040

4141
evaluator.Namespaces.Add("System.Windows");
42+
evaluator.Namespaces.Add("System.Diagnostics");
4243

4344
evaluator.EvaluateVariable += Evaluator_EvaluateVariable;
4445

TryWindow/TryWindow.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<OutputPath>bin\$(Configuration)\</OutputPath>
1212
<ExtrasEnableWpfProjectSetup>true</ExtrasEnableWpfProjectSetup>
1313
</PropertyGroup>
14+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
15+
<DefineConstants>DEBUG;TRACE</DefineConstants>
16+
</PropertyGroup>
1417
<ItemGroup>
1518
<PackageReference Include="AvalonEdit" Version="5.0.4" />
1619
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />

0 commit comments

Comments
 (0)