Andrew
Andrew

Reputation: 1616

Azure Cloud Web Role + AspNetCompiler?

Has anyone successfully integrated the AspNetCompiler task/target with Azure Cloud Web Role packages (cspkg) files?

I've not been able to figure out how or at which step to perform the compilation so my Azure Web Role is in a fully compiled state.

TeamCity integration a plus.

Upvotes: 2

Views: 159

Answers (1)

sharptooth
sharptooth

Reputation: 170509

I spent some time trying to do this in a more or less reliable way (see this question) and it looks like the best bet is to invoke in-place precompilation from inside role OnStart() by using ClientBuildManager.PrecompileApplication(). This wastes some time for each startup - at least 10 seconds for the simplest site under ASP.NET 4.0 (I haven't tried later versions but I've heard they might have much faster precompilation).

Upvotes: 1

Related Questions