The --consumer-package-source arg was not being included in the REST request body.
I added the null-value handling code since it looks like the API will quietly reject adding the dependency if both properties are specified in the request. And the code is kind of clunky since .NET Core 3.x doesn't support per-property null handling.
Fixes the issue mentioned here: https://forums.inedo.com/topic/3273/pgscan-not-sending-consumer-package-source
The
--consumer-package-source
arg was not being included in the REST request body.I added the null-value handling code since it looks like the API will quietly reject adding the dependency if both properties are specified in the request. And the code is kind of clunky since .NET Core 3.x doesn't support per-property null handling.