Re: how to precompile a web application?



"bruce barker" <nospam@xxxxxxxxxx> wrote in message news:ell4Wp4DIHA.4196@xxxxxxxxxxxxxxxxxxxxxxx

I can find no way to precompile a web application from visual studio.

Not sure about natively, but Web Deployment Projects does this (I never use anything else for deployment).

It's a simple matter of unchecking the "Allow this precompiled site to be updatable" checkbox in the WDP's Compilation options...

by precompile I mean all the aspx code is converted to assemblies by visual studio, not at runtime by asp.net. if you view the compiled aspx page it should only contain the line:

This is a marker file generated by the precompilation tool, and should not be deleted!

That's right.

replacing all the original aspx source, and of course a page assembly should exist in the bin folder thats the compiled aspx.

It certainly does.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

.



Relevant Pages

  • Re: how to precompile a web application?
    ... i use web deployment projects with web sites, i just can not find how to add one to a web application solution, especially for vs2008. ... but Web Deployment Projects does this. ... It's a simple matter of unchecking the "Allow this precompiled site to be updatable" checkbox in the WDP's Compilation options... ... should exist in the bin folder thats the compiled aspx. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to precompile a web application?
    ... web deployment projects are used to build precompiled sites, I'm just missing how to create a web deployment project for a web application. ... And none of those silly marker files that are required for an endpoint for each page. ... I can find no way to precompile a web application from visual studio. ... replacing all the original aspx source, and of course a page assembly should exist in the bin folder thats the compiled aspx. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading