Open marobet opened 6 years ago
Try copying the required dlls to the output dir first: https://github.com/RSuter/NSwag/issues/1159#issuecomment-363886104
Besides that i recommend using the new api explorer generator aspnetcore2swagger (AspNetCoreToSwaggerGenerator)
tried the approach #1159 (comment) didn't work :( trying now using AspNetCoreToSwaggerGenerator.
Hmm youll probably see the same error as it works more or less the same. You could use the csproj option there (instead of assembly) but you probably have a recursion bevause it will rebuild the project (maybe use nobuild option and csproj).
Otherwise please provide a reproduction sample so we can look into it...
The error comes up when using a class as a parameter for the controller method, or use DataAnnotations to perform model validation.
Here is a simple project where the error message can be reproduced. https://github.com/marobet/nswag.example/
Thank you
Hello, I'm working on ASP.NET Core Web App, targeting framework netcoreapp2.1 I'm referencing package NSwag.MSBuild Version="11.17.15" And this is the line I have in my .csproj file
when building I'm getting below error message,
when checked https://www.nuget.org/packages/System.ComponentModel.Annotations Version=4.2.0.0, is no longer available in nuget.