You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do any other tasks have Password parameters? It would be good if MSBuild didn't write the values of such parameters to its logs, but I don't think MSBuild currently knows which parameters contain secrets. Related: #8520 (comment)
The following task has a password parameter. At present, there is no personnel maintenance in this project, and there are some bugs in the project, which cannot be repaired.
I don't think we expect the built-in ZipDirectory to support all possible features of Zip, and since there are secrets involved here I would prefer not to expose it in MSBuild. Since it doesn't look like the .NET Zip API includes password support I don't think we expect to do this.
Summary
I need to specify the ZIP password when using Zipdirectory task, and the comment of ZIP,
src/Tasks/ZipDirectory.cs
Background and Motivation
When I use Zipdirectory Task, I need to set annotations for the ZIP package, but Zipdirectory does not provide such parameters
<ZipDirectory SourceDirectory="$(OutputPath)" DestinationFile="$(MSBuildProjectDirectory)\output.zip" />
Proposed Feature
<ZipDirectory SourceDirectory="$(OutputPath)" DestinationFile="$(MSBuildProjectDirectory)\output.zip" Comment="my zip" Password="my pwd" />
Alternative Designs
Reference Example:
https://github.com/loresoft/msbuildtasks/blob/De6d85c8feb4bf9a71D7CABF76F76BDC80/msbuild.community.task.cs# L135
The text was updated successfully, but these errors were encountered: