Skip to content

[Wasm][AOT] Can't find custom attr constructor image: InternalsVisibleToAttribute..ctor(string) #1913

@ghost

Description

@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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions