I cannot call an HttpConfiguration
extension method:
using System.Configuration;
using System.Web.Http;
...
var config = new HttpConfiguration();
config.MapHttpAttributeRoutes(); // <-- error
Error: 'System.Web.Http.HttpConfiguration' does not contain a definition for 'MapHttpAttributeRoutes' and no extension method 'MapHttpAttributeRoutes' accepting a first argument of type 'System.Web.Http.HttpConfiguration' could be found (are you missing a using directive or an assembly reference?)
I tried both with System.Web.Http version 4 and 5, and with ".NET Framework 4.5.2" and ".NET Framework 4".
What am I missing?