Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Web.Http missing after .net 4.5 upgrade

I've just upgraded my solution to .net 4.5 using Target Framework Migrator, and then the package manager console command:

Update-Package -Reinstall -IgnoreDependencies

In one of my projects I am using:

using System.Web.Http.Controllers; using System.Web.Http.Filters; 

The code uses HttpActionContext and ReflectedHttpActionDescriptor. I notice that System.Web.Http has been removed from my references, and is no longer available in the Add New Reference window. What's going on?

like image 240
Kev Avatar asked Jan 07 '15 12:01

Kev


People also ask

How do I add System Web to .NET core?

Add a new ASP.NET Core Web Application project to the solution. In the Configure your new project dialog, Name the project ProductsCore, and select Create. In the Create a new ASP.NET Core Web Application dialog, confirm that . NET Core and ASP.NET Core 3.1 are selected.

How do I add System Web Helper reference?

For VS 2010 select project References->add Reference->. NET tab-> click Component Name to organize list->should see system. web. helpers..

What is .NET system Web?

Defines the methods, properties, and events that are common to all application objects in an ASP.NET application. This class is the base class for applications that are defined by the user in the Global.


1 Answers

Have you looked in the Extensions part of the "Add new reference", instead of Framework ?

If it's not there, it's in the Microsoft.AspNet.WebApi.Core package on NuGet.

like image 170
Steen Tøttrup Avatar answered Sep 21 '22 19:09

Steen Tøttrup