Skip to content

Update .NET Framework target versions - #3185

Merged
Aasim Malladi (aasim) merged 2 commits into
mainfrom
users/ednakamu/framework-target-updates
Nov 30, 2026
Merged

Aasim Malladi (aasim) merged 2 commits into
mainfrom
users/ednakamu/framework-target-updates

Conversation

@eddynaka

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

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: a8b60a8c298d510c57f3aa47a589fa4823942cd8

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ All required checks and Windows, macOS, and Ubuntu CI passed on this revision; local package inspection and executable smoke tests passed.
↓ Execution on actual 4.6.2 and 4.7.2 runtimes and NuGet advisory lookup remain unverified.
Diagnosis confidence 6/10 ↑ The shared static flag can produce the unexpected ExceptionInEngine result; the two interacting test classes are now serialized.
↓ The original CI failure did not capture the underlying exception or confirm overlapping execution.
Evidence fit 6/10 ↑ The macOS test suite passes after the isolation change.
↓ A passing rerun does not prove the flag caused the original failure.

Description

Replace Windows net461 product targets with net462 and add net472 targets.

.NET Framework 4.6.1 reached end of support on April 26, 2022. Version 4.6.2 reaches end of support on January 12, 2027, so net472 provides a longer-supported target.

Behavior

  • Publish and sign both framework versions; retain netstandard2.0 and net10.0.
  • Move the .NET 10 release note to UNRELEASED. The disabled generator still references net461.
  • Serialize the two interacting driver test classes and reset exception injection in a finally block.

Tests

  • Release multitool build, 57 .NET Framework tests, package inspection, and both packaged executable smoke tests passed.
  • Both focused driver tests and all CI checks passed, including Windows, macOS, and Ubuntu.
  • NuGet's advisory feed was unavailable; local builds used NuGetAudit=false.

Replace net461 product targets with net462 and add net472 assets across Windows libraries and the multitool. Update publishing and signing so both framework versions are packaged.

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 30, 2026 16:41
Copilot AI adaptive review requested due to automatic review settings November 30, 2026 16:41

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 change expands the Windows .NET Framework runtime matrix and package layout, while the supplied checks do not verify packaged binaries and library consumers on actual .NET Framework 4.6.2 and 4.7.2 runtimes.

No open issues 🎉

What changed in this PR

Updates Windows .NET Framework support from net461 to net462, adds net472 targets across SARIF libraries and the Multitool, and aligns packaging, signing, build automation, and release notes.

Changes:

  • Replaces legacy net461 product targets with net462 and adds net472 targets.
  • Adds framework-specific references, package contents, and signed Multitool assets.
  • Updates framework build matrices and documents the changes under UNRELEASED.
File Description
src/​WorkItems/​WorkItems.csproj Replaces the net461 target with net462 and adds net472.
src/​Sarif/​Sarif.csproj Adds the net472 target and required framework assembly references.
src/​Sarif.WorkItems/​Sarif.WorkItems.csproj Adds net462 and net472 targets.
src/​Sarif.Multitool/​Sarif.Multitool.csproj Adds the net472 application target and URI compatibility support.
src/​Sarif.Multitool.Library/​Sarif.Multitool.Library.csproj Adds framework targets and packages default configuration for net462 and net472.
src/​Sarif.Driver/​Sarif.Driver.csproj Adds the net472 target and required HTTP and compression references.
src/​Sarif.Converters/​Sarif.Converters.csproj Adds the net472 target.
src/​Nuget/​Sarif.Multitool.nuspec Packages signed net462 and net472 Multitool assets.
scripts/​Projects.psm1 Updates build, application, and library framework matrices.
ReleaseHistory.md Moves the .NET 10 change to UNRELEASED and documents the framework target changes.

Review effort: Lite (adaptive)

Place the tests that can observe the shared exception-injection flag in the same xUnit collection. Reset the flag in a finally block so a failing assertion cannot leave it enabled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aasim
Aasim Malladi (aasim) merged commit f96740a into main Nov 30, 2026
6 checks passed
@eddynaka
Eddy Nakamura (eddynaka) deleted the users/ednakamu/framework-target-updates branch November 30, 2026 20:14
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