Skip to content

Migrate from .NET 8 to .NET 10 - #3184

Merged
Eddy Nakamura (eddynaka) merged 2 commits into
mainfrom
users/ednakamu/sarif-sdk-analysis
Nov 30, 2026
Merged

Eddy Nakamura (eddynaka) merged 2 commits into
mainfrom
users/ednakamu/sarif-sdk-analysis

Conversation

@eddynaka

@eddynaka Eddy Nakamura (eddynaka) commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Migrate the Multitool and test projects from .NET 8 to .NET 10, including CI and packaging.

Behavior

The .NET tool now requires the .NET 10 runtime. Existing .NET Standard and .NET Framework targets are retained. Pin SDK selection to the .NET 10 feature band, and keep System.Private.Uri for net462 only.

Tests

  • Full solution build and non-Windows restore passed with SDK 10.0.404.
  • Self-contained Windows publish and the published tool’s --version command passed.
  • Targeted tests, fixture regeneration, TypeScript conformance, .NET Framework WorkItems tests, NuGet tool installation, and Windows/Linux/macOS publishes passed.
  • Three symbolic-link tests could not create links because this Windows account lacks the required privileges.

Update Multitool, test targets, and CI to .NET 10. Align packaging and sample generation while retaining existing .NET Standard and .NET Framework targets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eddynaka
Eddy Nakamura (eddynaka) requested a review from a team as a code owner November 29, 2026 20:48
Copilot AI adaptive review requested due to automatic review settings November 29, 2026 20:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The migration spans runtime requirements and packaging across NuGet, npm, Windows/.NET Framework compatibility, and three CI environments, so produced packages and installation behavior still require human verification.

No open issues 🎉

What changed in this PR

Migrates the SARIF Multitool and associated test projects from .NET 8 to .NET 10 while retaining existing .NET Standard and .NET Framework targets. Packaging, sample generation, npm builds, conformance tests, and CI environments are updated for the new runtime.

Changes:

  • Retargets the Multitool, test, functional-test, and end-to-end projects to net10.0.
  • Updates build scripts, output paths, NuGet/npm packaging, and sample-generation tooling.
  • Updates Azure DevOps, GitHub Actions, CodeQL, conformance tests, and release notes for the .NET 10 requirement.
File Description
src/​Test.Utilities.Sarif/​FileDiffingUnitTests.cs Updates the documented test-output path to net10.0.
src/​Test.UnitTests.WorkItems/​Test.UnitTests.WorkItems.csproj Retargets WorkItems tests to .NET 10 while retaining .NET Framework coverage.
src/​Test.UnitTests.Sarif/​Test.UnitTests.Sarif.csproj Retargets SARIF unit tests to .NET 10.
src/​Test.UnitTests.Sarif/​Taxonomies/​CweGeneratedSampleTests.cs Updates Multitool lookup paths and output-layout documentation to .NET 10.
src/​Test.UnitTests.Sarif.WorkItems/​Test.UnitTests.Sarif.WorkItems.csproj Retargets SARIF WorkItems tests to .NET 10 while retaining .NET Framework coverage.
src/​Test.UnitTests.Sarif.Multitool/​Test.UnitTests.Sarif.Multitool.csproj Retargets Multitool unit tests to .NET 10.
src/​Test.UnitTests.Sarif.Multitool.Library/​Test.UnitTests.Sarif.Multitool.Library.csproj Retargets Multitool library tests to .NET 10.
src/​Test.UnitTests.Sarif.Multitool.Library/​GroupingGeneratedSampleTests.cs Updates generated-sample Multitool lookup paths to .NET 10.
src/​Test.UnitTests.Sarif.Driver/​Test.UnitTests.Sarif.Driver.csproj Retargets driver tests to .NET 10.
src/​Test.UnitTests.Sarif.Converters/​Test.UnitTests.Sarif.Converters.csproj Retargets converter tests to .NET 10.
src/​Test.UnitTests.Sarif.Converters/​AndroidStudioProblemTests.cs Disambiguates the project shuffle helper from the newer framework API.
src/​Test.FunctionalTests.Sarif/​Test.FunctionalTests.Sarif.csproj Retargets functional tests to .NET 10.
src/​Test.FunctionalTests.Sarif/​SarifValidatorTests.cs Updates the test-data lookup path to the .NET 10 test output.
src/​Test.FunctionalTests.Sarif/​MultitoolCommandLineTests.cs Updates Windows executable lookup paths to .NET 10.
src/​Test.EndToEnd.Baselining/​Test.EndToEnd.Baselining.csproj Retargets baselining end-to-end tests to .NET 10.
src/​Sarif/​Taxonomies/​CweGenerateSample.ps1 Updates CWE sample generation to invoke the .NET 10 Multitool build.
src/​Sarif.Multitool/​Sarif.Multitool.csproj Retargets the Multitool to .NET 10 while retaining the .NET Framework target.
src/​Nuget/​Sarif.Multitool.nuspec Moves the .NET tool package layout from net8.0 to net10.0.
scripts/​Projects.psm1 Makes .NET 10 the application framework used by build and packaging scripts.
scripts/​BuildMultitoolForNpm.ps1 Publishes, stages, and cleans .NET 10 Multitool binaries for npm packages.
ReleaseHistory.md Documents the breaking .NET 10 runtime requirement for Sarif.Multitool.
npm/​sarif-multitool-ts/​test/​conformance.test.js Builds and runs conformance tests against the .NET 10 Multitool.
docs/​ai/​samples/​grouping-findings/​GroupingGenerateSample.ps1 Updates grouping-sample generation to use the .NET 10 Multitool.
BuildPackagesFromLayoutDirectory.cmd Copies signed .NET 10 assemblies into the package layout.
ado-build.yml Installs the .NET 10 SDK in Azure DevOps build and npm packaging jobs.
.github/​workflows/​validate.yml Uses .NET 10 for validation, npm packaging, and formatting jobs.
.github/​workflows/​codeql-analysis.yml Installs the .NET 10 SDK before CodeQL build analysis.

Review effort: Lite (adaptive)

Pin SDK resolution to the .NET 10 feature band so CI does not select a preinstalled .NET 11 SDK. Retain the System.Private.Uri package for net462 while allowing .NET 10 package pruning.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eddynaka
Eddy Nakamura (eddynaka) merged commit e5e1e81 into main Nov 30, 2026
6 checks passed
@eddynaka
Eddy Nakamura (eddynaka) deleted the users/ednakamu/sarif-sdk-analysis branch November 30, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants