ResponseType在MVC 6中不可用

时间:2016-09-09 20:41:59

标签: asp.net-web-api asp.net-core-mvc swagger swashbuckle

我一直在使用ResponseType命名空间中的System.Web.Http.Description属性。它有助于生成客户端模型。但是现在MVC 6中缺少这个。还有其他属性替换了吗?

1 个答案:

答案 0 :(得分:3)

这是一篇关于asp.net https://docs.asp.net/en/latest/tutorials/web-api-help-pages-using-swagger.html

的所有dot net core的精彩文章

但是为了让你开始尝试ProducesResponseType属性。