This logic already exists in `ProjectHelpers.ToAbsoluteFilePath()`