From 77cd95552134c1d0b4e9a68c6c1e693c4deca596 Mon Sep 17 00:00:00 2001 From: Pierre Chalamet Date: Sun, 18 Oct 2026 12:51:53 +0200 Subject: [PATCH] chore: upgrade .NET SDK and NuGet dependencies --- .github/workflows/ci-pr.yml | 2 +- .github/workflows/on-push-branch.yml | 2 +- .github/workflows/on-push-tag.yml | 2 +- .github/workflows/on-release-published.yml | 2 +- CHANGELOG.md | 4 ++++ README.md | 3 ++- global.json | 2 +- src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj | 2 +- tests/CSharpDataModels/CSharpDataModels.csproj | 2 +- .../FSharp.MongoDB.Bson.Tests.fsproj | 10 +++++----- 10 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 913fc63..595bfd4 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -34,7 +34,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 10.0.301 + dotnet-version: 10.0.401 - name: Restore run: dotnet restore FSharp.MongoDB.sln diff --git a/.github/workflows/on-push-branch.yml b/.github/workflows/on-push-branch.yml index b07aa11..0130016 100644 --- a/.github/workflows/on-push-branch.yml +++ b/.github/workflows/on-push-branch.yml @@ -29,7 +29,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 10.0.301 + dotnet-version: 10.0.401 - name: Restore run: dotnet restore FSharp.MongoDB.sln diff --git a/.github/workflows/on-push-tag.yml b/.github/workflows/on-push-tag.yml index ace92d6..41e7430 100644 --- a/.github/workflows/on-push-tag.yml +++ b/.github/workflows/on-push-tag.yml @@ -24,7 +24,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 10.0.301 + dotnet-version: 10.0.401 - name: Extract version suffix run: | diff --git a/.github/workflows/on-release-published.yml b/.github/workflows/on-release-published.yml index 8ae6849..6a346c6 100644 --- a/.github/workflows/on-release-published.yml +++ b/.github/workflows/on-release-published.yml @@ -18,7 +18,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 10.0.301 + dotnet-version: 10.0.401 - name: Download GitHub release artifacts uses: robinraju/release-downloader@v1.11 diff --git a/CHANGELOG.md b/CHANGELOG.md index c5cb708..2679f88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to FSharp.MongoDB are documented in this file. ## [Unreleased] +- Updated the required .NET SDK and all GitHub Actions workflows to `10.0.401`. +- Updated MongoDB.Bson from `3.6.0` to `3.12.0` across the library and test projects. +- Updated test dependencies to FsUnit `8.0.0`, NUnit `5.0.0`, NUnit3TestAdapter `6.3.1`, and Microsoft.NET.Test.Sdk `18.11.0`. + ## [0.6.0-beta] diff --git a/README.md b/README.md index 7dc0e7f..dcd83f8 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Repository origins are: 1. This repository: migrated to netstandard 2.1, nullable, adds new features (C#/F# isomomorphic serialization, voption support...) ## Building + * install .NET SDK `10.0.401` as specified in `global.json`. * build using the top-level solution file (`FSharp.MongoDB.sln`). * you can use `make` with target `build` or `test`. @@ -23,7 +24,7 @@ Repository origins are: This project targets `.net 8`, `.net 9`, `.net 10` and `netstandard2.1` ([compatible runtimes](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-1#select-net-standard-version)) -:warning: NRT support starts with `.net sdk 9.0.200`. F# compiler in .net sdk 9.0.10x does not set correctly nullable attributes on F# types. NRT are not supported on `netstandard2.1`. Anyway, it's better to use latest `.net sdk 10.0.301` at least. +:warning: NRT support starts with `.net sdk 9.0.200`. F# compiler in .net sdk 9.0.10x does not set correctly nullable attributes on F# types. NRT are not supported on `netstandard2.1`. Anyway, it's better to use latest `.net sdk 10.0.401` at least. ## Contributing * If you have a question about the library, then create an [issue][issues] with the `question` label. diff --git a/global.json b/global.json index c80d610..9c96e4c 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "10.0.301" + "version": "10.0.401" } } diff --git a/src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj b/src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj index a80c9dd..fdfb0f2 100644 --- a/src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj +++ b/src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj @@ -26,7 +26,7 @@ - + diff --git a/tests/CSharpDataModels/CSharpDataModels.csproj b/tests/CSharpDataModels/CSharpDataModels.csproj index d191cb5..5abb535 100644 --- a/tests/CSharpDataModels/CSharpDataModels.csproj +++ b/tests/CSharpDataModels/CSharpDataModels.csproj @@ -8,7 +8,7 @@ - + diff --git a/tests/FSharp.MongoDB.Bson.Tests/FSharp.MongoDB.Bson.Tests.fsproj b/tests/FSharp.MongoDB.Bson.Tests/FSharp.MongoDB.Bson.Tests.fsproj index 5d3793a..e72bd26 100644 --- a/tests/FSharp.MongoDB.Bson.Tests/FSharp.MongoDB.Bson.Tests.fsproj +++ b/tests/FSharp.MongoDB.Bson.Tests/FSharp.MongoDB.Bson.Tests.fsproj @@ -27,11 +27,11 @@ - - - - - + + + + +