Web Api Request.CreateResponse HttpResponseMessage no intellisense VS2012

前端 未结 6 1990
渐次进展
渐次进展 2020-12-08 19:42

For some reason, Request.CreateResponse is now \"red\" in VS2012 and when I hover over the usage the IDE says

Cannot resolve symbol \'Cre

6条回答
  •  离开以前
    2020-12-08 20:25

    You need to add a reference to System.Net.Http.Formatting.dll. The CreateResponse extension method is defined there.

提交回复
热议问题