Verificando se uma propriedade 'inicia / termina com' em um csproj

Estou configurando algumas configurações em meus arquivos csproj que terão como alvo diferentes versões de framework. Idealmente, eu quero configurações de 'Debug - 3.5', 'Debug - 4.0', 'Release - 3.5' e 'Release - 4.0'.

No meu arquivo csproj eu quero fazer algo como o seguinte:

<PropertyGroup Condition=" '${Configuration}' ends with '3.5' ">
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup
<PropertyGroup Condition=" '${Configuration}' ends with '4.0' ">
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup
... check for "starts with Debug" to define Optimize etc.

No entanto, eu não sei como verificar se${Configuration} começa / termina com uma string específica. Existe uma maneira fácil de fazer isso?

Editar: Resposta marcada abaixo por me apontar na direção certa, o que me levou a ir com:

<PropertyGroup Condition="$(Configuration.Contains('Debug'))">
    ... setup pdb, optimize etc.
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('3.5'))">
    ... set target framework to 3.5
</PropertyGroup>
... and so on for Release and 4.0 variations

questionAnswers(1)

yourAnswerToTheQuestion