diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dee18f5..9c82e5b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,7 +27,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: 'Checkout'
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0
@@ -35,7 +35,9 @@ jobs:
run: git fetch --tags
shell: pwsh
- name: 'Install .NET Core SDK'
- uses: actions/setup-dotnet@v1
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: 7.0
- name: 'Dotnet Tool Restore'
run: dotnet tool restore
shell: pwsh
diff --git a/README.md b/README.md
index a55923b..348cee5 100644
--- a/README.md
+++ b/README.md
@@ -13,11 +13,10 @@ The Adobe Target .Net SDK uses the [Target Delivery API] to retrieve and deliver
- [Getting started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- - [Super Simple To Use](#super-simple-to-use)
+ - [Super Simple to Use](#super-simple-to-use)
- [Sample Apps](#sample-apps)
- [Build](#build)
- [Releases](#releases)
- - [Using nugets built locally in your project](#using-nugets-built-locally-in-your-project)
- [Contributing](#contributing)
- [Licensing](#licensing)
@@ -26,7 +25,7 @@ The Adobe Target .Net SDK uses the [Target Delivery API] to retrieve and deliver
### Prerequisites
At a minimum [.NET Core SDK 2.0](https://dotnet.microsoft.com/download/dotnet-core/2.0) is required to build, test, and generate NuGet packages.
-Note: the SDK itself multi-targets .NET Standard 2.0 and .NET 5
+Note: the SDK itself multi-targets .NET Standard 2.0, .NET 5, 6 and 7
**macOS/Linux**
diff --git a/SampleApp/SampleApp.csproj b/SampleApp/SampleApp.csproj
index 36e3eca..b893796 100644
--- a/SampleApp/SampleApp.csproj
+++ b/SampleApp/SampleApp.csproj
@@ -10,7 +10,7 @@
Exe
- net5.0
+ net7.0
SampleApp.ProgramSync
diff --git a/Source/Adobe.Target.Client/Adobe.Target.Client.csproj b/Source/Adobe.Target.Client/Adobe.Target.Client.csproj
index 2ad9b79..e449e05 100644
--- a/Source/Adobe.Target.Client/Adobe.Target.Client.csproj
+++ b/Source/Adobe.Target.Client/Adobe.Target.Client.csproj
@@ -1,7 +1,7 @@
- net5.0;netstandard2.0
+ net5.0;net6.0;net7.0;netstandard2.0
@@ -11,14 +11,27 @@
client-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
diff --git a/Source/Adobe.Target.Client/OnDevice/RuleLoader.cs b/Source/Adobe.Target.Client/OnDevice/RuleLoader.cs
index a808306..a471cf3 100644
--- a/Source/Adobe.Target.Client/OnDevice/RuleLoader.cs
+++ b/Source/Adobe.Target.Client/OnDevice/RuleLoader.cs
@@ -149,7 +149,7 @@ private async Task LoadRulesAsync()
.OrResult(r => HttpStatusCodesWorthRetrying.Contains(r.StatusCode))
.RetryAsync(MaxRetries, onRetry: (exception, retryCount, context) =>
{
- this.logger.LogError(exception.Exception, Messages.RuleLoadingError, retryCount);
+ this.logger?.LogError(exception.Exception, Messages.RuleLoadingError, retryCount);
})
.ExecuteAndCaptureAsync(() => client.ExecuteAsync(this.GetRequest()))
.ConfigureAwait(false);
diff --git a/Source/Adobe.Target.Delivery/Adobe.Target.Delivery.csproj b/Source/Adobe.Target.Delivery/Adobe.Target.Delivery.csproj
index 1fdfd43..17386d7 100644
--- a/Source/Adobe.Target.Delivery/Adobe.Target.Delivery.csproj
+++ b/Source/Adobe.Target.Delivery/Adobe.Target.Delivery.csproj
@@ -1,7 +1,7 @@
- net5.0;netstandard2.0
+ net5.0;net6.0;net7.0;netstandard2.0
diff --git a/Tests/Adobe.Target.Client.Test/Adobe.Target.Client.Test.csproj b/Tests/Adobe.Target.Client.Test/Adobe.Target.Client.Test.csproj
index bd4593e..c5cd4a3 100644
--- a/Tests/Adobe.Target.Client.Test/Adobe.Target.Client.Test.csproj
+++ b/Tests/Adobe.Target.Client.Test/Adobe.Target.Client.Test.csproj
@@ -1,7 +1,7 @@
- net5.0
+ net7.0
diff --git a/codegeneration/.gitignore b/codegeneration/.gitignore
index b38db2f..5c02029 100644
--- a/codegeneration/.gitignore
+++ b/codegeneration/.gitignore
@@ -1,2 +1,3 @@
node_modules/
build/
+prevbuild/
diff --git a/codegeneration/template/netcore_project.mustache b/codegeneration/template/netcore_project.mustache
index c824390..68a3511 100644
--- a/codegeneration/template/netcore_project.mustache
+++ b/codegeneration/template/netcore_project.mustache
@@ -1,7 +1,7 @@
- net5.0;netstandard2.0
+ net5.0;net6.0;net7.0;netstandard2.0
diff --git a/global.json b/global.json
index 5fefc00..a9449a2 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
"rollForward": "latestMajor",
- "version": "5.0.202"
+ "version": "7.0.101"
}
}