Skip to content

Commit

Permalink
Fix a few more missed instances of Newtonsoft.Json
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Nov 23, 2023
1 parent a3aabb0 commit c87bd91
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/NetSparkle/Configurations/JSONConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ private bool LoadValuesFromPath(string saveLocation)
try
{
string json = File.ReadAllText(saveLocation);
#if (NETSTANDARD || NET6 || NET7 || NET8)
var data = JsonSerializer.Deserialize<SavedConfigurationData>(json);

Check failure on line 138 in src/NetSparkle/Configurations/JSONConfiguration.cs

View workflow job for this annotation

GitHub Actions / Build and publish all packages to NuGet

The name 'JsonSerializer' does not exist in the current context

Check failure on line 138 in src/NetSparkle/Configurations/JSONConfiguration.cs

View workflow job for this annotation

GitHub Actions / Build and publish all packages to NuGet

The name 'JsonSerializer' does not exist in the current context
#else
var data = JsonConvert.DeserializeObject<SavedConfigurationData>(json);
#endif
CheckForUpdate = true;
LastCheckTime = data.LastCheckTime;
LastVersionSkipped = data.LastVersionSkipped;
Expand Down Expand Up @@ -198,11 +194,7 @@ private bool SaveValuesToPath(string savePath)
};
LastConfigUpdate = savedConfig.LastConfigUpdate;

#if (NETSTANDARD || NET6 || NET7 || NET8)
string json = JsonSerializer.Serialize(savedConfig);

Check failure on line 197 in src/NetSparkle/Configurations/JSONConfiguration.cs

View workflow job for this annotation

GitHub Actions / Build and publish all packages to NuGet

The name 'JsonSerializer' does not exist in the current context

Check failure on line 197 in src/NetSparkle/Configurations/JSONConfiguration.cs

View workflow job for this annotation

GitHub Actions / Build and publish all packages to NuGet

The name 'JsonSerializer' does not exist in the current context
#else
string json = JsonConvert.SerializeObject(savedConfig);
#endif
try
{
File.WriteAllText(savePath, json);
Expand Down

0 comments on commit c87bd91

Please sign in to comment.