Skip to content

Commit

Permalink
Issue dotnet#941
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 committed Mar 28, 2020
1 parent 1133ff5 commit 2600c77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SOS/Strike/hostcoreclr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,18 +347,18 @@ static HRESULT GetHostRuntime(std::string& coreClrPath, std::string& hostRuntime
#endif // FEATURE_PAL
hostRuntimeDirectory.append(DIRECTORY_SEPARATOR_STR_A);

// First attempt find the highest 2.1.x version. We want to start with the LTS
// First attempt find the highest LTS version. We want to start with the LTSs
// and only use the higher versions if it isn't installed.
if (!FindDotNetVersion(2, 1, hostRuntimeDirectory))
if (!FindDotNetVersion(3, 1, hostRuntimeDirectory))
{
// Find highest 2.2.x version
if (!FindDotNetVersion(2, 2, hostRuntimeDirectory))
// Find highest 2.1 LTS version
if (!FindDotNetVersion(2, 1, hostRuntimeDirectory))
{
// Find highest 3.0.x version
if (!FindDotNetVersion(3, 0, hostRuntimeDirectory))
{
// Find highest 3.1.x version
if (!FindDotNetVersion(3, 1, hostRuntimeDirectory))
// Find highest 2.2.x version
if (!FindDotNetVersion(2, 2, hostRuntimeDirectory))
{
// Find highest 5.0.x version
if (!FindDotNetVersion(5, 0, hostRuntimeDirectory))
Expand Down

0 comments on commit 2600c77

Please sign in to comment.