So I ran into this issue recently where my builds stop after the display for Code Cenerated Complete was displayed in the output for a publish. Then it would sit there thinking for 3-6 hours before completing the publishing process. I was about to reformat my PC when I noticed i had a drive that had gotten corrupted and was no longer readable. After I removed the dead drive the build process went from Hours back to 5-10 minutes.