[MSBuild] Caution on properties's value when calling another target

Cautions:

  1. Property values updated in a called target can be visible in another called target but not in the current target.
  2. Programmatic properties & items are not emitted (can not be passed) to CallTarget invocation down the stream until the target that created these properties & items completes its execution. In order to pass a newly created property to subsequent targets, you need to create it outside the context of the current target.  In other words, you need to create a new target and place the creation in that target.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: