title: MSBUILD : error MSB1009: Project file does not exist while building project on SonarQube server
body: <p>I have a postbuild target in my csproj file, as below.</p>
  <pre><code> &lt;Target Name=&quot;PostBuild&quot; AfterTargets=&quot;PostBuildEvent&quot;&gt;
      &lt;Exec Command=&quot;dotnet publish '..\..\src\httpapi\httpapi.csproj' -o $(OutputPath)\service&quot;/&gt;
    &lt;/Target&gt;
  </code></pre>
  <p>Runs without any issues on my local machine, but fails with below error while building on sonarqube server.</p>
  <pre><code>MSBUILD : error MSB1009: Project file does not exist. 
  - Switch: '..\..\src\httpapi\httpapi.csproj'
  </code></pre>
  <p>any idea why this happens? is there any other way I can mention the path to the target project in my post build target?</p>