dotnet/msbuild

Preprocess flag allows some irrelevant logging to escape

Open

#1,799 opened on 2017年3月6日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C# (5,062 stars) (1,364 forks)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)

コントリビューターガイド