0

I've installed Microsoft HTTP Client Lib via nugget but I cannot use the HttpClient class. It does not see the namespace System.Net.Http. I'm new to .net/microsoft platform. The project is based on the.net portable library.

enter image description here

enter image description here

enter image description here

2
  • 1
    You did not mentioned the actual error message. Are you sure you got the portable http client? Commented Oct 28, 2013 at 17:07
  • Yes, I've got the portable http client, but wasn't added via Add Reference... I've added it and works now (needed clean solution - rebuild) Commented Oct 28, 2013 at 17:26

2 Answers 2

2

You need to install the NuGet package, per project. That's the same as "Add Reference". Just installing it into one project does not make it accessible for all projects. It sounds like this was the issue, given that your screenshot is from Object browser.

Sign up to request clarification or add additional context in comments.

Comments

0

I've solved the problem when I've added http client as a reference via add reference. I've thought that using .net portable lib will gave me access to all it's subsequent namespaces.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.