Skip to content

Commit 77b546f

Browse files
authored
Move package reference to tests (#1057)
1 parent 4b31a84 commit 77b546f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Directory.Build.targets

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,12 @@
4949
</PropertyGroup>
5050

5151
<ItemGroup>
52-
5352
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" />
5453

5554
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321">
5655
<PrivateAssets>All</PrivateAssets>
5756
</PackageReference>
5857

59-
<!-- To address CVE-2017-0249 that System.Net.Http has a vulnerability. This will only affect the tests and benchmarks as the
60-
framework library doesn't require System.Net.Http. This is brought in by the .NET Core app framework -->
61-
<PackageReference Include="System.Net.Http" Version="4.3.4" Condition="!$(IsShipped)" />
62-
6358
</ItemGroup>
6459

6560
<ItemGroup>

Tests.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9+
<!-- To address CVE-2017-0249 that System.Net.Http has a vulnerability. This will only affect the tests and benchmarks as the
10+
framework library doesn't require System.Net.Http. This is brought in by the .NET Core app framework -->
11+
<PackageReference Include="System.Net.Http" Version="4.3.4" Condition="!$(IsShipped)" />
12+
913
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
1014
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
1115
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />

0 commit comments

Comments
 (0)