Repository navigation
[package] Update Microsoft.Windows.CsWin32 from 0.3.275 to 0.3.296 - #67501
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
Author
|
Note: After merging, push all packages to dotnet-public repo by queuing a build from [dotnet-migrate-package]((dev.azure.com/redacted) Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "southcentralus0.in.applicationinsights.azure.com"See Network Configuration for more information.
|
BrennanConroy
approved these changes
Jul 1, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bumps
Microsoft.Windows.CsWin32from0.3.275to0.3.296ineng/Versions.props.Version change
Microsoft.Windows.CsWin32Notable changes in 0.3.276–0.3.296 (from release notes)
"PInvoke"classname; fixedIStream.Read/Writeforwarding; fixedIComIIDon downlevel TFMs; fixedIDispatchproperty returns; added[Optional]on optional paramsCS3016under[assembly: CLSCompliant(true)]; new generic<T>overloads forIID_PPV_ARGSpattern; fields in anonymous nested structs exposed with property getters on nesting struct; inline arrays flatteningWorkaround audit
Workaround that remains (cannot be removed)
src/Shared/HttpSys/NativeInterop/SocketAddress.cs—AsReadOnlySpan()call onsin6_addr.u.ByteIssue microsoft/CsWin32#1086 ("Leverage .NET 8/C# 12 inline arrays") was closed on 2025-12-15 as not planned. CsWin32 still generates
Windows.Win32.__byte_16(a fixed-buffer struct) for this field, and theAsReadOnlySpan()extension method call is still required. Removing it causesCS1503: Argument 1: cannot convert from 'Windows.Win32.__byte_16' to 'byte[]'. Workaround stays.src/Servers/HttpSys/src/NativeInterop/HttpApi.cs—GetProcAddressforHttpQueryRequestProperty/HttpSetRequestPropertyThese are intentional runtime feature detection patterns (not CsWin32 workarounds). The functions may be absent on some Windows versions, so runtime presence checks via
GetProcAddressare the correct approach.Build verification
Both affected projects build cleanly with the new version:
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
southcentralus0.in.applicationinsights.azure.comSee Network Configuration for more information.