title: Visual Studio 2017 - Post build exited with code 9009
body: <p>Recently I updated my Visual Studio 2015 to 2017, then i've tried to migrate all my solutions from VS2015. But after migration, one of my project build failed with below error:</p>
  
  <pre><code>Severity Code
  Description  Project File
  Line Suppression State
  Error The command nuget.exe pack [path] -IncludeReferencedProjects  -OutputDirectory [path]
  " exited with code 9009.
  </code></pre>
  
  <p>In the post-build event, I have added below command:</p>
  
  <pre><code>nuget.exe pack $(ProjectPath) -IncludeReferencedProjects -OutputDirectory $(SolutionDir)[path]
  </code></pre>
  
  <p>This project was built successfully in Visual Studio 2015, but failed in the Visual Studio 2017. </p>
  
  <p>Any suggestions are grateful.</p>