aspnet_compiler.exe?

  • Thread starter Thread starter Brian McCullough
  • Start date Start date
B

Brian McCullough

Is aspnet_compiler.exe actually the tool used by the ASP.NET runtime to
dynamically compile an ASP.NET 2.0 application? ...Or is the
aspnet_compiler.exe tool just a console application "front-end" for some
lower level functionality and the ASP.NET runtime actually hooks into this
lower level API?

Similarly, is the aspnet_compiler actually what get's called when using the
"Publish Web Site" utiltiy (or again, is the "Publish Web Site" utility
actually hooking into a lower level API?

TIA
 
Documentation says:

The ASP.NET Compilation tool (Aspnet_compiler.exe) enables you to compile an
ASP.NET Web application, either in place or for deployment to a target
location such as a production server.

It means precompiling. Normal compilation which happens whern request comes
to a page for the first time involves page parsing process (turn markup to a
control tree) and then .NET language compiler (cs.exe or vbc.exe for C# and
VB.NET respectively) depending on the language used, to compile the parse
tree into a class.

aspnet_compiler is the one VS2005 uses for publishing yes.

Following article: http://odetocode.com/Articles/417.aspx although being bit
old, explains the concept nicely'
 
Somewhat related question here...

When I choose the "Build Web Site" menu item from my Build menu for my Web
Site Project (not Web Application Project), is this actually using MSBuild
to perform the precompilation on my site or is this hooking directly into
the aspnet_compiler.exe tool?

Thanks!!
 
Back
Top