Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#: Update to .NET9. #17999

Merged
merged 8 commits into from
Nov 19, 2024
Merged

C#: Update to .NET9. #17999

merged 8 commits into from
Nov 19, 2024

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Nov 15, 2024

In this PR we update the extractor to target .NET 9, which also requires that all our workflows and dependencies are updated accordingly.
This PR is paired with an internal PR. There will be a follow up PR that updates the dependencies further (including Roslyn) and also addresses some of the compiler warnings.

A couple of notes on this PR

  • The change to TestRunner.cs is required because the xunit dependency is updated.
  • The update to the interpretation of the output in the some of the dotnet_run and dotnet_build integration tests is needed because with .NET 9 the console logger is replaced with terminal logger and the latter makes some formatting of the printed text. This is also listed as a breaking change here.

DCA run: https://github.com/github/codeql-dca-main/issues/24870
There are no performance regressions. The alert discrepancies on the powershell buildless project is most likely a side effect of the increased target call precision for this run (this could be mostly wobliness).

@github-actions github-actions bot added the C# label Nov 15, 2024
@michaelnebel michaelnebel force-pushed the csharp/net9 branch 7 times, most recently from 2d5341d to e6fa73e Compare November 19, 2024 09:24
@michaelnebel michaelnebel marked this pull request as ready for review November 19, 2024 09:59
@michaelnebel michaelnebel requested review from a team as code owners November 19, 2024 09:59
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

LGTM, one comment. Updating .NET seems to become a bigger task every time...

def check_build_out(msg, s):
lines = s.splitlines()
lines = s.splitlines()
Copy link
Contributor

Choose a reason for hiding this comment

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

remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yes. I will do that in a follow up as this PR can merged now.

@michaelnebel michaelnebel merged commit 95a8881 into github:main Nov 19, 2024
33 of 37 checks passed
@michaelnebel michaelnebel deleted the csharp/net9 branch November 19, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# documentation no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants