473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Pre compiling web site in 2.0

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
Nov 19 '05 #1
4 1464
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/
======================================
<br***@newsgroups.nospam> wrote in message
news:4v********************************@4ax.com...
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

Nov 19 '05 #2
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

On Tue, 1 Nov 2005 11:00:03 -0400, "Juan T. Llibre"
<no***********@nowhere.com> wrote:
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/
======================================
<br***@newsgroups.nospam> wrote in message
news:4v********************************@4ax.com.. .
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

Nov 19 '05 #3
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/
======================================
<br***@newsgroups.nospam> wrote in message
news:94********************************@4ax.com... 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

On Tue, 1 Nov 2005 11:00:03 -0400, "Juan T. Llibre"
<no***********@nowhere.com> wrote:
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/
======================================
<br***@newsgroups.nospam> wrote in message
news:4v********************************@4ax.com. ..
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

Nov 19 '05 #4
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)

<br***@newsgroups.nospam> wrote in message
news:4v********************************@4ax.com...
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

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Arturo DiDonna | last post by:
Hello everyone. I am trying to compile someone else code and I am stuck with compilation problems using the g++ 3.3 compiler. Basically, when compiling the following code, I get this error...
1
by: Paul Darroch | last post by:
Hello I am trying to develop a class, which I will only use within my ASP.NET site. I therefore created a class and inserted a simple test method in it. However, when I try to use this class...
3
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49'...
9
by: jojobar | last post by:
In vs.net 2005 you can build the entire website, entire solution or a single page. The project I am working on has more than 1000 pages spread over 50-60 directories. We work on one or two of the...
1
by: vduber6er | last post by:
Hello, I just recently switched my code from one server to another and now having some problems compiling my code. I was able to compile fine with my last server now but this current one is...
2
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
1
by: matt.merchant | last post by:
All, When publishing a site with the "Used Fixed Naming and Single Page Assemblies" option checked, only one of my two App_Code folders are compiled into .DLL's. The original code (DotNetNuke...
6
by: grbgooglefan | last post by:
I am compiling CPP program which uses CPython API functions from Python 2.5.1 source code First I compiled with this commanline, that time I got "pyconfig.h" not found. g++ -Os -I../../Include...
4
by: Chris Zopers | last post by:
Hello, To prevent my webapplication from compiling when a user first visit's the site, I precompile the application with the aspnet_compiler tool (aspnet_compiler -p physicalOrRelativePath -v /...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.