replace Jil with Newtonsoft.Json

This commit is contained in:
Oluwatoni Solarin-Sodara
2018-07-12 01:16:18 +01:00
parent 6872a35f6f
commit a189fc26ea
3 changed files with 3 additions and 10 deletions
-2
View File
@@ -1,8 +1,6 @@
using System.Collections.Generic;
using System.IO;
using Jil;
namespace Coverlet.Core
{
public class BranchInfo
+2 -7
View File
@@ -1,5 +1,4 @@
using System.IO;
using Jil;
using Newtonsoft.Json;
namespace Coverlet.Core.Reporters
{
@@ -11,11 +10,7 @@ namespace Coverlet.Core.Reporters
public string Report(CoverageResult result)
{
using (var writer = new StringWriter())
{
JSON.Serialize(result.Modules, writer, Options.PrettyPrint);
return writer.ToString();
}
return JsonConvert.SerializeObject(result.Modules, Formatting.Indented);
}
}
}
+1 -1
View File
@@ -6,8 +6,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Jil" Version="2.15.4" />
<PackageReference Include="Mono.Cecil" Version="0.10.0" />
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="System.Reflection.Metadata" Version="1.5.0" />
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="2.0.1" />
</ItemGroup>