#ifdef FEATURE_PAL
const char *g_linuxPaths[] = {
-// "/rh-dotnet22/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
+ "/rh-dotnet31/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
+ "/rh-dotnet30/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
"/rh-dotnet21/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
- "/rh-dotnet20/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
"/usr/share/dotnet/shared/Microsoft.NETCore.App",
};
#endif
// Find highest 3.0.x version
if (!FindDotNetVersion(3, 0, hostRuntimeDirectory))
{
- // If an installed runtime can not be found, use the target coreclr version
- HRESULT hr = GetCoreClrDirectory(hostRuntimeDirectory);
- if (FAILED(hr))
+ // Find highest 3.1.x version
+ if (!FindDotNetVersion(3, 1, hostRuntimeDirectory))
{
- return hr;
+ // If an installed runtime can not be found, use the target coreclr version
+ HRESULT hr = GetCoreClrDirectory(hostRuntimeDirectory);
+ if (FAILED(hr))
+ {
+ return hr;
+ }
}
}
}
// If true, call the HandleRuntimeLoadedNotification function to enable the assembly load and JIT exceptions
#ifndef FEATURE_PAL
-bool g_breakOnRuntimeModuleLoad = true;
+bool g_breakOnRuntimeModuleLoad = false;
#endif
// Controls whether optimizations are disabled on module load and whether NGEN can be used