0

I am building a webAPI client project called "eCommUtility.Client", and I am trying to add a reference to the "System.Web.dll" to use HttpContext. However, whenever I try to add a new reference, the options I get are only "add a project reference" or "add a service reference". The Project is a .Net Class Library.

Here is what is provided when right-clicking the dependencies:

enter image description here

Ande here are the options provided when right-clicking the project and going to the add option: enter image description here

Here are the project properties: enter image description here

I am not sure if I can enable it somehow? What am I doing wrong?

developer
  • 35
  • 3

1 Answers1

0

When you created your project, you selected .Net Standard 2.0, not .Net Framework... They are not the same. "Add reference" is a menu you get on a .net framework project, not .net standard.

fluidguid
  • 1,511
  • 14
  • 25