Skip to content

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
nohwnd added a commit to nohwnd/vstest that referenced this pull request Aug 11, 2025
* Handle dotnet_root in testhost version aware way

* Fix unit tests

* Fixes

* Fixes

* Fixes

* Apply suggestion from @nohwnd

* Apply suggestion from @nohwnd

* Revert changes to playground
nohwnd added a commit that referenced this pull request Aug 11, 2025
* Handle dotnet_root in testhost version aware way (#15184)

* Handle dotnet_root in testhost version aware way

* Fix unit tests

* Fixes

* Fixes

* Fixes

* Apply suggestion from @nohwnd

* Apply suggestion from @nohwnd

* Revert changes to playground

* Only apply architecture when it is the same (#15250)
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