Skip to content

Commit c6814f4

Browse files
authored
Enable the compatibility analyzer for Blazor WebAssembly (#24978)
See dotnet/sdk#12872 (comment)
1 parent b22512d commit c6814f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Components/WebAssembly/Sdk/src/targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ Copyright (c) .NET Foundation. All rights reserved.
6969

7070
</PropertyGroup>
7171

72+
<ItemGroup>
73+
<!-- Configuration for the platform compatibility analyzer. See https://github.com/dotnet/designs/blob/master/accepted/2020/platform-exclusion/platform-exclusion.md#build-configuration-for-platforms -->
74+
<SupportedPlatform Remove="@(SupportedPlatform)" />
75+
<SupportedPlatform Include="browser" />
76+
</ItemGroup>
77+
7278
<Import Project="Microsoft.NET.Sdk.BlazorWebAssembly.ServiceWorkerAssetsManifest.targets" Condition="'$(ServiceWorkerAssetsManifest)' != ''" />
7379

7480
<Target Name="_ScrambleDotnetJsFileName" AfterTargets="ResolveRuntimePackAssets">

0 commit comments

Comments
 (0)