Use application dll to tpa 92/125392/1 accepted/tizen/unified/20170418.072832 submit/tizen/20170418.034520
authorJongHeon Choi <j-h.choi@samsung.com>
Mon, 17 Apr 2017 07:49:55 +0000 (16:49 +0900)
committerJongHeon Choi <j-h.choi@samsung.com>
Mon, 17 Apr 2017 07:50:04 +0000 (16:50 +0900)
Change-Id: I28c09d0e7ffa12f26c5bab0e4f0eba37ccfa9ef0

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index 5f40771..ef42921 100644 (file)
@@ -280,22 +280,23 @@ int CoreRuntime::Launch(const char* app_id, const char* root, const char* path,
     return 1;
   }
 
-  std::vector<std::string> searchDirectories = {
-    RuntimeDirectory, DeviceAPIDirectory
-#ifdef USE_MANAGED_LAUNCHER
-    , Basename(LauncherAssembly)
-#endif
-  };
-
-  //std::string trusted_directories = JoinStrings(searchDirectories, ":");
   std::string tpa;
-  AssembliesInDirectory(searchDirectories, tpa);
-
   std::string appRoot = root;
   std::string appBin = ConcatPath(appRoot, "bin");
   std::string appLib = ConcatPath(appRoot, "lib");
   std::string probePath = appBin + ":" + appLib + ":" + NativeLibDirectory;
 
+  std::vector<std::string> searchDirectories;
+  searchDirectories.push_back(appBin);
+  searchDirectories.push_back(appLib);
+  searchDirectories.push_back(RuntimeDirectory);
+  searchDirectories.push_back(DeviceAPIDirectory);
+#ifdef USE_MANAGED_LAUNCHER
+  searchDirectories.push_back(LauncherAssembly);
+#endif
+
+  AssembliesInDirectory(searchDirectories, tpa);
+
 #ifdef USE_MANAGED_LAUNCHER
   RunManagedLauncher(app_id, probePath.c_str(), tpa.c_str());