title: Web Application publishing failed - Visual Studio - C# - ASP.NET
body: <p>I have a web application developed in ASP.NET that compiles correctly, however it gives the following error when trying to publish it.</p>
  <pre>Copying file obj\Debug\CoreCompileInputs.cache to obj\Release\AspnetCompileMerge\Source\obj\Debug\CoreCompileInputs.cache failed. Could not find file 'obj\Debug\CoreCompileInputs.cache'.</pre>
  <p><a href="https://i.stack.imgur.com/iiB36.png" rel="nofollow noreferrer">Screenshot 1</a></p>
  <p>We use three computers to publish this application (generate the Web Deploy Package). In one of these PCs the problem seems to be solved by following this steps:</p>
  <ul>
  <li>Close all Visual Studio tabs</li>
  <li>Clean Solution</li>
  <li>Close Visual Studio</li>
  <li>Open Visual Studio</li>
  <li>Recompile</li>
  <li>Publish</li>
  </ul>
  <p>But on the other two computers the following error continues to appear:</p>
  <pre>Error reading resource 'ProjectCycle.obj.Debug.ProjectCycle.Migrations.ModelsMerge.resources' -- 'Could not find file 'C:\Users\Chiappa\Documents\GitHub\ProjectCycle\ProjectCycle\ProjectCycle\obj\Debug\ProjectCycle.Migrations.ModelsMerge.resources'.' ProjectCycle    C:\Users\Chiappa\Documents\GitHub\ProjectCycle\ProjectCycle\ProjectCycle\CSC</pre>
  <p><a href="https://i.stack.imgur.com/szUex.png" rel="nofollow noreferrer">Screenshot 2</a></p>
  <p>Any idea why this might be happening?</p>
  <p>Suggestions on how to correct this problem?</p>
  <blockquote>
  <p><strong>Summary:</strong></p>
  <p>I have an ASP.NET web application that compiles correctly but fails when trying to generate the Web Deploy Package.</p>
  </blockquote>