You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSImport and SupportedOSPlatform("browser") #121165
JSImportAttribute has SupportedOSPlatform("browser") which seems useless - having SupportedOSPlatform on the attribute itself has no effect when the attribute is applied to a method.
Expected Behavior
The JSImport source generator should instead apply SupportedOSPlatform("browser") to the partial method implementation parts, so warnings like CA1416 are properly reported when the method is used from non-browser code.
Activity
ilonatommy commentedon Oct 29, 2025
This looks like runtime issue
dotnet-policy-service commentedon Oct 29, 2025
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
Emit SupportedOSPlatform("browser") on generated JSImport partials (#…