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?
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.
For VS 2010 select project References->add Reference->. NET tab-> click Component Name to organize list->should see system. web. helpers..
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With