public void AddFile(string FilePath)
        {
            // FilePathのバージョンを調べ、Dictionaryへ追加

            // Zip作成
            string ZipFile = this.MakeZip(FilePath);

            // Zipファイルの展開
            string DecompPath = this.DecompressZip(ZipFile);

            // docProps\app.xmlを開く
            string AppVersion = this.GetAppVersion(DecompPath + APP_PATH);

            // AppVersionのValueを取得
            StVersion sVersion = new StVersion();
            sVersion.FilePath = FilePath;
            sVersion.Version = this.ConvertVersionString(AppVersion);
            VersionInfo.Add(sVersion);

            // workフォルダを消す
            Directory.Delete(Path.GetDirectoryName(FilePath) + "\\" + WORK_FOLDER, true);
        }
Beispiel #2
0
        public void AddFile(string FilePath)
        {
            // FilePathのバージョンを調べ、Dictionaryへ追加

            // Zip作成
            string ZipFile = this.MakeZip(FilePath);

            // Zipファイルの展開
            string DecompPath = this.DecompressZip(ZipFile);

            // docProps\app.xmlを開く
            string AppVersion = this.GetAppVersion(DecompPath + APP_PATH);

            // AppVersionのValueを取得
            StVersion sVersion = new StVersion();

            sVersion.FilePath = FilePath;
            sVersion.Version  = this.ConvertVersionString(AppVersion);
            VersionInfo.Add(sVersion);

            // workフォルダを消す
            Directory.Delete(Path.GetDirectoryName(FilePath) + "\\" + WORK_FOLDER, true);
        }