title: How get exec task output with msbuild
body: <p>I'm trying to get simple output by exec task with <code>msbuild</code>:</p>
  
  <pre><code>&lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;Target Name="Test"&gt;
      &lt;Exec Command="echo test output"&gt;
        &lt;Output TaskParameter="Outputs" ItemName="Test1" /&gt;
      &lt;/Exec&gt;
      &lt;Exec Command="echo test output"&gt;
        &lt;Output TaskParameter="Outputs" PropertyName="Test2" /&gt;
      &lt;/Exec&gt;
      &lt;Message Text="----------------------------------------"/&gt;
      &lt;Message Text="@(Test1)"/&gt;
      &lt;Message Text="----------------------------------------"/&gt;
      &lt;Message Text="$(Test2)"/&gt;
      &lt;Message Text="----------------------------------------"/&gt;
    &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>But get next output:</p>
  
  <pre><code>  echo test output
    test output
    echo test output
    test output
    ----------------------------------------
    ----------------------------------------
    ----------------------------------------
  </code></pre>
  
  <p>How can I get output by my script?</p>