If none of the other answers are working for you, try this:
Go to File > Close Solution
Open the folder for your project.
Delete the 'bin' and 'obj' folders from file explorer.
Then try building the application again.