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!
精彩评论