Skip to content

Conversation

@AmelBawa-msft
Copy link
Contributor

@AmelBawa-msft AmelBawa-msft commented Jan 15, 2026


  • Add a command builder with escaped user input
  • Unfortunately, using StartInfo.ArgumentList is not available in net48, hence manually implementing the escape method.
Microsoft Reviewers: Open in CodeFlow

/// </summary>
/// <param name="arg">The argument to escape.</param>
/// <returns>The escaped argument.</returns>
private string Escape(string arg)
Copy link
Contributor Author

@AmelBawa-msft AmelBawa-msft Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn’t find a good spot to add unit tests for this, so I’m thinking of creating a new csproj just for the tests

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