dotnet / dotnet/linker

Need way for custom linker step to be able to log MSBuild warnings

Open
#2,333 8 comments 0 reactions 0 assignees View on GitHub
area-Linker: Diagnostic
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

Context: https://github.com/xamarin/xamarin-android/pull/6423

xamarin/xamarin-android needs to be able to do something like:

```csharp
Context.LogMessage (string.Format ("warning XA2000: " + Resources.XA2000, assembly));
```

Unfortunately, the linker doesn't log this message unless you pass `--verbose`.

So it currently doesn't appear there is a good way to log warnings. We don't want `--verbose`, because it would log a lot of extra stuff.

Could messages with `warning` or `error` always log regardless of `--verbose`? A new API would also work for us.

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.