Is there a way to check the existence of a target so that we can call it only when it exists?
+1
A:
You can make a Target depend on a other Target
...
<Target Name="Two" DependsOnTargets="One">
<Message Text="... comes Two." />
</Target>
<Target Name="One">
<Message Text="After One ..." />
</Target>
...
Your recent posts show that you try heavily to rely on calling Targets which is - as far as i understand it - against the philosophy of MSBuild.
Try rather to model dependencies between your Targets.
Filburt
2010-03-25 21:40:23
I see. Thanks a lot Fiburt.
Nam Gi VU
2010-03-26 16:11:02