对两个独立的解决方案使用相同的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);
答案 0 :(得分:0)
没有引用的继承控制器基类! Goofball监督。