I hope I didn’t arrive too late. The definitive solution to my problem was to create a pre-build script that deletes the path. In Solution Explorer, search for the project name -> properties -> build -> build events. And write:
if exist "$(ProjectDir)bin\x64\Debug\app.publish" ( rmdir /s /q "$(ProjectDir)bin\x64\Debug\app.publish" )