Enable PlatformCompatibilityAnalyzer for RCL projects (#25636)

This commit is contained in:
Artak 2020-09-09 09:57:42 -07:00 committed by GitHub
parent c5bcd68853
commit 0d548f302b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@
<ItemGroup Condition="'$(SupportPagesAndViews)' == 'True'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup Condition="'$(SupportPagesAndViews)' == 'False'">
<SupportedPlatform Include="browser" />
</ItemGroup>
<ItemGroup Condition="'$(SupportPagesAndViews)' != 'True'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="${MicrosoftAspNetCoreComponentsWebPackageVersion}" />