Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<CompilerVisibleProperty Include="GenerateRazorMetadataSourceChecksumAttributes" />
<CompilerVisibleProperty Include="MSBuildProjectDirectory" />
<CompilerVisibleProperty Include="_RazorSourceGeneratorDebug" />
<CompilerVisibleProperty Include="RazorWarningLevel" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ Copyright (c) .NET Foundation. All rights reserved.
('$(RazorLangVersion)' != '' AND '$(RazorLangVersion)' >= '3.0')">true</_Targeting30OrNewerRazorLangVersion>
</PropertyGroup>

<PropertyGroup>
<RazorWarningLevel Condition="'$(RazorWarningLevel)' == ''">$(WarningLevel)</RazorWarningLevel>
</PropertyGroup>

<PropertyGroup>
<!--
The property IsRazorCompilerReferenced is defined by the 2.x Razor.Design package. We can use this as a best guess to determine if a project is targeting 2.x or earlier.
Expand Down