@jeromelaban commented on Mar 19, 2021, 3:34 PM UTC:
Description
When building an application, AOT may fail with the following error:
Mono Ahead of Time compiler - compiling assembly /path/to/my.dll
Can't find custom attr constructor image: /path/to/my.dll mtoken: 0x0a000f71 due to: Method not found: void System.Runtime.CompilerServices.InternalsVisibleToAttribute..ctor(string)
Workaround
<assembly fullname="System.Private.Corelib">
<type fullname="System.Runtime.CompilerServices.InternalsVisibleToAttribute" />
</assembly>
Configuration
dotnet: 8170c06
linker: c44302b
Regression?
yes
Other information
This issue was moved by marek-safar from dotnet/runtime#49874.