title: Checking if a Property 'Starts/Ends With' in a csproj
body: <p>I'm setting up some configurations in my csproj files that will target different framework versions. Ideally I want configurations of 'Debug - 3.5', 'Debug - 4.0', 'Release - 3.5' and 'Release - 4.0'.</p>
  
  <p>In my csproj file I want to do something like the following:</p>
  
  <pre><code>&lt;PropertyGroup Condition=" '${Configuration}' ends with '3.5' "&gt;
      &lt;TargetFrameworkVersion&gt;v3.5&lt;/TargetFrameworkVersion&gt;
  &lt;/PropertyGroup
  &lt;PropertyGroup Condition=" '${Configuration}' ends with '4.0' "&gt;
      &lt;TargetFrameworkVersion&gt;v4.0&lt;/TargetFrameworkVersion&gt;
  &lt;/PropertyGroup
  ... check for "starts with Debug" to define Optimize etc.
  </code></pre>
  
  <p>However, I don't know how to go about checking that <code>${Configuration}</code> starts/ends with a particular string. Is there an easy way to do this?</p>
  
  <p><strong>Edit</strong>: Marked answer below for pointing me in the right direction, which lead me to go with:</p>
  
  <pre><code>&lt;PropertyGroup Condition="$(Configuration.Contains('Debug'))"&gt;
      ... setup pdb, optimize etc.
  &lt;/PropertyGroup&gt;
  &lt;PropertyGroup Condition="$(Configuration.Contains('3.5'))"&gt;
      ... set target framework to 3.5
  &lt;/PropertyGroup&gt;
  ... and so on for Release and 4.0 variations
  </code></pre>