コード例 #1
0
        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);
        }
コード例 #2
0
 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));
 }
コード例 #3
0
 public static string BuildSavePath(PluginInformation info, DateTime date, string optional = null)
 {
     return(Path.Combine(BuildPath(info), BuildSaveName(info, date, optional)));
 }