title: Visual Studio post build event returns error MSB3073
body: <p>I am getting the following error while doing some post build operations from Visual Studio 2015.</p>
  
  <blockquote>
    <p>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5):
    error MSB3073: The command 'if 'Release'=='Release' (</p>
    
    <p>...</p>
    
    <p>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5):
    error MSB3073: )' exited with code 9009. -- FAILED"</p>
  </blockquote>
  
  <p>What could be the issue here? I tried the following 'Post Build' event script:</p>
  
  <pre><code>&lt;PostBuildEvent&gt;if "$(ConfigurationName)"=="Release" (
        ...
  )&lt;/PostBuildEvent&gt;
  </code></pre>
  
  <p>I have also tried the following (without the quotes):</p>
  
  <pre><code>&lt;PostBuildEvent&gt;if $(ConfigurationName)==Release (
        ...
  )&lt;/PostBuildEvent&gt;
  </code></pre>
  
  <p><strong>One important note:</strong> 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.</p>