I am researching a new ASP.Net project that we would like to host in a Windows Azure Web Role.
One of the technical requirements of this project is to make use of the full pre-compilation options (non-updatable, single page assembly) of the ASP.Net Web Site project model – as opposed to the ASP.Net Web Application project model.
Is it possible to host ASP.Net Web Site projects in Azure? Best I can tell the project templates for Azure are ASP.Net Web Applications only at the moment.
Okay, I was struggling with the same problem for couple of days, here is the step-by-step guide
(1) Publish your website project to a folder (for my case is “PrecompiledWeb\WebSite1”, which resides in the sub folder of my azure project)
(2) Modify your service definition(.csdef), adding a webrole
(3) Run the following command(CSPack) at command prompt
(4) Basically you are almost done!
Good luck! 😉