Skip to content

C#: .NET 11 integration tests and stubs. - #23172

Draft
michaelnebel wants to merge 8 commits into
github:mainfrom
michaelnebel:csharp/dotnet11tests
Draft

michaelnebel wants to merge 8 commits into
github:mainfrom
michaelnebel:csharp/dotnet11tests

Conversation

@michaelnebel

@michaelnebel michaelnebel commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 2d44deb8bd751bb06e2235772202d6aa63adb5c9

Dimension Assessment Rationale
Change confidence 7.5/10 ↑ Tracer is byte-identical to its pre-node-reuse-injection version, preserving existing command argument handling.
↑ Environment regression target passes with both safeguards and rejects each incorrect setting on .NET 10; Python syntax and diff checks pass.
↓ Full .NET 11 integration/baseline suite and native Windows execution remain unverified.

C#: .NET 11 integration tests and stubs.

Reused MSBuild workers or servers can predate tracing and launch compilers that CodeQL cannot observe. MSBUILDDISABLENODEREUSE=1 sets the default for traced invocations, including indirect commands. We do not inject node-reuse switches: retaining the existing command-line behavior avoids SDK and runner compatibility issues. Explicit node-reuse switches can still override this environment default.

Keep DOTNET_CLI_USE_MSBUILD_SERVER=false as defense in depth against SDK default changes (.NET 11 enables the server by default). Disabling node reuse normally already bypasses server reuse; modern -mt uses a fresh, short-lived server rather than reusing an existing one. The server opt-out is not an independently proven requirement and can itself be superseded by explicit MSBUILDUSESERVER=1. These safeguards address the tracing risk; the cause of the flaky CI failures remains unconfirmed.

michaelnebel and others added 6 commits November 25, 2026 13:12
Update the generated integration test expectations and point debugger configurations to net11.0.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
michaelnebel and others added 2 commits November 25, 2026 16:09
Set the node-reuse environment default and append explicit switches for dotnet build/msbuild/publish/pack and standalone MSBuild. Keep run, test, and xbuild argument handling unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Retain environment safeguards without changing node-reuse command-line options for SDK compatibility. Keep regression coverage for both environment defaults.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant