Skip to content

Handle dotnet_root in testhost version aware way #15184

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

Merged
merged 9 commits into from
Jul 7, 2025

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Jul 3, 2025

Description

Use VSTEST_DOTNET_ROOT_PATH and VSTEST_DOTNET_ROOT_ARCHITECTURE that will receive the location of dotnet.exe from the dotnet SDK.

When we find testhost.exe we will set env variables based on the version of testhost, to make sure that old testhost gets dotnet_root and new one gets dotnet_root_ so they can pick up local installation of dotnet.

Related dotnet/sdk#49436

@nohwnd
Copy link
Member Author

nohwnd commented Jul 3, 2025

This was attempted before but the testnost apphost was too old to undestand the architecture specific dotnet_root: https://github.com/microsoft/vstest/pull/3715/files

@nohwnd
Copy link
Member Author

nohwnd commented Jul 4, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nohwnd
Copy link
Member Author

nohwnd commented Jul 7, 2025

#15186

@nohwnd nohwnd merged commit 4b85f30 into microsoft:main Jul 7, 2025
3 of 5 checks 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.

3 participants