You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace explicit .NET 8 assets with .NET 10 and .NET 11 assets, including browser targets, and require the .NET 11 SDK.
Upgrade the HTTP library's .NET Framework target from net462 to net481, retaining its existing WinHTTP implementation and dependency.
Preserve both existing netstandard2.0 and netstandard2.1 targets.
Run modern CI tests and coverage on .NET 11 only; retarget the .NET Framework tests and CI run to .NET Framework 4.8.1. Simplify trimming/AOT validation to .NET 11 with unconditional publish properties.
Preserve the v1-to-v2 upgrade guide and add docs/upgrade-guide-v2-to-v3.md.
Align JSON generated public API annotations and precise decimal test expectations with .NET 11; apply existing Framework-specific serialization expectations to net481.
Merge main and retain its SonarCloud workflow removal, resolving the conflict.
Breaking changes
Explicit net8.0 and net8.0-browser assets are removed. Modern assets target .NET 10 and .NET 11. The HTTP library's framework-specific target changes from net462 to net481; its WinHTTP behavior is preserved. Both .NET Standard targets remain supported for compatible consumers. Building the repository requires the .NET 11 SDK.
Validation
Solution build with net481 and both .NET Standard targets: zero warnings or errors.
All net481 test assemblies passed after updating two existing NET472-only serialization assertions to NETFRAMEWORK.
Verified HTTP package contains net481 assets and no net462 assets.
Formatting verification passed.
Prior review revision: .NET 11 suite 902 passed; all eight library packages include netstandard2.1 assets.
Update framework targets, SDK selection, CI, and upgrade documentation. Align JSON generated API annotations and decimal test expectations with modern .NET.
BREAKING CHANGE: Remove explicit net8.0 and net8.0-browser targets. Modern .NET assets now target net10.0 and net11.0, and building the repository requires the .NET 11 SDK. Existing .NET Standard and .NET Framework targets remain supported.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human validation is needed for browser execution, trimmed/AOT publication, and compatibility after removing .NET 8 assets, since reported desktop checks do not cover these paths.
No open issues 🎉
What changed in this PR
Updates Kiota’s modern .NET targets to .NET 10 and .NET 11, removing explicit .NET 8 assets while retaining .NET Standard and .NET Framework support.
Changes:
Retargets libraries, browser assets, tests, and trimming validation.
Requires the .NET 11 SDK and updates CI, debugging configuration, and migration guidance.
Aligns generated JSON API annotations and uses exact, culture-independent decimal test expectations.
Run modern CI tests and trimming validation on .NET 11 only. Preserve the v2 migration guide and document framework changes in a new v3 guide. Remove obsolete WinHTTP code and validate the .NET Standard fallback on .NET Framework.
BREAKING CHANGE: Remove explicit netstandard2.1 and HTTP net462 assets. Compatible consumers fall back to netstandard2.0; the HTTP factory uses HttpClientHandler instead of WinHttpHandler on .NET Framework.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The upgrade guide omits .NET 8/9 date/time migration options and the redirect-header callback needed to preserve proxy authentication safely with a custom WinHttpHandler.
Preserve the existing .NET Standard 2.1 assets and dependency conditions. Correct the v3 upgrade guide to reflect that .NET Standard targets remain unchanged.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Custom WinHttpHandler redirects can incorrectly lose explicit Proxy-Authorization headers and trigger HTTP 407 responses, while the migration guide omits the scrubber configuration needed to preserve them safely.
For a custom WinHttpHandler, removing this branch makes Kiota strip an explicit Proxy-Authorization header even when a redirect uses the same proxy, potentially causing HTTP 407 responses. Supplying the custom handler as advised in docs/upgrade-guide-v2-to-v3.md:27 is therefore insufficient for these callers. Either support custom proxy resolution or document and test a ScrubSensitiveHeaders callback that calls DefaultScrubSensitiveHeaders with the handler's proxy resolver, preserving proxy-bypass and origin/proxy-change checks.
Restore the framework-specific WinHTTP implementation and dependency. Retarget Framework tests and CI to net481 and preserve Framework-specific numeric serialization expectations.
BREAKING CHANGE: The HTTP library now targets net481 instead of net462. Both .NET Standard targets remain available for compatible older consumers.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
net462tonet481, retaining its existing WinHTTP implementation and dependency.netstandard2.0andnetstandard2.1targets.docs/upgrade-guide-v2-to-v3.md.Breaking changes
Explicit
net8.0andnet8.0-browserassets are removed. Modern assets target .NET 10 and .NET 11. The HTTP library's framework-specific target changes fromnet462tonet481; its WinHTTP behavior is preserved. Both .NET Standard targets remain supported for compatible consumers. Building the repository requires the .NET 11 SDK.Validation