Home All Groups Group Topic Archive Search About

How to precomile asp.net in visual studio 2005

Author
9 Nov 2006 1:01 AM
Scooby
I'm working with VS 2005, but have an example from VS 2003 on how to
precompile the code behind into a dll.  This does not work for me, since the
VS 2005 now breaks up the auto generated classes into two different files.

So, I can not precompile my .cs files.  Any help out there on what the right
procedure is for this in VS 2005?

Thanks,

Jim

Author
9 Nov 2006 3:17 AM
Carl Daniel [VC++ MVP]
Scooby wrote:
> I'm working with VS 2005, but have an example from VS 2003 on how to
> precompile the code behind into a dll.  This does not work for me,
> since the VS 2005 now breaks up the auto generated classes into two
> different files.
> So, I can not precompile my .cs files.  Any help out there on what
> the right procedure is for this in VS 2005?

ASP.NET 2.0 completely revamped the build model, going towards both extremes
from the model of ASP.NET 1.x.  You can get the 1.x behavior by installing
the "Web Application Project" add-in for VS 2005:

http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx


You can also make use of the new deployment capabilities of ASP.NET 2.0
which permit you to compile the entire website into a DLL if you wish.  The
easiest to make use of this feature is download and install the "Web
Deployment Project" add-in for VS 2005:

http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx

-cd
Author
9 Nov 2006 10:44 PM
Scooby
Show quote
"Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@mvps.org.nospam>
wrote in message news:Og2mb26AHHA.4808@TK2MSFTNGP03.phx.gbl...
> Scooby wrote:
>> I'm working with VS 2005, but have an example from VS 2003 on how to
>> precompile the code behind into a dll.  This does not work for me,
>> since the VS 2005 now breaks up the auto generated classes into two
>> different files.
>> So, I can not precompile my .cs files.  Any help out there on what
>> the right procedure is for this in VS 2005?
>
> ASP.NET 2.0 completely revamped the build model, going towards both
> extremes from the model of ASP.NET 1.x.  You can get the 1.x behavior by
> installing the "Web Application Project" add-in for VS 2005:
>
> http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx
>
>
> You can also make use of the new deployment capabilities of ASP.NET 2.0
> which permit you to compile the entire website into a DLL if you wish.
> The easiest to make use of this feature is download and install the "Web
> Deployment Project" add-in for VS 2005:
>
> http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx
>
> -cd
>
>

Sweet - thanks.  I'll check it out.

AddThis Social Bookmark Button