Skip to content

[rel/17.14] Fix setting DOTNET_ROOT - #15252

Merged
Jakub Jareš (nohwnd) merged 2 commits into
microsoft:rel/17.14from
nohwnd:fix-dotnet_root-net9
Aug 11, 2025
Merged

[rel/17.14] Fix setting DOTNET_ROOT#15252
Jakub Jareš (nohwnd) merged 2 commits into
microsoft:rel/17.14from
nohwnd:fix-dotnet_root-net9

Conversation

@nohwnd

Copy link
Copy Markdown
Member

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.

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

Youssef Fahmy (Youssef1313) commented Aug 11, 2025

Copy link
Copy Markdown
Member

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

@nohwnd

Jakub Jareš (nohwnd) commented Aug 11, 2025

Copy link
Copy Markdown
Member Author

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

@Youssef1313

Copy link
Copy Markdown
Member

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

@nohwnd
Jakub Jareš (nohwnd) merged commit 4ac9f0d into microsoft:rel/17.14 Aug 11, 2025
8 checks passed
@nohwnd

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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