Skip to content

Add support for .NET 11. Closes #2112 - #2113

Merged
waldekmastykarz merged 16 commits into
dotnet:mainfrom
waldekmastykarz:dotnet-11-support
Nov 27, 2026
Merged

waldekmastykarz merged 16 commits into
dotnet:mainfrom
waldekmastykarz:dotnet-11-support

Conversation

@waldekmastykarz

Copy link
Copy Markdown
Collaborator

Closes #2112

Changes

  • net11.0: All projects now target net11.0. EF Core and Microsoft.Extensions.* are updated to 11.0.0, and the lock files are regenerated.
  • DevProxy.Abstractions: Targets both net10.0 and net11.0, with 10.x and 11.x package versions per target. Microsoft.Extensions.Logging.Abstractions is referenced only for net10.0, because on net11.0 it's redundant (NU1510).
  • Analyzer fixes:
    • CA1307: In Abstractions, I used span or list-pattern equivalents, because the new char + StringComparison overloads don't exist on net10.0. Other projects use the new overloads with StringComparison.Ordinal, which matches the previous behavior.
    • CA2016: The commands now pass the cancellation token to WriteLineAsync. The exception handler in StdioCommand uses CancellationToken.None so the error still prints during shutdown.
    • CA2027: The tests use WaitAsync(timeout) instead of Task.WhenAny + Task.Delay.
  • Pinned the analyzer level: AnalysisLevel is set to 11.0 in Directory.Build.props, so a newer SDK doesn't add new build errors.
  • Paths and CI:
    • Updated the hard-coded net10.0 paths in the integration tests, .vscode/launch.json and scripts/local-build.ps1.
    • CI uses dotnet-version: 11.0.x in all workflows.
    • Tests now run in CI (dotnet test --no-build).
  • Release workflow: Signs both Abstractions DLLs and uploads DevProxy.Abstractions-<tag>-net10.0.zip and -net11.0.zip, replacing the single zip. dotnet pack already includes both targets in the nupkg.
  • Docs: The Abstractions README covers the target frameworks and the Private=false / ExcludeAssets=runtime reference requirement. WINDOWS-VERIFICATION.md now expects the .NET 11 SDK.

Notes

  • The issue's 36 CA1860 errors don't occur with the GA SDK (11.0.100), so this PR doesn't change anything for CA1860.
  • .NET 11 supports all release targets (win/linux/osx, x64/arm64/x86). The minimum macOS version is now 15.

Validation

  • dotnet restore --locked-mode and the Debug and Release builds succeed with 0 warnings.
  • All 628 tests pass on net11.0.

- Build Dev Proxy, plugins and tests on net11.0 and update EF Core and
  Microsoft.Extensions.* packages to 11.0.0
- Multi-target DevProxy.Abstractions to net10.0 and net11.0 so existing
  plugin projects keep working
- Fix new analyzer errors (CA1307, CA2016, CA2027)
- Pin AnalysisLevel to 11.0 so new SDKs don't break the build
- Update hard-coded net10.0 paths, CI SDK versions and release workflow
  (sign, zip and upload both Abstractions targets)
- Run tests in CI
- Document plugin reference requirements in the Abstractions README

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@waldekmastykarz
waldekmastykarz requested a review from a team as a code owner November 15, 2026 12:15
Copilot AI balanced review requested due to automatic review settings November 15, 2026 12:15

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.

🟡 Changes recommended

The command exit-code tests search for DevProxy.dll instead of devproxy.dll, causing the case-sensitive lookup to fail on Ubuntu and stop at the host-not-built assertion.

1 open issue
What changed in this PR

Moves Dev Proxy to .NET 11 so it can run .NET 11 plugins, while retaining a .NET 10 target in the Abstractions package for existing plugin projects.

Changes:

  • Retargets the host, plugins, engine, and tests; updates dependencies and lock files.
  • Addresses analyzer warnings with explicit string comparisons, cancellation-token forwarding, and timeout waits.
  • Updates build and debugger paths, enables CI tests, and packages both Abstractions targets for release.
