Browse Source

Exclude `System.Runtime.CompilerServices.RefSafetyRulesAttribute` from the `module` attribute in the generated `AssemblyInfo.cs`, because including it causes the compiler error: `error CS8335: Do not use 'System.Runtime.CompilerServices.RefSafetyRulesAttribute'. This is reserved for compiler usage.`. (#3606)

pull/3609/head
sonyps5201314 2 months ago committed by GitHub
parent
commit
b63b515a27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      ICSharpCode.Decompiler/CSharp/Transforms/EscapeInvalidIdentifiers.cs

1
ICSharpCode.Decompiler/CSharp/Transforms/EscapeInvalidIdentifiers.cs

@ -136,6 +136,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms
switch (trr.Type.FullName) switch (trr.Type.FullName)
{ {
case "System.Security.UnverifiableCodeAttribute": case "System.Security.UnverifiableCodeAttribute":
case "System.Runtime.CompilerServices.RefSafetyRulesAttribute":
attribute.Remove(); attribute.Remove();
break; break;
} }

Loading…
Cancel
Save