File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/Tasks/Microsoft.NET.Build.Tasks/targets Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Copyright (c) .NET Foundation. All rights reserved.
62
62
<!-- The CSharp.props used to hard-code WarningLevel to 4, so to maintain parity with .NET Framework projects we do that here. -->
63
63
<WarningLevel Condition =" '$(Language)' == 'C#' And '$(WarningLevel)' == '' And '$(TargetFrameworkIdentifier)' == '.NETFramework' " >4</WarningLevel >
64
64
<!-- .NET projects, however, can float up to their TFM's major version -->
65
- <WarningLevel Condition =" '$(Language)' == 'C#' And '$(WarningLevel)' == '' And '$(TargetFrameworkIdentifier)' == '.NETCoreApp' " >$(_TargetFrameworkVersionWithoutV.Split('.')[0]) </WarningLevel >
65
+ <WarningLevel Condition =" '$(Language)' == 'C#' And '$(WarningLevel)' == '' And '$(TargetFrameworkIdentifier)' == '.NETCoreApp' " >$([System.Version]::Parse('$(_TargetFrameworkVersionWithoutV)').Major </WarningLevel >
66
66
</PropertyGroup >
67
67
68
68
<!-- Enable Analyzers based on EffectiveAnalysisLevel -->
You can’t perform that action at this time.
0 commit comments