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

RunVSTest: Allow overriding the ToolExe/ToolPath #548

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

dfederm
Copy link
Member

@dfederm dfederm commented Mar 28, 2024

The ToolTask has built-in parameters for ToolExe/ToolPath which allow callers to override the tool being called. This lights those up for the RunVSTestTask

There's also a minor change to avoid using an undefined %VSINSTALLDIR% and instead fallback to looking in the PATH (behavior when returning a filename from GenerateFullPathToTool).

Reference to relevant ToolTask logic: https://github.com/dotnet/msbuild/blob/7ca3c98fad986066bbf2802c863236b4a0f4e34a/src/Utilities/ToolTask.cs#L503-L566

@dfederm dfederm enabled auto-merge (squash) March 28, 2024 21:24
@dfederm dfederm merged commit 787e846 into main Mar 28, 2024
5 checks passed
@dfederm dfederm deleted the vstest-tool-override branch March 28, 2024 23:58
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.

None yet

2 participants