-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies and now compatible from netstandard2.0 to net8.0 (…
…#166) I've updated all dependencies and reverded the base target from netstandard2.1 (introduced in ver 1.2.7) to netstandard2.0 as this keeps it compatible with the widely used Net Framework 4.8. Added net4.8 to tests and adapted appsettings.json code to work on every platform. All tests passed on all targets.
- Loading branch information
1 parent
bb3bced
commit 359626b
Showing
5 changed files
with
39 additions
and
25 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace GoogleMapsApi.Test.Utils | ||
{ | ||
internal class AppSettings | ||
{ | ||
[JsonProperty(PropertyName ="GOOGLE_API_KEY")] | ||
public string? GoogleApiKey { get; set; } | ||
|
||
public static AppSettings? Load() | ||
{ | ||
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "appsettings.json"); | ||
if (!File.Exists(path)) return null; | ||
return JsonConvert.DeserializeObject<AppSettings>(File.ReadAllText(path)); | ||
} | ||
} | ||
} |
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