title: MsBuild Condition Evaluate Property Contains
body: <p>Attempting to create an itemgroup for use in a target where the file types are - Filename.CSS.ASPX</p>
  
  <pre><code>&lt;Target Name="Test" AfterTargets="Build"&gt;
      &lt;Message Text="Project $(ProjectName) Test PostBuild" Importance="high" /&gt;
      &lt;Message Text="%(Content.FullPath)" Condition="%(Extension) == '.aspx' AND %(Filename.Contains(css))" Importance="high" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>On Compile;</p>
  
  <pre><code>Error   1   Expected "%(Filename.Contains(css))" to evaluate to a boolean instead of "%(Filename.Contains(css))", in condition "%(Extension) == '.aspx' AND %   (Filename.Contains(css))".  C:\Projects\TestProj\TestProj\TestProj.csproj   58  38  TestProj
  </code></pre>
  
  <p>Any advice on expanding properties for evaluation?</p>