I need to run an external MSBuild thread from inside another MSBuild project. What I need to do is to pass the /noconsolelogger to the task . How开发者_开发百科 can I do this, please help!
foo.csproj
<Project DefaultTargets="BuildAll" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="BuildAll">
<Message Text="foo"/>
<Exec Command="MSBuild.exe bar.csproj /noconsolelogger"/>
</Target>
</Project>
bar.csproj
<Project DefaultTargets="BuildAll" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="BuildAll">
<Message Text="bar"/>
</Target>
</Project>
Output contains the message 'foo', but not 'bar'.
精彩评论