Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which platform is meant by "Browser"?

Tags:

c#

.net

platform

In the .NET code for the HttpClient class I found this attribute: [UnsupportedOSPlatform("browser")]
So, several fields are not supported by the "browser" platform, but which platform would this be? WebAssembly? Windows? Anything else?

like image 266
Wim ten Brink Avatar asked Sep 15 '25 08:09

Wim ten Brink


1 Answers

It's when your code runs within a browser. Right now that's Blazor WebAssembly (not Blazor Server, as the code actually runs on a server).

like image 161
gunr2171 Avatar answered Sep 17 '25 22:09

gunr2171