Repository navigation
[package] Update Microsoft.Windows.CsWin32 to 0.3.298 - #68935
Merged
Merged
Conversation
Bump Microsoft.Windows.CsWin32 from 0.3.296 to 0.3.298 (latest stable). Co-authored-by: Copilot <[email protected]>
wtgodbe
approved these changes
Sep 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.
Summary
Updated
Microsoft.Windows.CsWin32from 0.3.296 to 0.3.298 (latest stable release) ineng/Versions.props.Version change
MicrosoftWindowsCsWin32Version:0.3.296→0.3.298v0.3.298: fixes for managedIID_PPV_ARGSoverloads and CI-only changes;v0.3.297did not exist as a separate stable tag between these.v0.3.296→v0.3.298did not add new Win32Metadata enum members or types relevant to HttpSys/IIS beyond what was already available.Build verification
./restore.shcompleted successfully (SDK + NuGet restore, including new CsWin32 package version).dotnet build src/Servers/HttpSys/src/Microsoft.AspNetCore.Server.HttpSys.csproj— Build succeeded, 0 warnings, 0 errors.dotnet build src/Servers/IIS/IIS/src/Microsoft.AspNetCore.Server.IIS.csproj— Build succeeded, 0 warnings, 0 errors.Workaround investigation
Searched
src/Servers/HttpSys,src/Servers/IIS, andsrc/Sharedfor CsWin32-related workarounds (hardcoded enum casts, GitHub issue references, manual structs, manual P/Invoke declarations). Findings:HTTP_FEATURE_ID/HTTP_REQUEST_PROPERTYcasts (src/Servers/HttpSys/src/NativeInterop/HttpApi.cs,RequestContext.cs): already use the named enum members (e.g.HTTP_FEATURE_ID.HttpFeatureCacheTlsClientHello,HTTP_REQUEST_PROPERTY.HttpRequestPropertyTlsCipherInfo) — no hardcoded integer-cast workaround exists here to remove. Verified all needed enum members (HttpFeatureCacheTlsClientHello,HttpFeatureQueryCipherInfo,HttpFeatureDelegateEx,HttpFeatureResponseTrailers) are present in the CsWin32-generatedHTTP_FEATURE_IDenum.src/Shared/HttpSys/NativeInterop/SocketAddress.cs— workaround comment references microsoft/CsWin32#1086 ("Leverage .NET 8/C# 12 inline arrays"). This issue is closed as "not planned" (closed 2025-12-15). Inspected the generatedIN6_ADDR/__byte_16structs at 0.3.298: CsWin32 still emits its ownunsafe fixed byteinline-array wrapper type (__byte_16) rather than a real C# 12[InlineArray], and still requires the.AsReadOnlySpan()extension method to obtain a span. This workaround could not be removed — left in place, since the issue was declined upstream and the underlying limitation is unchanged.src/Shared/HttpSys/NativeInterop/SecPkgContext_CipherInfo.cs— manually-defined[StructLayout]struct "From Schannel.h". Checked CsWin32-generated output forMicrosoft.AspNetCore.Server.HttpSys;SecPkgContext_CipherInfois not generated by CsWin32 (Schannel types are outside its current Win32Metadata coverage for this API surface). Left unchanged — no generated equivalent exists to switch to.TODO/CsWin32-issue-referencing comments, manual P/Invoke declarations shadowing CsWin32-generatable APIs, or additional workaround patterns were found insrc/Servers/HttpSys,src/Servers/IIS, orsrc/Shared.Remaining workarounds (not fixable at this time)
.AsReadOnlySpan()on inline byte array for IPv6 addresssrc/Shared/HttpSys/NativeInterop/SocketAddress.csSecPkgContext_CipherInfostructsrc/Shared/HttpSys/NativeInterop/SecPkgContext_CipherInfo.csWarning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
southcentralus0.in.applicationinsights.azure.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.