Error during publishing Unable to delete directory "bin \ Debug \ app.publish"
When I publish, build, rebuild or clean up the solution, the following error occurs:
Error 1 Failed to delete directory "bin \ Debug \ app.publish". Could not find part of the path 'HondaInstantFeedback.exe.config.deploy'. HondaInstantFeedback
But when I run it, it works fine. Its a winform project and I am using vs 2010.
+3
source to share
5 answers
If you configured Visual Studio to "Delete Existing Files" when publishing, Filezilla, WinSCP, or other FTP programs may throw this error message if the FTP program is open in the publishing directory.
This is because Visual Studio cannot delete a folder when a directory is open in the FTP program.
I just closed my FTP program and then Visual Studio 2017 was able to publish again.
0
source to share