From: 최종헌/MDE Lab(SR)/삼성전자 Date: Mon, 10 Jul 2023 04:44:46 +0000 (+0900) Subject: Added the sdk_tool path to find diagnostics (#459) X-Git-Tag: accepted/tizen/unified/20230710.154005^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fdotnet%2Flauncher.git;a=commitdiff_plain;h=2154c3e7d2986b75df34809ed478bdceaa86d09b Added the sdk_tool path to find diagnostics (#459) Change-Id: Ic3bb7521e5fe8c2f8be39118ab06725e4f91a6e3 --- diff --git a/NativeLauncher/launcher/exec/corerun.cc b/NativeLauncher/launcher/exec/corerun.cc index 29b7234..81fdb0c 100644 --- a/NativeLauncher/launcher/exec/corerun.cc +++ b/NativeLauncher/launcher/exec/corerun.cc @@ -22,6 +22,7 @@ static const char* CLR_PATH = "/usr/share/dotnet.tizen/netcoreapp"; static const char* TOOL_PATH = "/home/owner/share/.dotnet/tools"; +static const char* DIAGNOSTICS_TOOL_PATH = "/home/owner/share/tmp/sdk_tools/coreclr-diagnostics"; void DisplayUsage() { _SOUT( @@ -119,10 +120,13 @@ int main(int argc, const char* argv[]) { std::string toolDll = "/dotnet-" + arg + ".dll"; std::string searchToolPath1 = toolDllsPath + toolDll; std::string searchToolPath2 = std::string(TOOL_PATH) + toolDll; + std::string searchToolPath3 = std::string(DIAGNOSTICS_TOOL_PATH) + toolDll; if (isFile(searchToolPath1)) { managedAssemblyPath = searchToolPath1; } else if (isFile(searchToolPath2)) { managedAssemblyPath = searchToolPath2; + } else if (isFile(searchToolPath3)) { + managedAssemblyPath = searchToolPath3; } else { _SERR( "Could not execute because dotnet-%s does not exist.\n"