dotnet/msbuild

Better diagnostic logging in RAR when marking CopyLocal=false

Open

#1,485 创建于 2016年12月15日

在 GitHub 查看
 (1 评论) (4 反应) (0 负责人)C# (1,364 fork)batch import
Area: DebuggabilityArea: LoggingArea: Task: Resolve Assembly References (RAR)User Experiencehelp wantedtriaged

仓库指标

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

描述

Sometimes it is very difficult to understand why some transitive dependencies are copied to the output directory while others aren't.

It would greatly help to improve logging in this code: https://github.com/Microsoft/msbuild/blob/xplat/src/XMakeTasks/AssemblyDependency/Reference.cs#L1226-L1247

Specifically, we already list all source items in the log: https://github.com/Microsoft/msbuild/blob/xplat/src/XMakeTasks/AssemblyDependency/ResolveAssemblyReference.cs#L1645 It would be nice to also print their Private metadata if present.

This way we can know which one specified their Private=false and let to exclusion. Otherwise we have to double-check in the log elsewhere what the metadata was. It's possible but hard to use.

贡献者指南