Browse Source

Do not include System.ComponentModel.Annotations on net6+

Max Katz 1 năm trước cách đây
mục cha
commit
00a520c711
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      build/Binding.props

+ 1 - 1
build/Binding.props

@@ -1,5 +1,5 @@
 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
+  <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
     <PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
   </ItemGroup>
 </Project>