title: The command exited with code 2 visual studio 2017
body: <p>While I'm trying to build my windows application, I'm getting following error.</p>
  <p>The command</p>
  <blockquote>
  <p>&quot;C:\repos\CommunityLive\CL_GateApp\signing\StrongNameUnsignedAssemblies.bat
  C:\repos\CommunityLive\CL_GateApp\signing&quot; exited with code 2.</p>
  </blockquote>
  <p>Following is my Pre-Build event command line</p>
  <pre><code>$(ProjectDir)signing\StrongNameUnsignedAssemblies.bat $(ProjectDir)signing\
  </code></pre>
  <p>Here is the Macros details</p>
  <p><a href="https://i.stack.imgur.com/slCzG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/slCzG.png" alt="Macros" /></a></p>