Skip to content

Commit ddae814

Browse files
authored
chore: Update to net8 for server sdks (#102)
1 parent 6a58d2b commit ddae814

File tree

19 files changed

+29
-26
lines changed

19 files changed

+29
-26
lines changed

.github/actions/build-docs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
- name: Setup dotnet build tools
1212
uses: actions/setup-dotnet@v4
1313
with:
14-
dotnet-version: 6.0
14+
dotnet-version: 8.0
1515
- name: Install docfx
1616
shell: bash
1717
run: dotnet tool update -g docfx

.github/actions/ci/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
target_test_framework:
1111
description: 'The target test framework to use.'
1212
required: false
13-
default: 'net6.0'
13+
default: 'net8.0'
1414
test_verbosity:
1515
description: 'The verbosity level of the test output.'
1616
required: false
@@ -23,8 +23,8 @@ runs:
2323
uses: actions/setup-dotnet@v4
2424
with:
2525
dotnet-version: |
26-
6.0
27-
7.0
26+
8.0
27+
7.0
2828
2929
- name: Copy global.json in place
3030
shell: bash

.github/actions/contract-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
- name: Setup dotnet build tools
1919
uses: actions/setup-dotnet@v4
2020
with:
21-
dotnet-version: 6.0
21+
dotnet-version: 8.0
2222

2323
- name: Restore Workloads
2424
shell: bash

.github/workflows/sdk-client-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
id-token: write
2121
contents: read
2222
steps:
23+
- name: Print Xcode Version
24+
run: xcodebuild -version
25+
2326
- uses: actions/checkout@v4
2427

2528
- name: Setup Env from project's Env file

global.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.410",
3+
"version": "8.0.0",
44
"rollForward": "latestFeature"
55
}
66
}

pkgs/sdk/client/contract-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ To run these tests locally, run `make contract-tests` from the SDK project root
66

77
Or, to test against an in-progress local version of the test harness, run `make start-contract-test-service` from the SDK project root directory; then, in the root directory of the `sdk-test-harness` project, build the test harness and run it from the command line.
88

9-
Currently, the project does _not_ automatically detect the available target frameworks. It will default to building and running for .NET Core 2.1. To use a different target framework, set the environment variable `TESTFRAMEWORK` to the name of the application runtime framework (such as `netcoreapp3.1`), and set the environment variable `BUILDFRAMEWORKS` (note the S at the end) to the target framework that the SDK should be built for (which may or may not be the same).
9+
Currently, the project does _not_ automatically detect the available target frameworks. It will default to building and running for .NET 7.0. To use a different target framework, set the environment variable `TESTFRAMEWORK` to the name of the application runtime framework (such as `net7.0`), and set the environment variable `BUILDFRAMEWORKS` (note the S at the end) to the target framework that the SDK should be built for (which may or may not be the same).

pkgs/sdk/server-ai/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Currently there is no client-side AI SDK for .NET. If you're interested, please
2222

2323
This version of the AI SDK is built for the following targets:
2424

25-
* .NET 7.0: runs on .NET 7.0 and above (including higher major versions).
25+
* .NET 8.0: runs on .NET 8.0 and above (including higher major versions).
2626
* .NET Framework 4.6.2: runs on .NET Framework 4.6.2 and above.
2727
* .NET Standard 2.0: runs in any project that is targeted to .NET Standard 2.x rather than to a specific runtime platform.
2828

pkgs/sdk/server-ai/src/LaunchDarkly.ServerSdk.Ai.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
single framework that we are testing; this allows us to test with older SDK
88
versions that would error out if they saw any newer target frameworks listed
99
here, even if we weren't running those. -->
10-
<BuildFrameworks Condition="'$(BUILDFRAMEWORKS)' == ''">netstandard2.0;net462;net6.0</BuildFrameworks>
10+
<BuildFrameworks Condition="'$(BUILDFRAMEWORKS)' == ''">netstandard2.0;net462;net8.0</BuildFrameworks>
1111
<TargetFrameworks>$(BUILDFRAMEWORKS)</TargetFrameworks>
1212
<!-- Note: whenever we add or remove supported target frameworks, we must update ServerDiagnosticStore.GetDotNetTargetFramework() -->
1313
<DebugType>portable</DebugType>

pkgs/sdk/server-ai/test/LaunchDarkly.ServerSdk.Ai.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
single framework that we are testing; this allows us to test with older SDK
55
versions that would error out if they saw any newer target frameworks listed
66
here, even if we weren't running those. -->
7-
<TestFramework Condition="'$(TESTFRAMEWORK)' == ''">net462;net6.0</TestFramework>
7+
<TestFramework Condition="'$(TESTFRAMEWORK)' == ''">net462;net8.0</TestFramework>
88
<TargetFrameworks>$(TESTFRAMEWORK)</TargetFrameworks>
99
<AssemblyName>LaunchDarkly.ServerSdk.Ai.Tests</AssemblyName>
1010
<PackageId>LaunchDarkly.ServerSdk.Ai.Tests</PackageId>

pkgs/sdk/server/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ clean:
99
dotnet clean
1010

1111
TEMP_TEST_OUTPUT=/tmp/sdk-contract-test-service.log
12-
BUILDFRAMEWORKS ?= net6.0
13-
TESTFRAMEWORK ?= net6.0
12+
BUILDFRAMEWORKS ?= net8.0
13+
TESTFRAMEWORK ?= net8.0
1414

1515
build-contract-tests:
1616
@cd contract-tests && dotnet build TestService.csproj

0 commit comments

Comments
 (0)