Check for <framework_name>.deps.json when enumerating framework paths (#90035)
authorElinor Fung <elfung@microsoft.com>
Mon, 7 Aug 2023 05:06:59 +0000 (22:06 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 05:06:59 +0000 (22:06 -0700)
commit26103db87aff94009563376864c6cb9eb3fc7569
treec9b0541010abd9dfc4ee6bfd59e902738558ed0e
parentedbd5c769a19798b6955050baccf99e6797d3208
Check for <framework_name>.deps.json when enumerating framework paths (#90035)

This adds a check for the framework's .deps.json instead of just the existence of the directory. To avoid extra file checks in the normal/happy path (where all framework version folder are valid), when resolving, it only does the check after resolving the best version match. And if that version directory isn't valid, it tries resolving again without it.
src/installer/tests/HostActivation.Tests/FrameworkResolution/MultipleHives.cs
src/installer/tests/HostActivation.Tests/NativeHostApis.cs
src/installer/tests/TestUtils/DotNetBuilder.cs
src/native/corehost/fxr/framework_info.cpp
src/native/corehost/fxr/framework_info.h
src/native/corehost/fxr/fx_resolver.cpp
src/native/corehost/fxr/fx_resolver.messages.cpp
src/native/corehost/fxr/hostfxr.cpp