未显示Microsoft.AspNetCore.Mvc虚拟方法

时间:2018-01-04 01:41:30

标签: asp.net-core asp.net-core-mvc

对两个独立的解决方案使用相同的ASP.NETCoreAll包,不确定为什么在一个解决方案中,intellisense(对象库)不呈现公共虚拟OkObjectResult Ok(对象值)。我可以看到OKResult对象,但Ok方法不存在。任何见解都是enter image description here赞赏的。

    // Summary:
    //     Creates an Microsoft.AspNetCore.Mvc.OkObjectResult object that produces an Microsoft.AspNetCore.Http.StatusCodes.Status200OK
    //     response.
    //
    // Parameters:
    //   value:
    //     The content value to format in the entity body.
    //
    // Returns:
    //     The created Microsoft.AspNetCore.Mvc.OkObjectResult for the response.
    [NonAction]
    public virtual OkObjectResult Ok(object value);

enter image description here

1 个答案:

答案 0 :(得分:0)

没有引用的继承控制器基类! Goofball监督。