Skip to content

Commit

Permalink
Support .netcore 3.*
Browse files Browse the repository at this point in the history
  • Loading branch information
Nongzhsh committed Feb 12, 2022
1 parent 9ce67ee commit 0fe6f30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<Version>3.0.0</Version>
<Authors>Nongzhsh</Authors>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<PackageProjectUrl>https://github.com/Nongzhsh/Awesome.Net.WritableOptions/</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Description>Use to update option values into json file</Description>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void AddOrUpdateSection<T>(string jsonFilePath, string sectionName
});

writer.WriteStartObject();
bool isWritten = false;
var isWritten = false;
var optionsElement = JsonDocument.Parse(JsonSerializer.SerializeToUtf8Bytes(value));
foreach(var element in jsonDocument.RootElement.EnumerateObject())
{
Expand Down

0 comments on commit 0fe6f30

Please sign in to comment.