| Swiss Army Knife
    General utility tools for Scada Minds | 
Utilities to help locating files. More...
| Static Public Member Functions | |
| static DirectoryInfo | TryGetSolutionDirectoryInfo (string? startingPath=null) | 
| This method will search parent directories from startingPath  until it reaches a directory with a '.sln' file in it and return that. This is useful if you e.g. want to build a file path starting from your solution directory. The implementation is inspired by https://stackoverflow.com/questions/19001423/getting-path-to-the-parent-folder-of-the-solution-file-using-c-sharp .  More... | |
| static FileInfo | GetFileStartingAtSolutionDirectory (params string[] pathPartsToJoin) | 
| Finds a file by starting to search from the nearest solution directory (looking from Directory.GetCurrentDirectory()). It will join the paths given and then return a FileInfo with the path.  More... | |
Utilities to help locating files.
| 
 | inlinestatic | 
Finds a file by starting to search from the nearest solution directory (looking from Directory.GetCurrentDirectory()). It will join the paths given and then return a FileInfo with the path.
| pathPartsToJoin | The separate path parts to be given to Path.Join(). | 
| IOException | If the file was not found this will throw an IOException. | 
| 
 | inlinestatic | 
This method will search parent directories from startingPath until it reaches a directory with a '.sln' file in it and return that. This is useful if you e.g. want to build a file path starting from your solution directory. The implementation is inspired by https://stackoverflow.com/questions/19001423/getting-path-to-the-parent-folder-of-the-solution-file-using-c-sharp .
| startingPath | The path to start searching from. | 
| IOException | Will throw an IOException if no solution file could be found. |