title: Check if Targets exists with MSBuild task
body: <p>Here is my code:</p>
  
  <pre><code>    &lt;MSBuild Projects="outs.proj" Targets="Build;MyCustomTarget"&gt;
  &lt;/MSBuild&gt;
  </code></pre>
  
  <p>I need to check if MyCustomTarget exists in outs.proj before executing.</p>
  
  <p>It throws an error when MyCustomTarget is not imported, so depending on the result use either Build or Build+MyCustomTarget.</p>
  
  <p>Thanks in advance for your help.</p>