title: Running post-build event ONLY in build definition
body: <p>In our web project, we've modified the .csproj file to run this command pre-build:</p>
  
  <pre><code>cd $(MSBuildProjectDirectory)
  npm run build-release
  cd $(MSBuildStartupDirectory)
  </code></pre>
  
  <p>It works just fine.</p>
  
  <p>The problem is that we don't want this in the .csproj anymore. We only want it in the build definition.</p>
  
  <p>I can't figure out. This is what I have, and I get errors about the path being too long.</p>
  
  <p><img src="https://i.stack.imgur.com/MGzGB.png" alt="enter image description here"></p>