dotnet / dotnet/linker

Consider marking linked assemblies on the output

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

Description

As far as I can tell linker doesn't mark the assemblies which it linked (as in changed) in any way. Some tools might want to detect linked applications to avoid problems with missing APIs. One such example is the [startup hook feature](https://github.com/dotnet/runtime/blob/master/docs/design/features/host-startup-hook.md).

One such mechanism could be to inject an assembly level attribute, something like:
```C#
[assembly: AssemblyMetadata("ILLinkProcessed", "True")]
```

Size impact of such change should be trivial.

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.