Skip to content

[release/11.0.1xx-preview7] Source code updates from dotnet/runtime - #7923

Merged
dkurepa merged 6 commits into
release/11.0.1xx-preview7from
darc-release/11.0.1xx-preview7-e3f28260-3649-4a2d-9521-a6104c119897
Jul 24, 2026
Merged

dkurepa merged 6 commits into
release/11.0.1xx-preview7from
darc-release/11.0.1xx-preview7-e3f28260-3649-4a2d-9521-a6104c119897

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/runtime

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/runtime:40636d81c1e23026050c30dcd10e54645a75235d..https://github.com/dotnet/dotnet:darc-release/11.0.1xx-preview7-e3f28260-3649-4a2d-9521-a6104c119897

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@akoeplinger

Copy link
Copy Markdown
Member

Failure caused by #7872 (comment)

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

…System.IsBrowser()

Fixes CA1416 introduced by the runtime JSImportGenerator change (#131055) that
stamps [SupportedOSPlatform("browser")] on generated [JSImport] partial stubs.
Microsoft.JSInterop is a plain library (not browser-narrowed) with warnings-as-errors,
so the unguarded call to the generated DisposeJSObjectReferenceById tripped CA1416.
Guarding with OperatingSystem.IsBrowser() is behavior-neutral since this type is only
constructed by the WASM in-process runtime.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6ada8ade-b30a-4812-b2ba-a6947877fee2
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team July 23, 2026 16:57
lewing added 2 commits July 23, 2026 16:24
…owser

Fixes CA1416 across Microsoft.JSInterop.WebAssembly and
Microsoft.AspNetCore.Components.WebAssembly caused by the runtime
JSImportGenerator SupportedOSPlatform("browser") change (#131055). These
assemblies only run on the browser (Mono WebAssembly) runtime, so narrowing
their SupportedPlatform to browser resolves every JSImport call site at once.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6ada8ade-b30a-4812-b2ba-a6947877fee2
…ject NoWarn

Replaces the SupportedPlatform Remove/Include browser narrowing (which does not
suppress CA1416 in this SDK) with a zero-cascade per-project NoWarn on
Microsoft.JSInterop.WebAssembly and Microsoft.AspNetCore.Components.WebAssembly.
The JSImportGenerator SupportedOSPlatform("browser") change (dotnet/runtime
#131055) trips CA1416 at every generated [JSImport] call site; these assemblies
only run on the Mono WebAssembly runtime so CA1416 is not meaningful. NoWarn is
used instead of a [SupportedOSPlatform] attribute to avoid cascading CA1416 into
the host-side Microsoft.AspNetCore.Components.WebAssembly.Server.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 6ada8ade-b30a-4812-b2ba-a6947877fee2
@dkurepa
dkurepa merged commit 92707ab into release/11.0.1xx-preview7 Jul 24, 2026
16 checks passed
@dkurepa
dkurepa deleted the darc-release/11.0.1xx-preview7-e3f28260-3649-4a2d-9521-a6104c119897 branch July 24, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants