I'm developing a component that has a certain property, and when changing the value of this property the component would have to add a new package dependency to the project.
I was able to do this using LazarusIDE.ActiveProject.AddPackageDependency(<package>), but the same is added to the broken project, see the attachment when added the LCLBase package
Thanks