Skip to content

Commit

Permalink
fix: Update DependencyModel & and System.Text.Json with new API Cha…
Browse files Browse the repository at this point in the history
…nges (#54)
  • Loading branch information
Sewer56 authored and natemcmaster committed Jul 24, 2019
1 parent 565d655 commit 530c519
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Plugins/Loader/RuntimeConfigExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.IO;
using System.Runtime.InteropServices;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace McMaster.NETCore.Plugins.Loader
{
Expand Down Expand Up @@ -116,7 +115,7 @@ private static RuntimeConfig TryReadConfig(string path)
try
{
var file = File.ReadAllBytes(path);
return JsonSerializer.Parse<RuntimeConfig>(file, _serializerOptions);
return JsonSerializer.Deserialize<RuntimeConfig>(file, _serializerOptions);
}
catch
{
Expand Down
6 changes: 3 additions & 3 deletions src/Plugins/McMaster.NETCore.Plugins.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ This package should be used by the host application which needs to load plugins.
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="3.0.0-preview6-27804-01" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="3.0.0-preview6-27804-01" />
<PackageReference Include="System.Text.Json" Version="4.6.0-preview6.19303.8" />
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="3.0.0-preview7-27912-14" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="3.0.0-preview7-27912-14" />
<PackageReference Include="System.Text.Json" Version="4.6.0-preview7.19362.9" />
</ItemGroup>

</Project>

0 comments on commit 530c519

Please sign in to comment.