dotnet/msbuild

Improve understandability of RAR name mismatch

Open

#502 创建于 2016年2月22日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C# (1,364 fork)batch import
help wantedtriaged

仓库指标

Star
 (5,062 star)
PR 合并指标
 (平均合并 11天 7小时) (30 天内合并 125 个 PR)

描述

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

贡献者指南