Skip to content

Migrate existing tasks to typed task parameters - #6

Draft
OvesN wants to merge 1 commit into
dev/veronikao/typed-parameter-infrastructure-fixesfrom
dev/veronikao/typed-task-parameter-examples
Draft

Migrate existing tasks to typed task parameters#6
OvesN wants to merge 1 commit into
dev/veronikao/typed-parameter-infrastructure-fixesfrom
dev/veronikao/typed-task-parameter-examples

Conversation

@OvesN

@OvesN OvesN commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates three existing in-box tasks to analyzer-recommended typed parameters:

  • VerifyFileHash.FileAbsolutePath
  • ZipDirectory paths → ITaskItem<FileInfo> / ITaskItem<DirectoryInfo>
  • GetFileHash.FilesITaskItem<AbsolutePath>[]

Removes IMultiThreadableTask and TaskEnvironment from these tasks because typed binding eliminates their remaining environment usage.

Adds a task-author guide with these tasks linked as migration examples.

Testing

  • Full Debug build
  • VerifyFileHash_Tests, ZipDirectory_Tests, and GetFileHash_Tests
  • net11.0 and net472

Notes

Stacked on #7, which contains the typed-parameter infrastructure fixes and dedicated regression tests.

The public task-property type changes are intentionally source- and binary-breaking for direct .NET callers; package validation reports CP0002.

@OvesN OvesN changed the title Add typed task parameter samples Migrate existing tasks to typed task parameters Aug 11, 2026
Migrate VerifyFileHash, ZipDirectory, and GetFileHash and document the task-author workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@OvesN
OvesN force-pushed the dev/veronikao/typed-task-parameter-examples branch from 89352f7 to 3f34c64 Compare August 18, 2026 13:28
@OvesN
OvesN changed the base branch from main to dev/veronikao/typed-parameter-infrastructure-fixes August 18, 2026 13:28
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

Successfully merging this pull request may close these issues.

1 participant