Could not find type name or namespace "WebRequestHandler"

I am trying to use the Dropbox.API code given here:

https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/dropbox-sdk-dotnet/Examples/SimpleTest

I copied their Program.cs into my Program.cs without making other changes to other files in my solution / project.

I get

The type or namespace name "WebRequestHandler" could not be found.

enter image description here

Despite having this using statement:

using System.Net.Http;

An assembly reference is added in the help text, but I don’t know what to add.

I tried to move using System.Net.Httpboth inside and outside the class.

I am new to C # and .Net development, so expect this to be really a beginners problem.

+4
source share
1 answer

DLL System.Net.Http.WebRequest? WebRequestHandler, System.Net.Http.

MSDN.

, System.Net.Http.WebRequest DLL, Add -> Reference. , System.Net.Http.WebRequest.

+7

Source: https://habr.com/ru/post/1684740/


All Articles