Browse Source

Add condition for LangVersion

pull/3014/head
Stefan Nikolei 6 months ago
parent
commit
3ddd02073a
  1. 6
      Directory.Build.props

6
Directory.Build.props

@ -21,7 +21,11 @@
<!-- Import the shared global .props file -->
<Import Project="$(MSBuildThisFileDirectory)shared-infrastructure\msbuild\props\SixLabors.Global.props" />
<PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0'">
<LangVersion>12.0</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net10.0'">
<LangVersion>14.0</LangVersion>
</PropertyGroup>

Loading…
Cancel
Save