When I build my ASP.NET web application I get a .dll file with the code for the website in it (which is great) but the website also needs all the .aspx files and friends, an
Build --> Publish
A dialog box will appear that will guide you through the process.