dotnet / dotnet/linker

Missing predefined 'System.NotSupportedException' type when linking library

Open
#3,145 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

I'm trying to use the illink cli to reduce the size of a set of assemblies I've converted from Java with IKVM in order to (hopefully) ship them as a small library.

When I run the linker on my project bin directory, I get these errors:
```
ILLink: error IL1009: Assembly reference 'System.Runtime' could not be resolved.
ILLink: error IL1040: Type 'System.Object' reference could not be resolved.
ILLink: error IL1040: Type 'System.String' reference could not be resolved.
ILLink: error IL1007: Missing predefined 'System.NotSupportedException' type".
```

I added the `--skip-unresolved` flag, but I still get this error:
```
ILLink: error IL1007: Missing predefined 'System.NotSupportedException' type".
```

Is this expected?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.