g_free (name);
if (image) {
mono_image_addref (image);
+ mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_ASSEMBLY, "Assembly Loader loaded assembly from bundle: '%s'.", filename);
return image;
}
return NULL;
MonoImageOpenStatus def_status;
gchar *fname;
gchar *new_fname;
+ gboolean loaded_from_bundle;
g_return_val_if_fail (filename != NULL, NULL);
image = NULL;
- if (bundles != NULL)
+ loaded_from_bundle = FALSE;
+ if (bundles != NULL) {
image = mono_assembly_open_from_bundle (fname, status, refonly);
+ loaded_from_bundle = image != NULL;
+ }
if (!image)
image = mono_image_open_full (fname, status, refonly);
ass = mono_assembly_load_from_full (image, fname, status, refonly);
if (ass) {
- mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_ASSEMBLY,
+ if (!loaded_from_bundle)
+ mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_ASSEMBLY,
"Assembly Loader loaded assembly from location: '%s'.", filename);
if (!refonly)
mono_config_for_assembly (ass->image);