Don't search global store when DOTNET_MULTILEVEL_LOOKUP is disabled (dotnet/core...
authorSteve Harter <steveharter@users.noreply.github.com>
Thu, 19 Oct 2017 21:18:55 +0000 (16:18 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Oct 2017 21:18:55 +0000 (16:18 -0500)
commitc4c196dc9a52eb49548fa0e25d5d97d7b8128afb
tree026d8f8d295081eaf363156e8421519e75b53d1f
parent8302f66e400d14207d1160dd6af648326d0f7dac
Don't search global store when DOTNET_MULTILEVEL_LOOKUP is disabled (dotnet/core-setup#3326)

The global store location is being searched when the DOTNET_MULTILEVEL_LOOKUP environment variable is zero (disabled). DOTNET_MULTILEVEL_LOOKUP controls whether the global locations are used when looking for the shared framework (C:\Program Files\dotnet\shared), and the change here is to also have DOTNET_MULTILEVEL_LOOKUP control whether the store global location (C:\Program Files\dotnet\store) is searched.

Commit migrated from https://github.com/dotnet/core-setup/commit/88da334986d5f560c98248c2cfff6e5816cdde7a
src/installer/corehost/cli/args.cpp
src/installer/corehost/cli/fxr/fx_muxer.cpp
src/installer/corehost/common/utils.cpp
src/installer/corehost/common/utils.h
src/installer/test/HostActivationTests/GivenThatICareAboutPortableAppActivation.cs