dotnet/msbuild

Preprocess flag allows some irrelevant logging to escape

Open

#1 799 ouverte le 6 mars 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C# (1 364 forks)batch import
Area: Debuggabilityhelp wantedtriaged

Métriques du dépôt

Stars
 (5 062 stars)
Métriques de merge PR
 (Merge moyen 11j 7h) (125 PRs mergées en 30 j)

Description

<?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)

Guide contributeur