diff --git a/source/MetadataProcessor.Console/Program.cs b/source/MetadataProcessor.Console/Program.cs index 3ac8b7d2..2983d85a 100644 --- a/source/MetadataProcessor.Console/Program.cs +++ b/source/MetadataProcessor.Console/Program.cs @@ -100,7 +100,7 @@ public void Compile( catch (Exception) { System.Console.Error.WriteLine( - "Unable to compile output assembly file '{0}' - check parse command results.", fileName); + $"Unable to compile output assembly file '{fileName}' - check parse command results."); throw; } } diff --git a/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs b/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs index 9366152e..c13ad100 100644 --- a/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs +++ b/source/MetadataProcessor.Core/nanoAssemblyBuilder.cs @@ -440,7 +440,8 @@ private HashSet BuildDependencyList(MetadataToken token) if (i.Operand is MethodReference || i.Operand is FieldReference || i.Operand is TypeDefinition || - i.Operand is TypeSpecification) + i.Operand is TypeSpecification || + i.Operand is TypeReference) { set.Add(((IMetadataTokenProvider)i.Operand).MetadataToken); }