开发者

Return version of a file, that's inside of a zip

My problem today is that I'm trying to retrieve the version of a file that is located within a zip. I'm doing so in C#.

Just for context, what happens is that a 3rd party places builds of software onto a test server, and I'm manually updating the wiki with the version information.

I've thus far created the wikibot (not difficult), the difficulty appears to how I'm going to go about retrieving the version.

Any help is ap开发者_StackOverflowpreciated, thanks!


First unzip the file (using a 3rd-party tool like SharpZipLib etc., or using System.Io.Compression). Then use FileVersionInfo.FileVersion to get your file version. Voila!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