问题
The PSI has various methods such as ReadProject that only take a project GUID and not its name.
If I only have a project's name, how do I retrieve its GUID for use in other PSI methods?
回答1:
Use ReadProjectStatus. It allows passing through an empty GUID but a project name to retrieve this information.
来源:https://stackoverflow.com/questions/1509731/if-i-only-know-a-projects-name-how-do-i-get-its-guid