RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.67k stars 1.23k forks source link

What did the Controllers parameter do and what can we do now? #4723

Open mdressel opened 7 months ago

mdressel commented 7 months ago

We are using 14.0.2 and we had been using 13.20.0.

Our project uses aspNetCoreToOpenApi, but also used the /controllers: command-line argument which appears to have been removed. We were using this argument to limit what controllers were being generated. What is the equivalent way to do this without the controller argument?

In case it helps, this is the command-line we were running with the controller argument: dotnet "/root/.nuget/packages/nswag.msbuild/14.0.0-preview008/buildTransitive/../tools/Net80/dotnet-nswag.dll" run WebNswagConfig.nswag /controller:MYCONTROLLERCLASSHERE /variables:Configuration=Debug,OutDir=bin/Debug/netcoreapp8.0/