[
  {
    "Id": "508854",
    "ThreadId": "231341",
    "Html": "<p>I have looked in all examples and do not see any please when reading a zip file using DotNetZip where to retrieve the File/Entry Version.<br>I need to compare file in zip to target file.</p>\r\n<p>Thanks,<br>-Lance</p>",
    "PostedDate": "2010-10-18T08:50:48.26-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "508996",
    "ThreadId": "231341",
    "Html": "<p>What do you mean by &quot;File/Entry Version&quot;?&nbsp;</p>\r\n<p>A zip file stores metadata for each entry in the archive.&nbsp; This metadata includes things like time/date stamps for last modified date, created date, and last accessed date; size of the file; a crc32 checksum of the file data; and a few other items.&nbsp; (You can learn the full list of metadata by reading the zip specification; most of these metadata are accessible as properties on the ZipEntry object).&nbsp; There is a &quot;version required to extract&quot; field, but this refers to the&nbsp;minimum version of the zip specification that must be supported by an extracting program (zip entries created using newer versions of the zip spec can employ newer features, such as Unicode filenames, or AES encryption).&nbsp; The &quot;version required to extract&quot; number does not refer to the entry itself.&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-10-18T14:23:34.903-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "509106",
    "ThreadId": "231341",
    "Html": "<div class=WordSection1><p>Regarding <span style=\"font-size:9.0pt;font-family:'Verdana','sans-serif'\">What do you mean by &quot;File/Entry Version&quot;? <br>I have several dll’s in a zip file that I need to retrieve the version.<br>Like one dll is 1.8.9 and another is 4.6.9.<br>When I read the zip with the metadata like timestamp I see<br>no way to view the version for that file.</span></p><p class=MsoNormal> </p><div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\"> </span></p><div><p class=MsoNormal><b><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">Lance Coffman</span></b><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\"></span></p></div><div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">Applications Programmer</span></p></div><div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">PODS Enterprises, Inc.</span></p></div><div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">5585 Rio Vista Drive | Clearwater, FL 33760</span></p></div><div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">Phone: 727-538-6523 | Fax: 727-524-4500</span></p></div><div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\">E-Mail: <a href=\"mailto:lcoffman@pods.com\"><span style=\"color:blue\">lcoffman@pods.com</span></a> | <a href=\"http://www.pods.com\"><span style=\"color:blue\">PODS.com</span></a></span></p></div></div><p class=MsoNormal><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\"><br></span><span style=\"font-size:10.0pt;font-family:'Tahoma','sans-serif'\"><img border=0 width=225 height=65 id=\"_x0000_i1025\" alt=\"Description: http://www.pods.com/images/PODS.gif\"></span></p></div>",
    "PostedDate": "2010-10-18T19:25:30.59-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "511720",
    "ThreadId": "231341",
    "Html": "\r\n<p>Update.&nbsp; My original response here was wrong.</p>\r\n<p>That file version information is embedded in the DLL file itself. Windows Explorer is smart enough to know to look into any file with a .DLL extension, and display that version number on the properties tab.&nbsp; It is not something that is simply accessible,\r\n though, in the set of ZipEntry metadata.</p>\r\n<p>To get the file version of the DLL, you'd need to have some code that inspects the DLL itself, and learns the embedded version number.&nbsp; You can do this using the .NET Framework class\r\n<a href=\"http://msdn.microsoft.com/en-us/library/system.diagnostics.fileversioninfo.aspx\">\r\nSystem.Diagnostics.FileVersionInfo</a> on a filesystem file.&nbsp; <a href=\"http://stackoverflow.com/questions/349943/read-a-non-net-dll-version-from-c\">\r\nSee here</a>.</p>\r\n<p>So I think to do what you want, you'd have to extract the DLL to a temporary file, then create a FileVersionInfo object for that temporary file, and examine the FileVersion property on that object.</p>\r\n",
    "PostedDate": "2010-10-24T07:31:55.34-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "511735",
    "ThreadId": "231341",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/12340\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-10-24T08:16:44.407-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]