Skip to content

Commit abc7d70

Browse files
committed
Migrate to .NET 10
1 parent f4ececf commit abc7d70

File tree

13 files changed

+30
-26
lines changed

13 files changed

+30
-26
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v5
2222
with:
2323
fetch-depth: 1
2424
- run: |
@@ -27,11 +27,11 @@ jobs:
2727
git tag --list
2828
2929
# Install .NET version as mandated by global.json
30-
- uses: actions/setup-dotnet@v4.1.0
30+
- uses: actions/setup-dotnet@v5
3131
with:
3232
global-json-file: global.json
3333
dotnet-version: |
34-
6.x
34+
10.x
3535
env:
3636
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3737

build/scripts/scripts.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88
<ItemGroup>

examples/Elastic.Ephemeral.Example/Elastic.Ephemeral.Example.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<IsPackable>False</IsPackable>
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Elastic.Transport" Version="0.9.2" />
16+
<PackageReference Include="Elastic.Transport" Version="0.10.1" />
1717
</ItemGroup>
1818

1919
</Project>

examples/Elastic.Managed.Example/Elastic.Managed.Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<IsPackable>False</IsPackable>
77
</PropertyGroup>
88

examples/Elastic.Xunit.ExampleComplex/Elastic.Xunit.ExampleComplex.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net462</TargetFrameworks>
3+
<TargetFrameworks>net10.0;net462</TargetFrameworks>
44
<IsPackable>False</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
77
<ProjectReference Include="..\..\src\Elastic.Elasticsearch.Ephemeral\Elastic.Elasticsearch.Ephemeral.csproj" />
8-
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.0.4" />
9-
<PackageReference Include="xunit" Version="2.9.2" />
8+
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.2.1" />
9+
<PackageReference Include="xunit" Version="2.9.3" />
1010
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1515
<PackageReference Include="FluentAssertions" Version="7.2.0" />
1616
<PackageReference Condition="'$(TargetFramework)' == 'net461'" Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
1717
<ProjectReference Include="..\..\src\Elastic.Elasticsearch.Xunit\Elastic.Elasticsearch.Xunit.csproj" />

examples/Elastic.Xunit.ExampleMinimal/Elastic.Xunit.ExampleMinimal.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net462</TargetFrameworks>
3+
<TargetFrameworks>net10.0;net462</TargetFrameworks>
44
<IsPackable>False</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.0.4" />
8-
<PackageReference Include="xunit" Version="2.9.2" />
7+
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.2.1" />
8+
<PackageReference Include="xunit" Version="2.9.3" />
99
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
</PackageReference>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1414
<PackageReference Include="FluentAssertions" Version="7.2.0" />
1515
</ItemGroup>
1616
<ItemGroup>

examples/ScratchPad/ScratchPad.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<IsPackable>False</IsPackable>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.0.4" />
8+
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.2.1" />
99
<PackageReference Include="Proc" Version="0.9.1" />
1010
<!--<ProjectReference Include="..\..\..\..\..\proc\src\Proc\Proc.csproj" />-->
1111
</ItemGroup>

global.json

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

src/Elastic.Elasticsearch.Ephemeral/Elastic.Elasticsearch.Ephemeral.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net8.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net8.0;net10.0</TargetFrameworks>
55
<Description>Provides an EphemeralCluster implementation that can download/bootstrap/run a throwaway customizable Elasticsearch cluster</Description>
66
<PackageTags>elastic,elasticsearch,cluster,ephemeral</PackageTags>
77
</PropertyGroup>
88
<ItemGroup>
99
<PackageReference Include="SharpZipLib" Version="1.4.2" />
10+
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1011
</ItemGroup>
1112
<ItemGroup>
1213
<ProjectReference Include="..\Elastic.Elasticsearch.Managed\Elastic.Elasticsearch.Managed.csproj" />

src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private HttpResponseMessage Call(
9595
$"{{{nameof(Call)}}} [{statusUrl}] SSL: {cluster.ClusterConfiguration.EnableSsl} Security: {cluster.ClusterConfiguration.EnableSecurity}");
9696
if (cluster.ClusterConfiguration.EnableSsl)
9797
{
98-
#if !NETSTANDARD
98+
#if !NETSTANDARD && !NET8_0_OR_GREATER
9999
ServicePointManager.ServerCertificateValidationCallback += ServerCertificateValidationCallback;
100100
#else
101101
handler.ServerCertificateCustomValidationCallback += (m, c, cn, p) => true;
@@ -130,7 +130,7 @@ private HttpResponseMessage Call(
130130
}
131131
finally
132132
{
133-
#if !NETSTANDARD
133+
#if !NETSTANDARD && !NET8_0_OR_GREATER
134134
ServicePointManager.ServerCertificateValidationCallback -= ServerCertificateValidationCallback;
135135
#endif
136136
}

0 commit comments

Comments
 (0)