3

I'm porting an old C# Shared Lib to a Standard Library. However I'm facing with a lot of System.Net.HttpWebResponse and System.Net.WebResponse references. It used to exist on .Net Framework 4.5 But I'm not able to find similar in .Net standard.

What can I do to be able to use those?

Daniel Santos
  • 14,328
  • 21
  • 91
  • 174

1 Answers1

3

You are actually using System.Net.Requests wich is not available for .NETStandard 1.6 nor for .Net Core.

Try to use the classes in System.Net.Http instead.

Or you can install System.Net.Requests NuGet package through Package Manager Console:

Install-Package System.Net.Requests -Version 4.3.0 

This package contains compatible classes to System.Net.Requests and can be used as replacement of it.

S.Dav
  • 2,436
  • 16
  • 22
  • According to the NuGet link you specified, it is available in .NET Standard 1.0, so it should be compatible with .NET 4.5. https://learn.microsoft.com/en-us/dotnet/standard/library – koelkastfilosoof Jun 13 '17 at 07:13