Skip to content

[Feature]: Version Capture #5

@Malcolmnixon

Description

@Malcolmnixon

Problem Statement

The tool needs to implement version capturing.

Proposed Solution

I propose the following solution:

  • Introduce a Version Info record containing the Job ID and a dictionary of tool-name to version
  • Add a FindVersions method to VersionMarkConfig which takes a list of tool-names and returns a populated Version Info record

The FindVersions needs to run the command, capture the output, and process using the regular expression.

It may be possible to test the FindVersions implementation by having it run dotnet [version-mark-dll-name] --version because the test knows the output should be the same as the Program.Version.

Alternatives Considered

No response

Usage Examples

Benefits

The Version Info record is a necessary part of the tool.

Priority

High - Blocking my use case

Willingness to Contribute

Yes, I can submit a pull request

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this is not a duplicate
  • I have provided a clear description of the feature
  • I have explained why this feature would be useful

Metadata

Metadata

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions