Open daniel-white opened 4 years ago
You can wire this up pretty easily with a simple Exec
target. See the following csproj from one of our sample apps for inspiration:
Sure, but this would make it hard to version. Having it as a NuGet dependency/msbuild tool, I don't have to have the correct version installed separately on devs machines or on the CI machine.
@domaindrivendev So I'm at this point: NSwag also has a MSBuild dependency that works with VS for Mac.
https://github.com/RicoSuter/NSwag/wiki/NSwag.MSBuild
<DotNetCliToolReference>
are broken in VS for Mac, so I can't use them, but the nswag msbuild works great.
I'd love to stay with swashbuckle due to the extension for fluent validation.
It would be great if there was an msbuild extension that worked like the CLI global tool. An
AfterBuild
target that generates the document to a file would be awesome.Coverlet is a great example: they have a CLI and an MSBuild extension
https://github.com/tonerdo/coverlet