File Description
WINDOWS-VERIFICATION.md Updates the expected SDK to .NET 11.
scripts/​local-build.ps1 Copies plugins from the .NET 11 output path.
Directory.Build.props Pins the analyzer level to 11.0.
DevProxy/​Plugins/​PluginServiceExtensions.cs Makes exclusion-prefix comparison explicitly ordinal.
DevProxy/​packages.lock.json Records the host’s updated dependency graph.
DevProxy/​Logging/​ProxyConsoleFormatter.cs Uses ordinal plugin-name delimiter lookup.
DevProxy/​Logging/​JsonConsoleFormatter.cs Uses ordinal category delimiter lookups.
DevProxy/​DevProxy.csproj Targets .NET 11 and updates EF Core.
DevProxy/​Commands/​StdioCommand.cs Specifies cancellation behavior for error output.
DevProxy/​Commands/​LogsCommand.cs Forwards cancellation to notice output.
DevProxy/​Commands/​ApiCommand.cs Forwards cancellation to diagnostic output.
DevProxy.Tests/​DevProxy.Tests.csproj Targets host unit tests at .NET 11.
DevProxy.Proxy.Kestrel/​packages.lock.json Records the engine’s updated dependency graph.
DevProxy.Proxy.Kestrel/​Internal/​ConnectAuthorityParser.cs Makes colon lookup explicitly ordinal.
DevProxy.Proxy.Kestrel/​DevProxy.Proxy.Kestrel.csproj Targets the proxy engine at .NET 11.
DevProxy.Proxy.Kestrel.Tests/​DevProxy.Proxy.Kestrel.Tests.csproj Targets engine tests at .NET 11.
DevProxy.Plugins/​packages.lock.json Records updated plugin dependencies.
DevProxy.Plugins/​Mocking/​MockStdioResponsePlugin.cs Makes surrounding-quote checks explicitly ordinal.
DevProxy.Plugins/​Mocking/​MockResponsePlugin.cs Makes file-body prefix detection explicitly ordinal.
DevProxy.Plugins/​Generation/​TypeSpecGeneratorPlugin.cs Makes the singularization suffix check explicitly ordinal.
DevProxy.Plugins/​Generation/​OpenApiSpecGeneratorPlugin.cs Makes trailing-slash detection explicitly ordinal.
DevProxy.Plugins/​Generation/​ApiCenterOnboardingPlugin.cs Uses ordinal API identifier delimiter lookup.
DevProxy.Plugins/​DevProxy.Plugins.csproj Targets .NET 11 and updates shared dependencies.
DevProxy.Plugins/​Behavior/​GenericRandomErrorPlugin.cs Makes file-body prefix detection explicitly ordinal.
DevProxy.Plugins/​ApiCenter/​ApiCenterClient.cs Makes environment-variable prefix detection explicitly ordinal.
DevProxy.Integration.Tests/​ProcessSmokeTests.cs Locates the host in .NET 11 output.
DevProxy.Integration.Tests/​EngineInactivityTimeoutTests.cs Replaces timeout races with WaitAsync.
DevProxy.Integration.Tests/​DevProxy.Integration.Tests.csproj Targets .NET 11 and updates EF Core.
DevProxy.Integration.Tests/​CommandExitCodeTests.cs Updates the host lookup’s framework directory.
DevProxy.Abstractions/​README.md Documents framework compatibility and shared-assembly references.
DevProxy.Abstractions/​Proxy/​WatchedHostExtractor.cs Uses a span-based path search compatible with both targets.
DevProxy.Abstractions/​packages.lock.json Adds the .NET 11 dependency graph alongside .NET 10.
DevProxy.Abstractions/​DevProxy.Abstractions.csproj Adds dual targets with framework-specific dependencies.
DevProxy.Abstractions.Tests/​DevProxy.Abstractions.Tests.csproj Targets Abstractions tests at .NET 11.
.vscode/​launch.json Updates debugger paths to .NET 11 output.
.github/​workflows/​dotnet.yml Uses the .NET 11 SDK and enables tests.
.github/​workflows/​create-release.yml Updates SDK and paths; signs and archives both Abstractions targets.
.github/​workflows/​codeql-analysis.yml Uses the .NET 11 SDK for analysis.

