Skip to content

Commit b1081d1

Browse files
committed
Fixed .csproj to be linux-friendly.
Fixed bug when cancelling out of the log folder dialog.
1 parent 90fd28a commit b1081d1

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
[assembly: AssemblyTitle("PingLogger")]
88
[assembly: AssemblyDescription("Advanced multi-threaded ping logging application")]
99
[assembly: NeutralResourcesLanguage("en-US")]
10-
[assembly: AssemblyVersion("3.0.3.5")]
11-
[assembly: AssemblyFileVersion("3.0.3.5")]
10+
[assembly: AssemblyVersion("3.0.4.4")]
11+
[assembly: AssemblyFileVersion("3.0.4.4")]

Installer/latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Major":3,"Minor":0,"Revision":5,"Build":3}
1+
{"Major":3,"Minor":0,"Revision":4,"Build":4}

PingLogger.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.0" />
3939
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
4040
</ItemGroup>
41-
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
42-
<Exec Command="IF $(ConfigurationName) == Debug (&#xD;&#xA;t4 -u System.IO -u System.Text.RegularExpressions -o $(ProjectDir)\AssemblyInfo.cs -I $(ProjectDir) -P $(ProjectDir) $(ProjectDir)\AssemblyInfo.tt &#xD;&#xA;)" />
41+
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(ConfigurationName)'=='Debug'">
42+
<Exec Command="t4 -u System.IO -u System.Text.RegularExpressions -o &quot;$(ProjectDir)AssemblyInfo.cs&quot; -I &quot;$(ProjectDir)&quot; -P &quot;$(ProjectDir)&quot; &quot;$(ProjectDir)AssemblyInfo.tt&quot;" />
4343
</Target>
4444
</Project>

ViewModels/OptionsWindowViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ private async void FindLogFolder()
3636
Title = "Find new log folder path"
3737
};
3838
var newPath = await dialog.ShowAsync(desktop.MainWindow);
39-
LogFolderPath = newPath;
39+
if (!string.IsNullOrEmpty(newPath))
40+
LogFolderPath = newPath;
4041
}
4142
}
4243

0 commit comments

Comments
 (0)