Skip to content

Commit 0d548f3

Browse files
authored
Enable PlatformCompatibilityAnalyzer for RCL projects (#25636)
1 parent c5bcd68 commit 0d548f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ProjectTemplates/Web.ProjectTemplates/RazorClassLibrary-CSharp.csproj.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<ItemGroup Condition="'$(SupportPagesAndViews)' == 'True'">
1010
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1111
</ItemGroup>
12+
13+
<ItemGroup Condition="'$(SupportPagesAndViews)' == 'False'">
14+
<SupportedPlatform Include="browser" />
15+
</ItemGroup>
1216

1317
<ItemGroup Condition="'$(SupportPagesAndViews)' != 'True'">
1418
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="${MicrosoftAspNetCoreComponentsWebPackageVersion}" />

0 commit comments

Comments
 (0)