Some servers, like Nexus, don't seem to support enough of the NuGet protocol for the -SkipDuplicates
to work.
Instead, pushes of an already-pushed package result in 400 Bad Request
.
Perhaps -SkipDuplicates
could be extended to allow an argument, Yes
, No
or Check
, with Yes
being the default if no argument is given.
If Check
is specified, the import utility will do a does-package-exist check itself before pushing.
With that in place, an import could simply be re-run to resume an interrupted import, without getting spurious errors for the portion that was already completed.