Open mahomedalid opened 1 year ago
Did you ever work around this? I'm getting the same thing on Windows when running via MSBuild like this:
<Target Name="CreateSwagger" AfterTargets="PostBuildEvent">
<Message Importance="high" Text="Generating api.json from code" />
<Exec WorkingDirectory="$(ProjectDir)" Command="$(NSwagExe_Net70) aspnetcore2swagger /assembly:$(TargetDir)SOM.WDADPR.Web.dll /output:$(ProjectDir)api.json /variables:Configuration=$(Configuration)" EnvironmentVariables="ASPNETCORE_ENVIRONMENT=Development" />
</Target>
I got an error when executing nswag:
My dependencies include Microsoft.Data.SqlClient Version="5.1.0" This is a net7.0 API.
NSwag version: 13.18.2.0 NJsonSchema version: 10.8.0.0 (Newtonsoft.Json v13.0.0.0)