Summary
Creates a relative path for a directory based on a given directory.
- Namespace
- NBuildKit
.MsBuild .Tasks .Core .FileSystem - Containing Type
- PathUtilities
Syntax
public static string GetDirectoryPathRelativeToDirectory(string fromPath, string directoryPath)
Parameters
| Name | Type | Description |
|---|---|---|
| fromPath | string | Contains the directory path that defines the start of the relative path. |
| directoryPath | string | The path of the base directory. |
Return Value
| Type | Description |
|---|---|
| string | The relative path from the start directory to the directory. |