Here\'s a snippet from my csproj file:
You should use Or, not ||:
||
Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'"