protected UpgradeTaskBase(string name, string installDirectory, string folderPrefix = null) { Logger = DefaultLogger.Get(GetType()); Name = name; InstallDirectory = installDirectory; _folderPrefix = folderPrefix ?? name; _versionRegex = new Regex($@"^{_folderPrefix}-(\d+?\.\d+?\.\d+?)$", RegexOptions.Compiled); }