Skip to content

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Aug 11, 2025

Backport fixes for handling dotnet_root when testhost is targetting tfm that is newer than net6.

#15184
#15250

will fix dotnet/sdk#49436 once merged, and the other part of the fix is applied to net9.

nohwnd added 2 commits August 11, 2025 13:59
* 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 nohwnd changed the base branch from main to rel/17.14 August 11, 2025 12:13
@nohwnd nohwnd changed the title Fix setting DOTNET_ROOT [rel/17.14] Fix setting DOTNET_ROOT Aug 11, 2025
@nohwnd nohwnd enabled auto-merge (squash) August 11, 2025 13:16
@Youssef1313
Copy link
Member

Youssef1313 commented Aug 11, 2025

Do you have a backport PR already for net9 (on SDK side)? Also we need to track insertion to net9 right?

@nohwnd
Copy link
Member Author

nohwnd commented Aug 11, 2025

no, it will need to be tacked onto the insertion of this change.

@Youssef1313
Copy link
Member

@nohwnd Hmm, don't we need dotnet/sdk#49634 to be brought for net9?

@nohwnd nohwnd merged commit 4ac9f0d into microsoft:rel/17.14 Aug 11, 2025
8 checks passed
@nohwnd
Copy link
Member Author

nohwnd commented Aug 11, 2025

Yes, that is what I am saying. I don't have it ready, because it will need to be combined with the insertion of this change into SDK to be able to pass tests.

@Youssef1313
Copy link
Member

Ah. I misread your comment. Thanks!

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.

[NetTestingE2E][Regression] Error "The library hostfxr.dll was found..." will throw when executing "dotnet test --arch x86 --diag:log1.txt".

2 participants