Review effort: Balanced

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

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.

🔵 Needs a closer look

CI covers Ubuntu development outputs rather than the six self-contained release layouts, leaving native SQLite loading and runtime compatibility dependent on human validation of published artifacts.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

waldekmastykarz and others added 3 commits November 24, 2026 09:55
Resolve conflicts in ApiCenterClient.cs and DevProxyCommand.cs and fix new CA1307 in Program.cs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve cross-platform CI and client smoke tests with .NET 11 SDK and host paths.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve .NET 11 targets and analyzer fixes alongside main's CLI help updates, banned API analyzer, and .NET 10 dependency updates. Regenerate NuGet lock files for the combined dependency graph.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:14

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.

🔵 Needs a closer look

The major runtime and EF Core/SQLite upgrades require published-artifact validation across release platforms, especially Linux native-library packaging, existing Graph database compatibility, and net10.0 plugin loading on the net11.0 host.

No open issues 🎉

Review effort: Balanced

Preserve the upstream CI job layout and NuGet caching while using .NET 11 in both jobs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 06:58

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.

🟢 Approval recommended

No active review issues are recorded for the .NET 11 migration.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 13:05

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.

🔵 Needs a closer look

The runtime and EF Core/SQLite upgrades require published-binary validation across release platforms and net10.0 plugin-loading checks unavailable in this environment, particularly given the System.CommandLine major-version mismatch.

No open issues 🎉

Review effort: Balanced

@garrytrinder garrytrinder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Functional test results

  • PR: #2113
  • Tested commit: 0abaab35088470dd420e582cdc2858f0632e7ba9
  • Environment: macOS 27.2, arm64, isolated .NET SDK 11.0.100 / runtime 11.0.0. Fixtures used an isolated HOME and CFFIXED_USER_HOME, a unique certificate path, no certificate installation, random ports, and no system-proxy changes.
