dotnet / dotnet/msbuild

Improve understandability of RAR name mismatch

Open
#502 1 comment 0 reactions 0 assignees View on GitHub
help wanted triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

When ResolveAssemblyReferences rejects a file because the names don't match, it isn't always super clear about why.

```
Primary reference "System.Runtime". (TaskId:24)
...
Considered "d:\CxCache-Scope\DotNetFxRefAssemblies.Corext.4.5.2\Facades\System.Runtime.dll", but its name "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" didn't match. (TaskId:24)
```

It would be nice to have some sort of clearer error, like "version doesn't match", or even just an aligned set of strings for "expected" and "actual", maybe with markers on another line indicating where the diff begins.

[This is a suggestion from an Microsoft dev on an internal alias.]

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.