Skip to content

feat: MSBuild variables in runfiles and CancelKeyPress event#19

Merged
StevenTCramer merged 9 commits into
masterfrom
Cramer/2025-12-22/dev
Mar 18, 2026
Merged

feat: MSBuild variables in runfiles and CancelKeyPress event#19
StevenTCramer merged 9 commits into
masterfrom
Cramer/2025-12-22/dev

Conversation

@StevenTCramer
Copy link
Copy Markdown
Contributor

Summary

  • Task 017: Update all runfile #:project directives to use MSBuild variables ($(SourceDirectory))
  • Task 018: Add CancelKeyPress event to ITerminal for graceful Ctrl+C handling
  • Refactoring: Rename CLI command files and workflow

Changes

Task 017: MSBuild Variables in Runfiles

  • Updated 28 runfiles to use $(SourceDirectory) instead of hardcoded ../source/ paths
  • Leverages .NET 10 PR #51108 support for MSBuild property expansion in #:project directives
  • Benefits: consistency, maintainability, clarity

Task 018: CancelKeyPress Event

Other Changes

  • Renamed CLI command files to remove -command suffix
  • Renamed ci command to workflow for clarity
  • Renamed ScriptsDirectory to ToolsDirectory in repository.props
  • Added hyperlink sample in table rows
  • Bumped version to 1.0.0-beta.8

Test Plan

  • All runfiles execute correctly with new MSBuild variable paths
  • CancelKeyPress tests pass
  • Existing tests continue to pass
  • Build succeeds with no warnings

Aligns file naming with runfile convention where .cs files are
directly executable without intermediate build step.
The 'ci' command name was ambiguous - rename to 'workflow' to clearly
indicate it orchestrates the full CI/CD pipeline. Updates GitHub Actions
workflow to call the new command name.
Aligns with actual directory structure - dev CLI tools are in tools/
not scripts/.
Shows how to combine Link() and color extensions within table cells
for rich tabular output with clickable links.
- Replace hardcoded relative paths with $(SourceDirectory) variable
- Updates 27 runfiles (samples/ and tests/)
- Leverages .NET 10 PR #51108 support for MSBuild property expansion
@StevenTCramer StevenTCramer merged commit 3df1972 into master Mar 18, 2026
1 check passed
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.

Add CancelKeyPress event to ITerminal for Ctrl+C handling

1 participant