diff --git a/src/corehost/src/tpafile.cpp b/src/corehost/src/tpafile.cpp index f624b510d..e36f4b496 100644 --- a/src/corehost/src/tpafile.cpp +++ b/src/corehost/src/tpafile.cpp @@ -222,7 +222,7 @@ void tpafile::write_native_paths(pal::string_t& output) append_path(candidate, entry.library_name.c_str()); append_path(candidate, entry.library_version.c_str()); - append_path(candidate, entry.relative_path.c_str()); + append_path(candidate, get_directory(entry.relative_path).c_str()); if (pal::file_exists(candidate)) {