Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,11 @@ private static TargetFramework DetermineTargetFramework(Compilation compilation,
switch (namedArg.Key)
{
default:
Debug.Fail($"An unknown member '{namedArg.Key}' was found on {attrData.AttributeClass}");
Comment thread
jkoritzinsky marked this conversation as resolved.
continue;
// This should never occur in a released build,
// but can happen when evolving the ecosystem.
// Return null here to indicate invalid attribute data.
Debug.WriteLine($"An unknown member '{namedArg.Key}' was found on {attrData.AttributeClass}");
return null;
case nameof(GeneratedDllImportData.StringMarshalling):
userDefinedValues |= DllImportMember.StringMarshalling;
// TypedConstant's Value property only contains primitive values.
Expand Down