Scenario or test command Expected Actual Result
Locked restore and source host/plugin builds using .NET 11 Dependencies restore without lock changes; host and plugins compile Initial locked restores and builds succeeded with 0 warnings/errors PASS
dotnet run --no-build --project DevProxy -- --detach --as-system-proxy false --port 0 --api-port 0 --install-cert false --no-first-run --config-file <fixture> --output json Owned process and API become ready PID-scoped status reported the assigned endpoints; process alive; authenticated GET /proxy returned 200; unauthenticated request returned 401 PASS
Explicit HTTP proxy requests to http://pr2113.invalid/inline and /file with MockResponsePlugin Exact inline and file-based mock responses Inline returned 201, X-PR2113: net11, and {"runtime":"net11","ok":true}; @body.json returned 200 and {"source":"file","ok":true} PASS
Unmatched watched URL with blockUnmockedRequests: true Explicit failure without contacting an upstream 502 with No mock response found for GET http://pr2113.invalid/unmatched PASS
Load unmodified plugins/DevProxy.Plugins.dll from the official v4.0.0 osx-arm64 release Existing .NET 10 plugin runs on .NET 11 host Detached startup, both exact mock responses, and unmatched-request blocking passed PASS
GenericRandomErrorPlugin, rate 100, a single 503 response with an @body.json body Deterministic simulated failure, including headers/body 503, Retry-After: 7, exact file JSON PASS
Unknown option; stdio without command; api token --pid 2147483647 Defined nonzero exit and explicit diagnostic Unknown option: exit 2, unrecognized-argument message. Missing stdio command: exit 2, required-argument message. Missing PID: exit 1, no-running-instance message PASS
dotnet pack DevProxy.Abstractions/DevProxy.Abstractions.csproj --no-restore Both supported framework assets included Package contains lib/net10.0/DevProxy.Abstractions.dll and lib/net11.0/DevProxy.Abstractions.dll, with separate dependency groups PASS
Compile real BasePlugin consumers for net10.0 and net11.0 using the locally packed package and documented shared-assembly settings; load each into the source host Both package targets compile and initialize successfully Both logged their target-specific initialization marker and served the exact mock/boundary responses. Consumer restore/build emitted NU1900 because NuGet vulnerability metadata was unavailable; compilation and runtime assertions succeeded PASS
dotnet publish DevProxy/DevProxy.csproj -c Release -r osx-arm64 --self-contained true -p:PublishSingleFile=true, plus matching Release plugin build/copy Release-layout binary runs independently of system .NET 11 Published executable started detached and passed authenticated API, exact inline/file mock, and unmatched-request assertions PASS
Published host with GraphSelectGuidancePlugin, existing bundled Graph DB, and a mocked http://graph.microsoft.pr2113.invalid/v1.0/users request Native SQLite can query the existing DB Returned mocked 200 and logged the expected $select guidance, with no DB lookup error. The fixture DB timestamp was current to avoid remote metadata updates PASS
Inspect real unit-test CI for this exact head Required automated validation passes Build/unit-test job fails: WebSocketRelayTests.RelayAsync_ReplaysHandshake_RelaysFrames_AndReportsResponse, line 137, expected Receive, actual Send; 129 Abstractions tests passed, then 210 Kestrel tests passed and 1 failed. Later jobs were skipped. PR attribution was not established; no local automated suite was rerun FAIL
Cross-platform release confidence Actual platform tests, not just green check names The green .NET workflow only echoes No build required / No tests required, including jobs named for Windows/macOS/Ubuntu. These do not validate those platforms. Windows/Linux signed release binaries were unavailable on this macOS host BLOCKED

Requested changes

None. No reproducible functional defect attributable to this PR was established. The failing WebSocket CI assertion still needs investigation and successful required validation before functional approval; it is not being presented as a proven runtime regression. The initial local CLI harness used the wrong diagnostic/exit-code expectations; correcting it to parser exit 2 made those assertions pass without changing product code.

Outcome

Comment only. Local functional and macOS published-artifact checks passed, including released .NET 10 plugins, both new package-consumer targets, and native SQLite. The real required CI job is failing and cross-platform green checks are no-op placeholders, so this evidence does not justify approval or a PR-attributed change request. Functional testing does not replace code review.

All owned proxy instances were stopped by PID and their exits verified. Temporary fixtures, SDK, release downloads, isolated home/state/logs, and only this run's build workers were cleaned up. RID-restore-generated lock-file edits were restored; no PR source changes, commits, pushes, or merge actions were made.

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

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.

🔵 Needs a closer look

The runtime and SQLitePCLRaw major upgrades require published-artifact validation of Linux native-library compatibility, signed Abstractions ZIPs, and net10 SQLite plugins in the net11 host beyond the reported tests and source inspection.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 26, 2026 15:08

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.

🔵 Needs a closer look

Cross-version plugin loading and SQLite native dependencies in signed, self-contained release artifacts require runtime validation beyond the net11.0-only test suite.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 15:21

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.

🔵 Needs a closer look

Human assessment is needed to determine whether the net10.0 target’s 11.x Microsoft.Extensions dependencies are intentional despite the specified per-target version alignment.

No open issues 🎉

Review effort: Balanced

