Web Api Request.CreateResponse HttpResponseMessage no intellisense VS2012

前端 未结 6 1997
渐次进展
渐次进展 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:21

    Because this extension method lives in System.Net.Http, you just need to include it in your usings statements.

    using System.Net.Http;
    

提交回复
热议问题