print all loader exceptions

This commit is contained in:
Michael Becker 2020-01-06 00:21:48 -05:00
parent 45c2cd9979
commit 3f4d0d9c53
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -85,7 +85,11 @@ namespace MBS.Framework
catch (ReflectionTypeLoadException ex)
{
Console.Error.WriteLine("ReflectionTypeLoadException(" + ex.LoaderExceptions.Length.ToString() + "): " + asm.FullName);
Console.Error.WriteLine(ex.Message);
for (int i = 0; i < ex.LoaderExceptions.Length; i++)
{
Console.Error.WriteLine("\t" + ex.LoaderExceptions[i].Message);
Console.Error.WriteLine();
}
types1 = ex.Types;
}