loresoft / msbuildtasks

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.
BSD 2-Clause "Simplified" License
946 stars 271 forks source link

Zip task fails when a sub dir entry is added #302

Open videoguy opened 1 year ago

videoguy commented 1 year ago

I have an item collection like below. When creating a zip using Zip task, it is failing with error "error : An item with the same key has already been added".

c:\project\package\test c:\project\package\tools c:\project\package\docs c:\project\package\docs\license c:\project\package\test\test1.results

The zip task seem to add c:\project\package\test, c:\project\package\tools,c:\project\package\docs fine, but is failing when it is trying to add sub dir c:\project\package\docs\license. These are all directory entries.

What is the trick to get this working?