Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Microsoft.Windows.CsWin32/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}\".");
}
Expand Down