I am getting the following error while doing some post build operations from Visual Studio 2015.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: The command 'if 'Release'=='Release' (
...
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: )' exited with code 9009. -- FAILED"
What could be the issue here? I tried the following 'Post Build' event script:
<PostBuildEvent>if "$(ConfigurationName)"=="Release" (
...
)</PostBuildEvent>
I have also tried the following (without the quotes):
<PostBuildEvent>if $(ConfigurationName)==Release (
...
)</PostBuildEvent>
One important note: The issue is happening only on few projects within the same solution, whereas the others are working fine. No difference that I have noticed yet in the code.