Skip to content

C#: Very basic support for .NET 11 RC1. - #22565

Open
michaelnebel wants to merge 2 commits into
github:mainfrom
michaelnebel:csharp/dotnetrc1test
Open

michaelnebel wants to merge 2 commits into
github:mainfrom
michaelnebel:csharp/dotnetrc1test

Conversation

@michaelnebel

@michaelnebel michaelnebel commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

It appears that some new logic has been introduced in the powershell script for installing dotnet. For .NET 11 and onwards the scripts prefers to download the tar.gz archive of dotnet. However, this causes the script to fail when unpacking the archive (at least on our Windows runners). The logic can be seen here.

The .zip archive is still available and we can force the script to download the .zip file instead by setting DOTNET_INSTALL_SKIP_TAR.

In this PR we

  • We set DOTNET_INSTALL_SKIP_TAR=1 when installing a specific version of dotnet on Windows runners.
  • Introduce some basic integration tests for both traced- and build-mode: none extraction using .NET 11.

@github-actions github-actions Bot added the C# label Sep 15, 2026
@michaelnebel michaelnebel changed the title C#: Add extraction test for .NET 11 RC1. C#: Very basic support for .NET 11 RC1. Sep 15, 2026
@michaelnebel
michaelnebel force-pushed the csharp/dotnetrc1test branch 2 times, most recently from 9eed24a to ab9e4de Compare September 15, 2026 12:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review tier: Lite (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Lite.

What changed in this PR

Adds basic .NET 11 RC1 support for C# extraction, including a Windows installer workaround and integration coverage.

Changes:

  • Forces ZIP-based .NET installation on Windows.
  • Adds traced and buildless .NET 11 integration tests.
  • Adds a minimal .NET 11 console project fixture.
File Description
csharp/​ql/​integration-tests/​all-platforms/​dotnet_11/​test.py Tests traced and buildless extraction.
csharp/​ql/​integration-tests/​all-platforms/​dotnet_11/​Program.cs Provides the test application.
csharp/​ql/​integration-tests/​all-platforms/​dotnet_11/​global.json Pins the .NET 11 RC1 SDK.
csharp/​ql/​integration-tests/​all-platforms/​dotnet_11/​dotnet_build.csproj Targets net11.0.
csharp/​extractor/​Semmle.Extraction.CSharp.DependencyFetching/​DotNet.cs Configures the Windows installer workaround.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Sep 15, 2026
@michaelnebel
michaelnebel marked this pull request as ready for review September 15, 2026 12:45
@michaelnebel
michaelnebel requested a review from a team as a code owner September 15, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# 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