public static string BuildPath(PluginInformation info) { var path = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), info.Name); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(path); }
public static string BuildSaveName(PluginInformation info, DateTime date, string optional) { return(string.Format("{0} {1} Installer{2}", date.ToString("yyyy-MM-dd"), info.Name, string.IsNullOrWhiteSpace(optional) ? ".exe" : optional)); }
public static string BuildSavePath(PluginInformation info, DateTime date, string optional = null) { return(Path.Combine(BuildPath(info), BuildSaveName(info, date, optional))); }