This commit adds support for specifying directories containing a single project to both the `add reference` and `remove reference` commands. Fixes issue #7343.