Deploy Web API to Azure API Management via Azure Devops CI/CD pipelines — Part 1

Part 1: Configuring Web API project

dotnet new tool-manifest

dotnet tool install — version 6.2.3 Swashbuckle.AspNetCore.Cli

<Target Name=”SwaggerToFile” AfterTargets=”AfterBuild” Condition=”’$(Configuration)’==’Release’”>
<Exec Command=”dotnet swagger tofile — output <preferred filename>.json &quot;$(TargetPath)&quot; &quot;<API name> &quot;” />
</Target>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store