The blazor "standalone" template includes this in the project's .csproj
:
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
What is it? Is it documented somewhere?
CodePudding user response:
Found the explanation here:
Blazor WebAssembly apps target the full .NET API surface area, but not all .NET APIs are supported on WebAssembly due to browser sandbox constraints. Unsupported APIs throw PlatformNotSupportedException when running on WebAssembly. ... For Blazor WebAssembly apps, this means checking that APIs are supported in browsers
So it informs the analysers and compiler to check that the app only uses BCL/FCL classes that are wasm-compatible.