{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "I am adding files from various locations to a zip file.  These files can potentially have the same name, so I am trying to version the those (adding (1), (2), etc to the name), but only within the zip file.  \nI am also specifying the path hierarchy within the zip file.  \nSo, for example: \n\n\nusing (ZipFile zip = new ZipFile())\n            {\n                foreach (FileCollection dir in dirs)\n                {\n                    var zipPath = path1 + \"/\" + path2 + \"/\";\n                    foreach (FileObject file in files)\n                    {\n                                If (isDuplicated(file))\n                                {\n                                    var newName = file.Filename + \"(1)\";\n                                }\n                                zip.AddFile(file.FullPath, zipPath).FileName = newName;\n                    }\n                }\n                zip.Save(targetPath);\n            }\n\nThis doesn't work.  I get an exception saying \"An item with the same key has already been added.\"\n\nIf I remove the zipPath when calling the AddFile method, like so: \n\nzip.AddFile(file.FullPath).FileName = newName;\n\n...everything works fine.  \nThis, it seems like the FileName setter is not working whenever the AddFile overload method is used.",
    "LastUpdatedDate": "2016-11-01T17:17:36.227-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2016-11-01T17:17:36.227-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Override name of zip file doesn't work with overloaded AddFile method",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 17718
  },
  "FileAttachments": [],
  "Comments": []
}