Skip to content

Commit

Permalink
Remove explicitly configured LangVersion from RazorSDK (#20247)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm authored Aug 27, 2021
1 parent b572cc6 commit 19d1fe2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ Copyright (c) .NET Foundation. All rights reserved.
<_TargetingNET50OrLater>true</_TargetingNET50OrLater>
<_TargetingNET60OrLater>true</_TargetingNET60OrLater>
<UseRazorSourceGenerator Condition="'$(UseRazorSourceGenerator)' == '' ">true</UseRazorSourceGenerator>
<!-- Required to support incremental source generator -->
<LangVersion Condition="'$(UseRazorSourceGenerator)' != '' ">preview</LangVersion>
<RazorLangVersion Condition="'$(RazorLangVersion)' == '' ">6.0</RazorLangVersion>
</PropertyGroup>
</When>
Expand Down Expand Up @@ -101,7 +99,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<StaticWebAssetsEnabled Condition="'$(StaticWebAssetsEnabled)' == ''">$(_Targeting30OrNewerRazorLangVersion)</StaticWebAssetsEnabled>

<UseStaticWebAssetsV2>$(_TargetingNET60OrLater)</UseStaticWebAssetsV2>

<!-- Controls whether or not the scoped css feature is enabled. By default is enabled for net6.0 applications and RazorLangVersion 5 or above -->
<ScopedCssEnabled Condition="'$(ScopedCssEnabled)' == '' and '$(StaticWebAssetsEnabled)' == 'true'">$(_Targeting30OrNewerRazorLangVersion)</ScopedCssEnabled>

Expand Down

0 comments on commit 19d1fe2

Please sign in to comment.