public abstract bool FileExists(string fullPath); public abstract FileStream Open(string fullPath, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, FileStream parent);
public CommandRunner() { var path = AppDomain.CurrentDomain.BaseDirectory; var fileSystem = new FileSystem(); bool isFound = fileSystem.FileExists(path, @"src\fubu\bin\debug", "fubu.exe"); while (!isFound) { path = Path.Combine(path, ".."); isFound = fileSystem.FileExists(path, @"src\fubu\bin\debug", "fubu.exe"); } _solutionDirectory = Path.GetFullPath(path); }