Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with VB.NET #85
The C# file is just simple bootstrapping code to get you started. Alternatively, you can just install the "Core" package (which doesn't insert any additional code) ...
And manually add the following line, or rather it's VB.Net equivalent, somewhere during app startup
Granted, it would be ideal if the full "Swashbuckle" package detected the language on install and inserted a VB version of SwaggerConfig but it's just not a use-case that has come up before now.
I'm not very familiar with VB.NET ... would you be interested in submitting this as a pull request?
If anyone comes across this on Google for help with VB.NET.
This is the bare minimum. You can follow the annotations in the SwaggerConfig.cs file as well as the readme for any additional options you may want to configure.
I've added that file to my project, however I am getting this error:
Method not found: 'Swashbuckle.Application.SwaggerEnabledConfiguration Swashbuckle.Application.HttpConfigurationExtensions.EnableSwagger(System.Web.Http.HttpConfiguration, System.Action`1<Swashbuckle.Application.SwaggerDocsConfig>)'.
I'm referencing this this library version: Swashbuckle.Core.5.0.0\lib\net40\Swashbuckle.Core.dll
Update This was caused by a version mismatch of the System.Web.Http assembly referenced by my project and the Swashbuckle library.