Table of Contents

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

rootProjectPath string

The 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

path string

The 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

projectPath string

The full path to the project file.

referencePath string

The relative path to the referenced project.

Returns

string

The absolute path to the referenced project.