Pre compiling web site in 2.0

  • Thread starter Thread starter bryan
  • Start date Start date
B

bryan

I'm still using Beta 2 of VS2005. I'd like to be able to precompile my
web site (similar to 1.x) so that I don't have to put source files on
the deployment server. Is there anyway to do this other than with the
command line aspnet_compiler.exe tool?

Thanks,
Bryan
 
When you publish your website from inside the VS.NET
IDE, you get an option to pre-compile the site without
having to use the command-line compiler.

Of course, all that does is "package" the very same command-line
compiler, so it's easier to use, but you don't have to do it manually.




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
Juan -
I see no option to publish the site. But that may not do what I
want. In 1.x, I never really used website projects. I would just build
a class library that happened to include some aspx pages, then load
the aspx pages and the compiled dll to the web server. I'd like to be
able to do something similar with vs2005/2.0. The web sites I
maintains are somewhat untraditional - they serve up voice xml
(usually wrapped in an aspx page) rather than run as a site that
people visit with a browser. (The client is actually a remote voice
execution platform.)

-Bryan
 
Hi, Bryan.

re:
In 1.x, I never really used website projects. I would just build
a class library that happened to include some aspx pages, then
load the aspx pages and the compiled dll to the web server.
I'd like to be able to do something similar with vs2005/2.0.

You can do it in the same identical way in VS.NET 2005.

It's just that VS.NET/ASP.NET/.NET Framework 2.0 offer
different compilation models, but the basic compile-to-assembly
and-publish-only-the-dll-and-related-files model is still good to go.

Even though ASP.NET offers seven specialized directories,
you basically only need /bin and aspx pages for a site to work.

The rest is just frosting on the cake.

The "pre-compile" option in ASP.NET 2.0 is not the same thing
as "pre-compiling" an assembly, btw. The "pre-compile" option
in ASP.NET 2.0 means that the aspx pages will not have to be
JIT-compiled and that, therefore, there will be no delay in serving them.

As you probably know, when a page is called for the first time, it's JIT-compiled,
and there's a slight delay in serving the page, while it's being compiled.

When you pre-compile in ASP.NET 2.0, there won't be a delay for the first page.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
it not named well, on the MSBuild options you will find a check box

Allow this precompiled site to be updateable

uncheck to get empty .aspx files, and precompiled dlls.


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top