Closed esmadau closed 6 months ago
Is this related to dotnet cli in general streaming everything to stdout? https://github.com/dotnet/sdk/issues/7289#issuecomment-1204512664
This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.
Yep, this is an issue with .NET rather than us. Our code doesn't get executed in this scenario.
swashbuckle version: 6.1.4 and 6.4.0
In a case where .NET version expected to be able to use
dotnet swagger
is not found, the output seems like it should be an error, but instead is just informational. This is causing issues when trying to use this in processes where an error is expected to fail the task appropriately, whether the failure occurs on writing the file or anything else around usingdotnet swagger
. This seems to be a general issue, not relating to a specific version of the cli.Repro:
Continue
when running in Powershelltry{dotnet swagger}catch{Write-Host "error occurred."}
Example:
Repro:
Continue
when running in Powershelltry{dotnet swagger tofile --output unknown src\unknown.dll v1}catch{Write-Host "error occured."
An error is also not thrown when the assembly provided is not found: