The correct answer is to look in the settings of the Package / Publish on the Internet (in the properties of the web application project) and find the "Elements for deployment".
For a web application, you want the "Items to Deploy" to have "Only the files necessary to run this application", which did NOT copy the source code files because they were compiled into a DLL in the bin folder.
Please note that this parameter changes for your current build type (Debug / Release / etc), so plan accordingly ...
Ciao!
enorl76
source share