Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

swagger with asp.net webapi

$
0
0

hi, 

I have swagger specification .yaml files and then use http://editor.swagger.io/#/  to generate server "ASPNET5" to generate asp.net code.

when i try to import the code to my project. I got tons of error such as:


The type or namespace name 'Mvc' does not exist in the namespace 'Microsoft.AspNet' (are you missing an assembly reference?)

The type or namespace name 'HttpGetAttribute' could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)


he type or namespace name 'Swashbuckle' could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name 'IHostingEnvironment' could not be found (are you missing a using directive or an assembly reference?)

Just wondering where are these libraries. what package I missing? 

or anybody have any document that how to import these code into my asp.net webapi application? thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles