List all projects in reference hierarchy of current project
currentProject to create a project object from
the currently loaded project.
openProject("C:/projects/myproject/"); proj = currentProject;
Get all the projects in the loaded project hierarchy.
allreferences = listAllProjectReferences(proj)
allreferences = 1×2 ProjectReference array with properties: Project File StoredLocation Type
Query the first referenced project.
ans = ProjectReference with properties: Project: [1×1 matlab.project.Project] File: "C:\projects\myproject\referencedproject1" StoredLocation: "../referencedproject1" Type: "Relative"
allreferences— All referenced projects
All referenced projects, returned as an array of