developer
developer

Reputation: 35

"Add Reference" options is not available in Class Library project dependencies

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?

Upvotes: 0

Views: 575

Answers (1)

fluidguid
fluidguid

Reputation: 1681

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.

Upvotes: 0

Related Questions