Interface IProjectDiscoveryService
- Namespace
- ProjGraph.Lib.Core.Abstractions
- Assembly
- ProjGraph.Lib.Core.dll
Service responsible for discovering projects and resolving paths within a solution.
public interface IProjectDiscoveryService
Methods
DiscoverProjectsRecursively(string)
Discovers all project file paths recursively starting from the specified root project path.
IEnumerable<string> DiscoverProjectsRecursively(string rootProjectPath)
Parameters
rootProjectPathstringThe full path to the root project file to start the discovery from.
Returns
- IEnumerable<string>
A collection of full paths of all discovered project files.
NormalizePath(string)
Normalizes a path to ensure consistent comparison across platforms.
string NormalizePath(string path)
Parameters
pathstringThe path to normalize.
Returns
- string
The normalized path.
ResolveProjectReferencePath(string, string)
Resolves a project reference path relative to a project file path.
string ResolveProjectReferencePath(string projectPath, string referencePath)
Parameters
projectPathstringThe full path to the project file.
referencePathstringThe relative path to the referenced project.
Returns
- string
The absolute path to the referenced project.