Skip to content

Commit 1055e1f

Browse files
committed
Fix to use <Reference Include="System.Net.Http" />
1 parent 29cc50c commit 1055e1f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<LangVersion>10.0</LangVersion>
2020
</PropertyGroup>
2121

22+
<ItemGroup Condition="'$(TargetFramework)'=='net462'">
23+
<Reference Include="System.Net.Http" />
24+
</ItemGroup>
25+
2226
<ItemGroup>
2327
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*" PrivateAssets="All" />
2428
</ItemGroup>

src/SequentialGuid/SequentialGuid.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,4 @@
55
<Description>Will generate Sequential Guids based on MongoDB's ObjectId specification. Date &amp; time are encoded into the value so you do not need to store them separately in your database. Supports standard Guids as well as SQL Server guids.</Description>
66
</PropertyGroup>
77

8-
<!--
9-
This is likely an RC1 issue but System.Net.Http is not included in .net framework legacy
10-
Track: https://github.com/dotnet/core/issues/6688
11-
-->
12-
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
13-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
14-
</ItemGroup>
15-
168
</Project>

test/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<NoWarn>IDE0051</NoWarn>
1010
</PropertyGroup>
1111

12+
<ItemGroup Condition="'$(TargetFramework)'=='net462'">
13+
<Reference Include="System.Net.Http" />
14+
</ItemGroup>
15+
1216
<ItemGroup>
1317
<PackageReference Include="coverlet.msbuild" Version="2.*" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
1418
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" />

0 commit comments

Comments
 (0)