Coreclr needs original executable dll path not ni file path for dll loading. 19/162719/1
authorCho Woong Suk <ws77.cho@samsung.com>
Tue, 5 Dec 2017 05:24:53 +0000 (14:24 +0900)
committerCho Woong Suk <ws77.cho@samsung.com>
Tue, 5 Dec 2017 05:24:53 +0000 (14:24 +0900)
ni file searching is automatically done in the inside of coreclr

Change-Id: I14fc7629431a3b082da06189dd2031a61b571afa

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index f19e5af..36df3ca 100644 (file)
@@ -344,15 +344,6 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i
 
        bool success = false;
        if (launchFunction != nullptr) {
-               std::string cppPath(path);
-
-               if (isManagedAssembly(cppPath) && !isNativeImage(cppPath)) {
-                       size_t extindex = cppPath.size() - 4;
-                       cppPath = cppPath.substr(0, extindex) + ".ni" + cppPath.substr(extindex, 4);
-                       if (!fileNotExist(cppPath))
-                               path = cppPath.c_str();
-               }
-
                success = launchFunction(root, path, argc, argv);
                if (!success)
                        _ERR("Failed to launch Application %s", path);