exec 작업으로 간단한 출력을 얻으려고합니다 msbuild
.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Test">
<Exec Command="echo test output">
<Output TaskParameter="Outputs" ItemName="Test1" />
</Exec>
<Exec Command="echo test output">
<Output TaskParameter="Outputs" PropertyName="Test2" />
</Exec>
<Message Text="----------------------------------------"/>
<Message Text="@(Test1)"/>
<Message Text="----------------------------------------"/>
<Message Text="$(Test2)"/>
<Message Text="----------------------------------------"/>
</Target>
</Project>
그러나 다음 출력을 얻으십시오.
echo test output
test output
echo test output
test output
----------------------------------------
----------------------------------------
----------------------------------------
스크립트에서 출력을 얻으려면 어떻게해야합니까?