Dreamescaper / GenerateAspNetCoreClient

DotNet tool to generate HTTP client classes from ASP.NET Core api controllers.
MIT License
63 stars 5 forks source link

Run Tool in a Post Build Command #28

Closed CianToole closed 5 months ago

CianToole commented 5 months ago

I am looking to run this tool in a post-build command to automate the generation of the interfaces.

I have had some trouble getting this to work however, as the command builds the app I seem to get stuck in an infinite loop where the app keeps building and calling the command to generate the interfaces.

I was wondering if there was a way to only run the command once by having the command ignore the post-build command or adding a condition to the post build command that would prevent the command from being run multiple times.

Here is the command that I have now. Any help would be greatly appreciated.

`

`

Dreamescaper commented 5 months ago

Similar issue: https://github.com/Dreamescaper/GenerateAspNetCoreClient/issues/26

You can pass built dll to the tool, that would probably work better.

CianToole commented 5 months ago

Awesome! That worked. Thank you for the quick response!