@garrytrinder garrytrinder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Functional test results

  • PR: #2113
  • Tested commit: aec43bba6aa3bad24c488271f75e4ddc065c85d3
  • Environment: macOS 27.2 arm64, owned .NET SDK 11.0.100 / runtime 11.0.0. Detached instances used random proxy/API ports, --as-system-proxy false, --install-cert false, an isolated HOME plus CFFIXED_USER_HOME, and a unique certificate path.
  • This rerun supersedes my earlier report for 0abaab35. The earlier failing CI and no-op cross-platform-check blockers are no longer present on this head.
Scenario or test command Expected Actual Result
Locked restore and source host/plugin builds using .NET 11 Restore succeeds; host/plugins compile without warnings/errors Both locked restores and builds passed; 0 build warnings/errors PASS
dotnet run --no-build --project DevProxy -- --detach --as-system-proxy false --port 0 --api-port 0 --install-cert false --no-first-run --config-file <fixture> --output json Owned PID alive, assigned ports, responsive authenticated API PID alive; isolated log/state path verified; PID-scoped status reported available; authenticated GET /proxy=200, unauthenticated=401 PASS
Explicit proxy GETs to http://pr2113.invalid/inline, /file, and /unmatched Exact inline/file mocks; explicit unmatched failure Inline=201, X-PR2113: net11, {"runtime":"net11","ok":true}. File=200, {"source":"file","ok":true}. Unmatched=502 with No mock response found PASS
Unmodified DevProxy.Plugins.dll from official v4.0.0 osx-arm64 release loaded into current source host Existing .NET 10 plugin runs correctly on .NET 11 Startup/API and all three exact mock/boundary assertions passed PASS
GenericRandomErrorPlugin: rate 100, one 503 response with file body and Retry-After header Deterministic simulated failure 503, Retry-After: 7, exact file JSON PASS
Unknown option; missing stdio command; nonexistent PID API token lookup Explicit errors and correct nonzero exits Exit 2 with unrecognized-argument message; exit 2 with missing-required-command message; exit 1 with no-running-instance message PASS
Pack Abstractions; compile and load real net10.0 and net11.0 plugin consumers using the local package and documented shared-assembly settings Both package assets usable; custom command-line options and SQLite calls work across target versions Package contains both framework DLLs. Both consumers parsed --compat-marker pr2113, initialized EF Core with in-memory SQLite, asserted SELECT 42=42, and passed all mock/API assertions. The net11 consumer also executed a net11-specific char comparison overload PASS
dotnet publish DevProxy/DevProxy.csproj -c Release -r osx-arm64 --self-contained true -p:PublishSingleFile=true, plus matching Release plugin build/copy Published layout runs independently of system .NET 11 Published executable started detached and passed authenticated API and exact inline/file/unmatched assertions PASS
Published host, current GraphSelectGuidancePlugin, existing bundled Graph DB; mocked http://graph.microsoft.pr2113.invalid/v1.0/users Native SQLite can query existing DB Graph response=200 with {"value":[]}; expected DB-backed $select guidance logged; no database lookup error PASS
Same published-host Graph scenario with unmodified v4.0.0 .NET 10 Graph and mock plugins Existing plugin's SQLite-backed behavior survives runtime/dependency upgrade Same 200 response and $select guidance; no database lookup error PASS
Exact-head build and cross-platform CI Real builds/tests pass, rather than no-op check names Inspected job steps and logs: real restore/build/unit/integration tests ran. macOS and Ubuntu each passed 156 Abstractions + 227 Kestrel + 289 host + 307 integration tests. Windows passed 156 + 227 + 289 + 299, with 2 integration tests explicitly skipped. Client smoke also passed PASS
Signed Windows/Linux release artifacts Signing credentials and matching platform hosts Not exercised locally on this Mac; local release-layout validation covers osx-arm64 only. CI results above are build/test evidence, not signed-release verification BLOCKED

Requested changes

None. No attributable functional defect was reproduced.

The temporary test fixture initially checked a parsed option too early (InitializeAsync, before OptionsLoaded) and placed --config-file after the API subcommand. Correcting those fixture mistakes produced passing reruns without product changes. Consumer restore/build emitted NU1900 because NuGet vulnerability metadata was unavailable; consumer compilation and runtime assertions succeeded. Product source builds had zero warnings/errors.

