Redirect default install location in test to avoid using machine-wide install#45500
Conversation
|
Tagging subscribers to this area: @vitek-karas, @agocke Issue DetailsTest for framework resolution with multiple hives enables multi-level lookup. Explicitly set the default install path to an invalid location so that any actual machine-wide install won't be used in the test.
|
vitek-karas
left a comment
There was a problem hiding this comment.
Looks good - how come we didn't hit this before :-(
Thanks for fixing this!
|
I think it just happened that the version we used for testing were such that no real install would satisfy them - until 5.0 RTM came along. |
|
Bah, I think we are going to want this ported to 5.0 - looks like CI machines are being updated to a newer VS such that they will now have .NET 5.0 installed and will hit this failure. |
|
/backport to release/5.0 |
|
Started backporting to release/5.0: https://github.com/dotnet/runtime/actions/runs/397483119 |
Test for framework resolution with multiple hives enables multi-level lookup. Explicitly set the default install path to an invalid location so that any actual machine-wide install won't be used in the test.