Repository navigation
[main] Source code updates from dotnet/runtime - #7872
Conversation
[[ commit created by automation ]]
|
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. |
|
looks like aspnet got broken by this FF. @wtgodbe can you take a look please? |
[[ commit created by automation ]]
@lewing this is likely caused by dotnet/runtime#131055, note that we hit it in preview7 FF too: #7923 |
interesting, the warning is correct but kind of funny in the sense that it is true for the entire in process runtime |
…System.IsBrowser() Fixes CA1416 introduced by the runtime JSImportGenerator change (dotnet/runtime#131055) that stamps [SupportedOSPlatform("browser")] on generated [JSImport] partial stubs. Microsoft.JSInterop is a plain SDK library with warnings-as-errors, so the unguarded call to the generated DisposeJSObjectReferenceById partial tripped CA1416. Guarding with OperatingSystem.IsBrowser() is behavior-neutral since JSInProcessObjectReference is only constructed by the WASM in-process runtime. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 30f68f14-f3e6-47e5-8344-dffb2b3d1952
…owser
Fixes CA1416 across Microsoft.JSInterop.WebAssembly and Microsoft.AspNetCore.Components.WebAssembly caused by the runtime JSImportGenerator SupportedOSPlatform("browser") change (dotnet/runtime#131055). These assemblies only run on the browser (Mono WebAssembly) runtime, so narrowing SupportedPlatform to browser resolves every generated [JSImport] call site at once.
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 30f68f14-f3e6-47e5-8344-dffb2b3d1952
…ject NoWarn
The SupportedPlatform Remove/Include browser narrowing does not suppress CA1416 in this SDK. Replace it with a per-project NoWarn on Microsoft.JSInterop.WebAssembly and Microsoft.AspNetCore.Components.WebAssembly, which is zero-cascade (an attribute-based SupportedOSPlatform narrowing would cascade CA1416 into the host-side Components.WebAssembly.Server that references these assemblies). Addresses CA1416 from the runtime JSImportGenerator SupportedOSPlatform("browser") change (dotnet/runtime#131055).
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 30f68f14-f3e6-47e5-8344-dffb2b3d1952
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Djuradj Kurepa <[email protected]> Co-authored-by: Larry Ewing <[email protected]> Copilot-Session: 30f68f14-f3e6-47e5-8344-dffb2b3d1952
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