The current net10.0 package retains EF Core 10.0.15 and uses Microsoft.Extensions 11.0.0, matching the current base's Extensions versions; both target consumers were exercised on this .NET 11 host. The Graph fixture DB timestamp was current to avoid remote metadata updates.

Outcome

Approve — functional testing only. Current-head source and published-macOS behavior, real package consumers, legacy .NET 10 plugins, native SQLite, and actual cross-platform CI all pass. The former required-CI blockers are cleared. This approval does not replace code review or attest to release signing.

All owned proxy instances were stopped by PID and their exits verified. Owned SDK/build workers, fixtures, downloads, isolated home/state/logs, and restore-generated lock edits were cleaned up. The original clean dotnet-11-support checkout was restored. No PR source changes, commits, pushes, or merge actions were made.

waldekmastykarz and others added 2 commits November 27, 2026 08:22
…-checks

# Conflicts:
#	DevProxy.Abstractions/Utils/ProxyUtils.cs
#	DevProxy.Plugins/Behavior/GenericRandomErrorPlugin.cs
#	DevProxy/Commands/DevProxyCommand.cs
#	DevProxy/Program.cs
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 07:22

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.

🟡 Changes recommended

The net10.0 target still references Microsoft.Extensions.* 11.0.0 despite the stated 10.x requirement, so the dependency versions need correction or their intended use needs clarification.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 27, 2026 08:44

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.

🔵 Needs a closer look

The SQLitePCLRaw 3.x packaging transition requires release-artifact and database-backed compatibility checks across supported RIDs that source inspection cannot establish, with builds and tests unavailable in this review environment.

1 open issue

Review effort: Balanced

…arget

Dependabot (dotnet#2185, dotnet#2186) bumped the net10.0 group to 11.0.0. Align it with
EF Core 10.0.15 so each target uses matching package versions (dotnet#2112).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 09:02

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.

🔵 Needs a closer look

Published-RID validation is needed to confirm the runtime and SQLite upgrades preserve Linux’s libe_sqlite3.so installer contract, Graph database access, and net10.0 plugin loading in the net11.0 host.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Resolve conflicts in ConfigCommand.cs, DevProxyCommand.cs and Program.cs
(keep main's CRLF line endings, reapply .NET 11 analyzer fixes), regenerate
DevProxy.Plugins lock file, and fix new CA1307 in OpenApiValidationPlugin.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 10:34

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.

🔵 Needs a closer look

The major runtime/EF Core/SQLite upgrade requires human validation of release-platform native loading, persisted Graph database compatibility, and older net10 plugin support not covered by the current net11 tests.

No open issues 🎉

Review effort: Balanced

@garrytrinder garrytrinder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Functional test results

  • PR: dotnet/dev-proxy#2113
  • Tested commit: e8720045644c39c23a0d20d1dcbd3a9038645cd4
  • Base commit: 61346d968d73f38c94d3bcb7130f22c29f91171a
  • Environment: macOS 27.2, ARM64; separate .NET SDK 11.0.100; runtime 11.0.0; installed .NET 10 runtime.

The application and plugin source builds passed with no warnings or errors. The local package contains both framework targets.
The runtime identifier (RID) selects the operating system and processor for a published application.
Entity Framework Core (EF) supplies the database calls. SQLite is the database used in these tests.

Scenario or test command Expected Actual Result
Locked restore; build DevProxy/DevProxy.csproj and DevProxy.Plugins/DevProxy.Plugins.csproj Build without errors or warnings Both source builds passed without errors or warnings PASS
Pack DevProxy.Abstractions; check its package and lock file Both DLLs; Microsoft dependencies match each target net10.0 uses 10.0.15; net11.0 uses 11.0.0; both DLLs are present PASS
Run the net10.0 package consumer with /usr/local/share/dotnet/dotnet Runtime major version 10; configuration and SQLite each give 42 The runtime check passed; both values were 42; exit code was 0 PASS
Source proxy; API and mock requests Live process; API 200 with token and 401 without token; exact mock responses API results matched; mocks gave 201, 200, and 502; headers and JSON matched PASS
Official v4.0.0 plugin on the .NET 11 source build Previous plugin loads; API and mock responses match The unchanged net10.0 plugin passed the same checks PASS
File-backed error response 503; Retry-After: 7; exact file JSON All three assertions passed PASS
Invalid command input Unknown option exits 2; missing stdio command exits 2; absent PID exits 1 Each exit code matched; each command gave the expected error message PASS
net10.0 plugin from the local package Custom option equals pr2113; EF/SQLite query gives 42; proxy checks pass All assertions passed on the .NET 11 host PASS
net11.0 plugin from the local package Same checks; .NET 11 API call succeeds All assertions passed on the .NET 11 host PASS
Self-contained, single-file osx-arm64 application API and mock responses match the source build API 200/401; mock 201/200/502; exact headers and JSON PASS
Current Graph plugin in the published application Graph response 200; SQLite-backed $select guidance; no database error All assertions passed PASS
Official v4.0.0 Graph plugin in the published application Previous plugin gives the same response and database guidance All assertions passed with the unchanged plugin DLL PASS
OpenAPI mock plugin and validator with a local specification Success response 201, body {"id":42}; successful validation Exact response; log contained Request and response match GET /items PASS
Current-commit CI logs Real tests pass on macOS, Ubuntu, and Windows macOS/Ubuntu: 171+227+391+490 passed each; Windows: 171+227+391+482 passed, 2 skipped PASS
NuGet audit metadata for the temporary consumers Retrieve vulnerability data NuGet returned NU1900; the service index was unavailable BLOCKED
Signed Windows/Linux release packages on their target systems Run each final release package This Mac cannot run those packages; source CI does not prove signed-release behavior BLOCKED

The runtime script passed all 12 scenarios. No application defect was reproduced.
The API token remained private. Each launch used separate state, a separate certificate path, and assigned ports.

The source launch used:

dotnet run --no-build --project DevProxy -- --detach --as-system-proxy false --port 0 --api-port 0 --install-cert false --no-first-run --config-file <owned-config> --output json

The published application used the same application arguments.
The fixture set both HOME and CFFIXED_USER_HOME.
Each proxy check used its own assigned endpoint.

The first temporary runner restore could not download the .NET 10 apphost package.
The runner did not need an apphost, because the test invokes its DLL through dotnet.
Restore and build succeeded with -p:UseAppHost=false.
The fixture also had a compile error because IConfigurationRoot does not implement IDisposable.
The corrected fixture disposes the configuration through IDisposable.
Neither failure required a PR source change.
The consumer builds still reported NU1900. This warning does not invalidate the executed runtime checks.

Requested changes

None.

Outcome

Approve for functional testing of the tested commit. This approval does not replace code review or final release validation.
The corrected .NET 10 dependencies and both package targets passed the required runtime checks.
GitHub reports mergeable: true and mergeable_state: blocked. This result does not identify the merge-policy cause.
No fix, push, or merge was performed.

All owned proxy processes stopped through their matching build and PID.
The two owned SDK workers stopped.
The owned SDK, fixtures, certificates, state, and logs were removed after evidence collection.
The four lock files changed by the local publish were restored.
The original dotnet-11-support checkout is clean.
Other instances and the shared SDK installation were not changed.

The full ASD-STE100 Issue 9 dictionary was unavailable.
Sentence lengths and wording were checked against the available guidance.
The STE check is incomplete.

@waldekmastykarz
waldekmastykarz merged commit 25c59de into dotnet:main Nov 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-enhancement Product features, behavior fixes, and usability or compatibility improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for .NET 11

3 participants