To publish a project that depends on another project in Studio, you need to add both projects to your Studio Workspace and open them.
To publish your project in an Enterprise environment you must use the Exported Project option for the publication source. To export the project and its dependencies follow the procedure described in Exporting a Project With Dependencies.