I am trying to add a step using Octopus.Deploy dll in a project and I get the following error:
Exception calling “Modify” with “1” argument(s): "There was a problem with your request.
- Package reference to 7Zip could not be deleted because it is used for the project’s release versioning strategy.
In the project settings the Release Versioning is configured to “Use the version number from an included package” with package step set to 7Zip package step.
If I change this setting to “Generate version numbers using template” and run again the script to add a step, the steps is added and no error is raised.
I am using the following software versions:
Octopus.Client 6.0.2 (previous release also failed eg. 4.13.10)
Powershell script used to add the step can be found here:
Screenshot of the project:
Thanks for your suppport,