Summary
Creates a relative path for a file based on a given directory.
- Namespace
- NBuildKit
.MsBuild .Tasks .Core .FileSystem - Containing Type
- PathUtilities
Syntax
public static string GetFilePathRelativeToDirectory(string fromPath, string directoryPath)
Parameters
| Name | Type | Description |
|---|---|---|
| fromPath | string | Contains the file 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 file to the directory. |