From 6065b952edca355462420ac2c092427ea458aad8 Mon Sep 17 00:00:00 2001 From: Arthur van de Vondervoort Date: Fri, 24 Apr 2026 15:17:16 +0200 Subject: [PATCH] feat: add net10.0 target framework Add net10.0 as a third TFM alongside netstandard2.1 and net8.0. - Add net10.0 conditional ItemGroup in RoslynTestKit.csproj with BC DevTools v17.0.2273547 and Microsoft.CodeAnalysis.Common 4.14.0 - Update CI workflows to download net10.0 BC DevTools DLLs - Bump .NET SDK to 10.0.x in CI (builds all TFMs) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build-and-release.yml | 10 +++++++++- .github/workflows/pull-request.yml | 8 +++++++- src/RoslynTestKit/RoslynTestKit.csproj | 21 ++++++++++++++++++++- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index c641f99..20299b8 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -37,7 +37,8 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '10.0.x' + cache: true cache-dependency-path: | **/*.csproj @@ -56,6 +57,13 @@ jobs: version-number: '16.0.1463980' target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net8.0' + # TODO: Bump version when net10.0 is released on marketplace + - name: Setup BC DevTools - net10.0 + uses: ./.github/actions/setup-bc-devtools + with: + version-number: '17.0.2273547' + target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0' + - name: Restore run: dotnet restore src/RoslynTestKit.sln diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2866e3e..3f643af 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -35,7 +35,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '10.0.x' cache: true cache-dependency-path: | **/*.csproj @@ -54,6 +54,12 @@ jobs: version-number: '16.0.1463980' target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net8.0' + - name: Setup BC DevTools - net10.0 + uses: ./.github/actions/setup-bc-devtools + with: + version-number: '17.0.2273547' + target-path: 'Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0' + - name: Restore run: dotnet restore src/RoslynTestKit.sln diff --git a/src/RoslynTestKit/RoslynTestKit.csproj b/src/RoslynTestKit/RoslynTestKit.csproj index 767c537..551b600 100644 --- a/src/RoslynTestKit/RoslynTestKit.csproj +++ b/src/RoslynTestKit/RoslynTestKit.csproj @@ -1,6 +1,6 @@  - netstandard2.1;net8.0 + netstandard2.1;net8.0;net10.0 ALCops.RoslynTestKit RoslynTestKit A lightweight framework for creating unit tests for Roslyn diagnostic analyzers, code fixes and refactorings. @@ -56,4 +56,23 @@ False + + + + + + + + False + ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0\Microsoft.Dynamics.Nav.CodeAnalysis.dll + False + + + False + ..\..\Microsoft.Dynamics.BusinessCentral.Development.Tools\net10.0\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.dll + False + + \ No newline at end of file