Class ProjectDiscovery
Discovers C# project files from a workspace, project directory, or project file path.
public static class ProjectDiscovery
- Inheritance
-
objectProjectDiscovery
Methods
DiscoverProjects(string)
Returns project files that should be analyzed for the supplied path.
public static IReadOnlyList<string> DiscoverProjects(string path)
Parameters
pathstringA workspace directory, project directory, or
.csprojfile.
Returns
- IReadOnlyList<string>
A single nearest project when one is found, all projects under a workspace otherwise, or an empty list when no project exists.