Skip to content

Commit 79f3cc4

Browse files
authored
Add output of error on resolution failure because of missing assembly (#107)
***NO_CI***
1 parent 95a37bd commit 79f3cc4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/MetadataProcessor.Core/Utility/LoadHintsAssemblyResolver.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ public override AssemblyDefinition Resolve(AssemblyNameReference name)
4646
return null;
4747
}
4848
}
49+
catch(System.IO.DirectoryNotFoundException)
50+
{
51+
Console.Error.WriteLine(
52+
$"Unable to find assembly '{name.Name}' in load hints collection.");
53+
54+
throw;
55+
}
4956
catch (Exception)
5057
{
5158
throw;

0 commit comments

Comments
 (0)