Azure Publish Error - Could not copy the file obj\Debug\build.force
<p>I tried to publish my Azure Cloud project, and I am getting the following error message </p>

<blockquote>
  <p>Could not copy the file  <code>obj\Debug\build.force</code> because it was not found<br>
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.8\Microsoft.WindowsAzure.targets</p>
</blockquote>

<p>I am getting this error when I tried to publish by right clicking on the cloud project, selecting build configuration <code>Debug</code>, and then clicking <code>publish</code>.</p>

<p>If I select  build configuration <code>Release</code> it published successfully. </p>

<p>Looks like this is happening intermittently . </p>

<p>Even when I select Release mode, I am getting the above same error:</p>

<ul>
<li>Right-click <code>Cloudproject</code></li>
<li>Select <code>Publish</code></li>
<li>Select Environment <code>Staging</code></li>
<li>Select Build Configuration <code>Release</code> </li>
</ul>

<p><strong>UPDATE</strong>
Whenever I got this error ,I tried with different combinations between Staging / Production/ Release during publish and sometimes it works.</p>

<p>Any ideas as to what could be going wrong?</p>

<p>I am using Windows 10, VS2015 and the Azure SDK 2.8</p>