Skip to content

Commit 7447365

Browse files
committed
Update dependency on data annotations to 4.4.1 for ns2.0 only
1 parent a7814e7 commit 7447365

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Added support for command validators using `CommandLineApplication.Validators` and added a new OnValidate convention
66
- Fix minor bug in ArgumentEscaper where some strings were not properly escaped
7+
- Update to System.ComponentModel.Annotations 4.4.1 (netstandard2.0 only)
78

89
## [v2.2.0-rc]
910

src/CommandLineUtils/McMaster.Extensions.CommandLineUtils.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ McMaster.Extensions.CommandLineUtils.ArgumentEscaper
2020
<WarningsNotAsErrors>$(WarningsNotAsErrors);1591</WarningsNotAsErrors>
2121
</PropertyGroup>
2222

23-
<ItemGroup Condition="'$(TargetFramework)' != 'net45'">
24-
<PackageReference Include="System.ComponentModel.Annotations" Version="4.1.0" />
23+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
24+
<PackageReference Include="System.ComponentModel.Annotations" Version="4.4.1" />
2525
</ItemGroup>
2626

2727
<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
@@ -30,6 +30,8 @@ McMaster.Extensions.CommandLineUtils.ArgumentEscaper
3030
</ItemGroup>
3131

3232
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.6'">
33+
<!-- Keep these at the lowest possible version to support .NET Core 1. -->
34+
<PackageReference Include="System.ComponentModel.Annotations" Version="4.1.0" />
3335
<PackageReference Include="System.Diagnostics.Process" Version="4.1.0" />
3436
<PackageReference Include="System.Threading.Thread" Version="4.0.0" />
3537
<PackageReference Include="System.ValueTuple" Version="4.4.0" />

0 commit comments

Comments
 (0)