How to pass msbuild properties to another msbuild script correctly?

Posted by mark on Stack Overflow See other posts from Stack Overflow or by mark
Published on 2010-06-02T07:53:27Z Indexed on 2010/06/02 7:53 UTC
Read the original article Hit count: 276

Filed under:

Dear ladies and sirs.

I have a master.proj msbuild script which builds several projects using the MSBuild task.

Here is a typical example:

<Target Name="Log4PostSharp" DependsOnTargets="log4net">
  <MSBuild Projects="Log4PostSharp\Log4PostSharp.sln" Properties="Configuration=$(Configuration)" />
</Target>

But, my problem is that if more properties are given on the command line, they are not passed to the MSBuild task.

Is there a way to pass the MSBuild task all the properties given on the command line?

Thanks.

© Stack Overflow or respective owner

Related posts about msbuild