title: Publish error in Visual Studio
body: <p>I keep getting this insane error which makes me think VS has gone stupid rather than wiser. </p>
  
  <p><em>Error  1   Copying file Content\Images\Brands\Lenovo.png to obj\Debug\Package\PackageTmp\Content\Images\Brands\Lenovo.png failed. Could not find file 'Content\Images\Brands\Lenovo.png'.      0   0   PriceCompare</em></p>
  
  <p>The error is produced when i try to publish to file system. It's stupid that VS is looking for a file which i deleted myself and it doesn't reside in the solution now. </p>
  
  <p>Earlier too i was deleting and adding files but suddenly today the publish command has started giving errors.</p>
  
  <p>In many of the other posts, i have seen people asking to open the .csproj file with notepad and remove the references to the deleted files manually. This seems very daunting as i have deleted a long list of files and added a lot of new ones.</p>
  
  <p><strong>Is there an easier way to get rid of this problem or i need to manually remove the references to deleted file. Can't i just delete the obj folder or empty the bin directory or clean solution or something.</strong></p>