getCsprojFilesContainingPackage(csprojFiles) { echo.message(`Looking for packages matching '${this.packageName}'...`); const grepResult = shell.grep("-l", this.packageName, csprojFiles); if (grepResult.code !== 0) { echo.error(constants.ERROR_READING_CSPROJ_FILES); shell.exit(grepResult.code); } const matchingProjects = grepResult.stdout .split("\n") .filter((result) => result.trim() !== ""); if (matchingProjects.length === 0) { echo.message( `No projects found with package '${this.packageName}'. Exiting.` ); shell.exit(1); } return matchingProjects; }