diff --git a/src/Microsoft.Windows.CsWin32/Generator.cs b/src/Microsoft.Windows.CsWin32/Generator.cs index f037cded..2571bc44 100644 --- a/src/Microsoft.Windows.CsWin32/Generator.cs +++ b/src/Microsoft.Windows.CsWin32/Generator.cs @@ -1082,7 +1082,7 @@ internal void RequestInteropType(TypeReferenceHandle typeRefHandle, Context cont { AssemblyReference assemblyRef = this.Reader.GetAssemblyReference((AssemblyReferenceHandle)typeRef.ResolutionScope); string scope = this.Reader.GetString(assemblyRef.Name); - if (scope != "Windows.Foundation.UniversalApiContract") + if (scope != "Windows.Foundation.UniversalApiContract" && scope != "Windows.Foundation.FoundationContract") { throw new GenerationFailedException($"Input metadata file \"{scope}\" has not been provided, or is referenced at a version that is lacking the type \"{metadataName}\"."); }