dotnet/msbuild

Preprocess flag allows some irrelevant logging to escape

Open

#1,799 创建于 2017年3月6日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)C# (5,062 star) (1,364 fork)batch import
Area: Debuggabilityhelp wantedtriaged

描述

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Build" BeforeTargets="bt" AfterTargets="at"/>  
</Project>
msbuild /pp:out.txt test.proj

results in

C:\git\corefx>msbuild /pp:out.txt test.proj
The target "bt" listed in a BeforeTargets attribute at "C:\git\corefx\test.proj (3,26)" does not exist in the project,
and will be ignored.
The target "at" listed in an AfterTargets attribute at "C:\git\corefx\test.proj (3,45)" does not exist in the project,
and will be ignored.
C:\git\corefx>

When using /preprocess, no logging is expected except for cases where /preprocess cannot do its job (for example syntax error or import of nonexistent file)

贡献者指南