Base solution for your next web application
Open Closed

nswag service-proxies update during build time #9476


User avatar
0
dev_frontrush created

Hello,

I'm trying to update azure devops build pipeline to run nswag as part of build process. To run the api i added "dotnet run " step as part of build. But when dotnet run task is run, azure devops pipeline gets paused on that step. Is there a way to refresh serviceproxies using nswag but without having to run the api?

As of now, we rely on each developer to checkin service proxies file.

Please advise.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dev_frontrush,

    Unfortunately, there is no other way. API website must be running for service-proxies update. But, this should be done at development time, why do you handle it during the publish ?

  • User Avatar
    0
    dev_frontrush created

    okay, thanks for your response.