c# - RouteAttribute can't be found in System.Web.Http package -


i've added asp.net web api self host using nuget package manager project (a windows service project) nuget added libraries

  • asp.net web api self host
  • json.net
  • microsoft .net framework 4 http client libraries
  • microsoft asp.net web api client/core libraries
  • microsoft asp.net web api self host

when try add route attribute can't find in system.web.http. when looked class in msdn saw under package

do need install package or add referance?

you need install nuget package microsoft.aspnet.webapi.webhost use following in package manager console.

install-package microsoft.aspnet.webapi.webhost 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -