Skip to content

Commit 60a8513

Browse files
authored
Upgrade to .NET 8 (#54)
* Upgrade projects to .NET 8. * Update CI to .NET 8.0.
1 parent 47753d5 commit 60a8513

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

evergreen/evergreen.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -434,14 +434,10 @@ axes:
434434
- id: target_runtime
435435
display_name: Target .net runtime
436436
values:
437-
- id: "net60"
438-
display_name: "net 6.0"
437+
- id: "net80"
438+
display_name: "net 8.0"
439439
variables:
440-
TARGET_RUNTIME: "net60"
441-
- id: "net70"
442-
display_name: "net 7.0"
443-
variables:
444-
TARGET_RUNTIME: "net70"
440+
TARGET_RUNTIME: "net80"
445441

446442
- id: build-target
447443
display_name: CI build target

evergreen/install-dependencies.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ mkdir -p "$DOTNET_SDK_PATH"
77
if [[ $OS =~ [Ww]indows.* ]]; then
88
echo "Downloading Windows .NET SDK installer into $DOTNET_SDK_PATH folder..."
99
curl -Lfo "$DOTNET_SDK_PATH"/dotnet-install.ps1 https://dot.net/v1/dotnet-install.ps1
10-
echo "Installing .NET 7.0 SDK..."
11-
powershell.exe "$DOTNET_SDK_PATH"/dotnet-install.ps1 -Channel 7.0 -InstallDir "$DOTNET_SDK_PATH" -NoPath
10+
echo "Installing .NET 8.0 SDK..."
11+
powershell.exe "$DOTNET_SDK_PATH"/dotnet-install.ps1 -Channel 8.0 -InstallDir "$DOTNET_SDK_PATH" -NoPath
1212
else
1313
echo "Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..."
1414
curl -Lfo "$DOTNET_SDK_PATH"/dotnet-install.sh https://dot.net/v1/dotnet-install.sh
15-
echo "Installing .NET 7.0 SDK..."
16-
bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 7.0 --install-dir "$DOTNET_SDK_PATH" --no-path
15+
echo "Installing .NET 8.0 SDK..."
16+
bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 8.0 --install-dir "$DOTNET_SDK_PATH" --no-path
1717
fi

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.0",
3+
"version": "8.0.0",
44
"rollForward": "latestMajor",
55
"allowPrerelease": false
66
}

src/MongoDB.EntityFrameworkCore/MongoDB.EntityFrameworkCore.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<Description>Official MongoDB supported driver for MongoDB. See https://www.mongodb.com/docs/drivers/csharp/ for more details.</Description>
55
<IsPackable>true</IsPackable>
66
<PackageId>MongoDB.EntityFrameworkCore</PackageId>
@@ -15,5 +15,6 @@
1515
<InternalsVisibleTo Include="MongoDB.EntityFrameworkCore.UnitTests" />
1616
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.15" />
1717
<PackageReference Include="MongoDB.Driver" Version="2.23.1" />
18+
<PackageReference Remove="Microsoft.SourceLink.GitHub"/>
1819
</ItemGroup>
1920
</Project>

tests/MongoDB.EntityFrameworkCore.FunctionalTests/MongoDB.EntityFrameworkCore.FunctionalTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

tests/MongoDB.EntityFrameworkCore.UnitTests/MongoDB.EntityFrameworkCore.UnitTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)