Skip to content

Commit

Permalink
fixes #13 - The type initializer for 'WakaTime.WakaTimeConfigFile' th…
Browse files Browse the repository at this point in the history
…rew an exception
  • Loading branch information
salaros committed Aug 13, 2018
1 parent 04b2485 commit 5ed5016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WakaTime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Salaros.ConfigParser" Version="0.3.0" />
<PackageReference Include="Salaros.ConfigParser" Version="0.3.1" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" Condition="'$(TargetFramework)' != 'net45'" />
<PackageReference Include="DotNetZip" Version="1.11.0" Condition="'$(TargetFramework)' == 'net40'" />
<Reference Include="System.Web.Extensions" Condition="'$(TargetFramework)' == 'net45'" />
Expand All @@ -52,7 +52,7 @@
<Compile Remove="IProgress.cs" />
<None Include="IProgress.cs" />
</ItemGroup>

<Target Name="CleanNuGetFiles" AfterTargets="Clean">
<ItemGroup>
<NuGetFilesBin Include="$(OutputPath)\..\*.nupkg" />
Expand Down
1 change: 1 addition & 0 deletions src/WakaTimeConfigFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static class WakaTimeConfigFile
static WakaTimeConfigFile()
{
ConfigFilepath = GetConfigFilePath();
using(File.Create(ConfigFilepath)) {} // Create an empty config file
ConfigParser = new ConfigParser(ConfigFilepath, new ConfigParserSettings
{
MultiLineValues = MultiLineValues.Simple | MultiLineValues.QuoteDelimitedValues,
Expand Down

0 comments on commit 5ed5016

Please sign in to comment.