Bug found in C# loader (getting current executable path not working on all shells).
@@ -128,14 +128,12 @@ bool netcore_linux::CreateHost() {
int status = -1;
- // initialize coreclr
- string m;
- string mm;
-
- mm.append(getenv("_"));
+ /* TODO: Make this trick more portable... */
+ const char * exe_path = getenv("_");
+ // Initialize CoreCLR
status = (*this->coreclr_initialize)(
- mm.c_str(),
+ exe_path,
"metacall_cs_loader_container",
sizeof(propertyKeys) / sizeof(propertyKeys[0]),
propertyKeys,
