Skip to content

[package] Update Microsoft.Windows.CsWin32 to 0.3.298 - #68935

Merged
wtgodbe merged 1 commit into
mainfrom
update-cswin32-package-0.3.298-fd3c5c0fb9c45321
Sep 1, 2026
Merged

wtgodbe merged 1 commit into
mainfrom
update-cswin32-package-0.3.298-fd3c5c0fb9c45321

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Updated Microsoft.Windows.CsWin32 from 0.3.296 to 0.3.298 (latest stable release) in eng/Versions.props.

Version change

  • MicrosoftWindowsCsWin32Version: 0.3.296 → 0.3.298
  • Release notes for v0.3.298: fixes for managed IID_PPV_ARGS overloads and CI-only changes; v0.3.297 did not exist as a separate stable tag between these.
  • Release notes for v0.3.296 → v0.3.298 did not add new Win32Metadata enum members or types relevant to HttpSys/IIS beyond what was already available.

Build verification

  • ./restore.sh completed 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, and src/Shared for CsWin32-related workarounds (hardcoded enum casts, GitHub issue references, manual structs, manual P/Invoke declarations). Findings:

  • HTTP_FEATURE_ID / HTTP_REQUEST_PROPERTY casts (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-generated HTTP_FEATURE_ID enum.
  • 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 generated IN6_ADDR/__byte_16 structs at 0.3.298: CsWin32 still emits its own unsafe fixed byte inline-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 for Microsoft.AspNetCore.Server.HttpSys; SecPkgContext_CipherInfo is 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.
  • No other TODO/CsWin32-issue-referencing comments, manual P/Invoke declarations shadowing CsWin32-generatable APIs, or additional workaround patterns were found in src/Servers/HttpSys, src/Servers/IIS, or src/Shared.

Remaining workarounds (not fixable at this time)

Workaround File Reason not fixed
.AsReadOnlySpan() on inline byte array for IPv6 address src/Shared/HttpSys/NativeInterop/SocketAddress.cs Referenced CsWin32 issue #1086 closed as "not planned"; generated code still lacks native C# 12 inline arrays.
Manual SecPkgContext_CipherInfo struct src/Shared/HttpSys/NativeInterop/SecPkgContext_CipherInfo.cs CsWin32 does not generate this Schannel.h struct; no equivalent found in generated sources.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • southcentralus0.in.applicationinsights.azure.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "southcentralus0.in.applicationinsights.azure.com"

See Network Configuration for more information.

Generated by Update CsWin32 Package · auto · 101.6 AIC · ⌖ 3.49 AIC · ⊞ 12.8K · ◷

Bump Microsoft.Windows.CsWin32 from 0.3.296 to 0.3.298 (latest stable).

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Sep 1, 2026
@github-actions
github-actions Bot requested review from a team and wtgodbe as code owners September 1, 2026 00:53
@github-actions github-actions Bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Sep 1, 2026
@wtgodbe
wtgodbe merged commit 8617263 into main Sep 1, 2026
30 checks passed
@wtgodbe
wtgodbe deleted the update-cswin32-package-0.3.298-fd3c5c0fb9c45321 branch September 1, 2026 16:57
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant