Search
Active

25
Sign in to vote
1
Sign in to vote
Sign in
to vote
Type: Suggestion
ID: 380804
Opened: 11/9/2008 9:16:00 AM
Access Restriction: Public
1
Workaround(s)
.NET Framework 4.0にWindowsのzipフォルダと互換性のあるzip圧縮/展開クラスを追加してほしい。
Details (expand)
製品言語
日本語
バージョン
.NET Framework 4.0 CTP
オペレーティング システム
Windows Vista
オペレーティング システム言語
日本語
現状の問題点
プログラムに圧縮機能、もしくはWindowsで作成したzipファイルを展開する機能を追加しようとしても、現在はCOMでzipライブラリを作るか、オープンソースなどのzipライブラリを使用する必要があります。
オープンソースの実装ではライセンス上使えないケースがありますし、COMを使うにはzipライブラリを削除されている場合使えなくなります。.NET Frameworkに実装してもらえると、実装上の労力が減って助かります。
System.IO.Packagine.ZipPackageでは余分なファイルが付いてしまうので、好ましくありません。
問題解決のための提案
Windowsのzipライブラリと同じ仕様のzipファイルが作成できるクラスを追加する。
File Attachments
0 attachments
Sign in to post a comment.
Posted by biac on 11/9/2008 at 3:45 PM
実装してもらえるのであれば、 zip の仕様上難しいのかもしれませんが、 ANSI 以外の ( 日本語などの ) パス名・ファイル名も正しく扱えるようにしてもらえると嬉しいです。
また、 これは日本だけの事情かもしれませんが、 zip ファイルの暗号化もお願いしたいです。
※ zip ファイルの暗号化なんて、 10桁程度のパスフレーズではものの数分で解読出来てしまう、 ほんの気休めにすぎないものですが。 日本では、 暗号化された安全な通信経路を確保する手法は費用・管理などの観点から嫌われ、 技術者には無意味だと分かっている zip の暗号化などが好まれています。
Posted by Kunz on 11/9/2008 at 6:19 PM
実装する際には、圧縮形式に非圧縮又はDeflateが選べること、Delfateの辞書サイズ、ワード長が指定できることが望ましいと思います。
Posted by NyaRuRu on 11/9/2008 at 8:59 PM
[Visual Studio & .NET Framework Englith]での関連フィードバックです.
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94082
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94219
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94732
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=119697
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=365575
Posted by NyaRuRu on 11/10/2008 at 8:49 AM
GZipStream に関係するフィードバックとしては,BCL チームの以下のポストに寄せられたコメントが参考になります.
http://blogs.msdn.com/bclteam/archive/2007/05/16/system-io-compression-capabilities-kim-hamilton.aspx

このうち,要望が多かった 4GB を超えるストリームの圧縮については .NET 4.0 で対応されることが既に発表されています.
http://blogs.msdn.com/bclteam/archive/2008/11/04/what-s-new-in-the-bcl-in-net-4-0-justin-van-patten.aspx

また,Windows の圧縮フォルダでも Windows Vista 以降で容量制限に関する仕様が変更されているようです.
http://support.microsoft.com/kb/301325/ja
Posted by Microsoft on 11/12/2008 at 12:55 AM
フィードバックをお送りいただきまして、ありがとうございます。いただいた報告内容に基づき、現在問題を調査中です。しばらくお待ちください。

Visual Studio Product Team

Problem Description:.NET Framework 4.0 needs zip compression/extracting class which has compatibility with Windows zip folders.

Problem Statement:
To add a compression or extracting function for zip files created by Windows to an original program, we need to create zip libraries with COM or use open source zip libraries.
However, implementing open source libraries is not always available in terms of license and using COM is also unavailable if zip libraries are deleted. If .NET Framework had such a class, it would make our task easier.
System.IO.Packagine.ZipPackage is not favorable because it adds an extra file.

Proposed Solution:
Adding a zip file create class which has the same design with Windows zip libraries.


Posted by Microsoft on 2/17/2009 at 1:56 PM
Hi kkamegawa,

Thank you for the suggestion. Adding support for compressing/decompressing zip files is a common request that we’d like to add to the .NET Framework. Unfortunately, it doesn’t look like we’ll be able to fit this feature in the .NET 4 release. However, we are planning to launch a CodePlex site in the near future, to release some of the libraries we’ve been working on that won't make it into .NET 4. ZipArchive is on the list of features to add to that site, so stay tuned the next 4-5 months. Given that we’re planning to release something soon, I’m going to go ahead and keep this bug open for tracking until its been released.

In the meantime, Microsoft does have an open source implementation of zip that is part of the IronPython project. It’s licensed under MSPL and you’re welcome to take it and use it in your own projects. Check out the http://www.codeplex.com/IronPython. The source can be found under IronPython_Main/Src/Chiron/Zip.cs. Here is a direct link to the most recent changeset: http://www.codeplex.com/IronPython/SourceControl/changeset/view/46972#478283

Regards,

Justin Van Patten
Program Manager
Common Language Runtime, Base Class Libraries
Posted by Microsoft on 2/20/2009 at 1:32 AM
こんにちは kkamegawaさん、

こちらのご提案ありがとうございます。zipファイル用の圧縮・解凍機能の追加はよくいただく要望の一つで、私達も.NET Frameworkに追加したいと考えています。
ただ残念ながら、.NET 4のリリースには間に合いそうにありません。しかし、こちらで取り組んでいるライブラリの中から.NET 4に間に合いそうにないものをいくつかリリースするためのCodePlexサイトを近い将来立ち上げる予定でいます。ZipArchiveはこのサイトに加える機能のリストに載っています。ですのであと4-5ヶ月お待ちください。
このように、間もなくこの件に関連したものをリリースするということで、この件はこのまま状態を「アクティブ」にしておいてリリースまでの間トラックするようにします。

それまでの間は、MicrosoftはIronPythonプロジェクトの一部としてzipのオープン ソース実装を持っています(のでこちらをご利用いただけます)。これはMSPLのもとに認可されており、入手してご自分のプロジェクトの中で自由に使っていただけます。
こちらのサイトをチェックしてみてください。
http://www.codeplex.com/IronPython
このzipに関するソースはこの中のIronPython_Main/Src/Chiron/Zip.csにあります。
こちらが最新の変更セットへの直接リンクになります。
http://www.codeplex.com/IronPython/SourceControl/changeset/view/46972#478283

よろしくお願いします、

Justin Van Patten
Program Manager
Common Language Runtime, Base Class Libraries