Tuesday, November 17, 2015

Where can I find the System.Web.Http assembly?

Visual Studio 2015 now informs you of "Potential fixes" when you have forgotten to reference a particular assembly in your project, however, if the assembly is part of a NuGet package, it offers no insight into which NuGet package reference you have to add to your project!  You are still left on your own to figure out which NuGet package is required!

Well, in the case of the System.Web.Http assembly, this belongs to the Microsoft.AspNet.WebApi.Core NuGet package.

Once you add this reference to your project via NuGet Package Manager, your assembly reference error message should disappear!

No comments:

Post a Comment