Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zipdirectory lacks Comment and Password properties #11287

Open
andywu188 opened this issue Jan 15, 2025 · 2 comments
Open

Zipdirectory lacks Comment and Password properties #11287

andywu188 opened this issue Jan 15, 2025 · 2 comments

Comments

@andywu188
Copy link

andywu188 commented Jan 15, 2025

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

    /// <summary>
    /// Gets or sets the comment.
    /// </summary>
    /// <value>The comment.</value>
    public string Comment { get; set; }

    /// <summary>
    /// Gets or sets the password.
    /// </summary>
    /// <value>The password.</value>
    public string Password { get; set; }
@KalleOlaviNiemitalo
Copy link

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)

@andywu188
Copy link
Author

是否有任何其他任务具有 Password 参数?如果 MSBuild 没有将此类参数的值写入其日志,那就太好了,但我认为 MSBuild 目前不知道哪些参数包含机密。相关新闻: #8520 (评论)

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.

https://github.com/loresoft/msbuildtasks/blob/de6d85c8feb4bf9a71d7ca9e145cabf76f4bdc80/Source/MSBuild.Community.Tasks/Zip.cs#L151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants