-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(net8): add net8 and drop support for net7
- Loading branch information
Showing
28 changed files
with
435 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"projects": [ "src" ], | ||
"sdk": { | ||
"version": "6.0.300", | ||
"version": "8.0.100", | ||
"rollForward": "latestPatch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Appy.Spatial.GeoJSON.Newtonsoft | ||
namespace Appy.Spatial.GeoJSON.Newtonsoft; | ||
|
||
public static class Extensions | ||
{ | ||
public static class Extensions | ||
public static JsonSerializerSettings UseGeoJsonConverters(this JsonSerializerSettings options) | ||
{ | ||
public static JsonSerializerSettings UseGeoJsonConverters(this JsonSerializerSettings options) | ||
{ | ||
options.Converters.Add(new FeatureConverter()); | ||
options.Converters.Add(new GeometryConverter()); | ||
return options; | ||
} | ||
options.Converters.Add(new FeatureConverter()); | ||
options.Converters.Add(new GeometryConverter()); | ||
return options; | ||
} | ||
|
||
internal static T PopulateObject<T>(this JsonSerializer serializer, JsonReader jsonReader, T target) | ||
{ | ||
serializer.Populate(jsonReader, target); | ||
internal static T PopulateObject<T>(this JsonSerializer serializer, JsonReader jsonReader, T target) | ||
{ | ||
serializer.Populate(jsonReader, target); | ||
|
||
if (!serializer.CheckAdditionalContent) | ||
return target; | ||
if (!serializer.CheckAdditionalContent) | ||
return target; | ||
|
||
while (jsonReader.Read()) | ||
while (jsonReader.Read()) | ||
{ | ||
if (jsonReader.TokenType != JsonToken.Comment) | ||
{ | ||
if (jsonReader.TokenType != JsonToken.Comment) | ||
{ | ||
throw new JsonSerializationException("Additional text found in JSON string after finishing deserializing object."); | ||
} | ||
throw new JsonSerializationException("Additional text found in JSON string after finishing deserializing object."); | ||
} | ||
|
||
return target; | ||
} | ||
|
||
return target; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
using System.Text.Json; | ||
|
||
namespace Appy.Spatial.GeoJSON.TextJson | ||
namespace Appy.Spatial.GeoJSON.TextJson; | ||
|
||
public static class Extensions | ||
{ | ||
public static class Extensions | ||
public static JsonSerializerOptions UseGeoJsonConverters(this JsonSerializerOptions options) | ||
{ | ||
public static JsonSerializerOptions UseGeoJsonConverters(this JsonSerializerOptions options) | ||
{ | ||
options.Converters.Add(new FeatureConverter()); | ||
options.Converters.Add(new GeometryConverter()); | ||
return options; | ||
} | ||
options.Converters.Add(new FeatureConverter()); | ||
options.Converters.Add(new GeometryConverter()); | ||
return options; | ||
} | ||
} |
Oops, something went wrong.