Compiling your code - Express vs. VS2005

Hopefully someone can shed some light on a bit of confusion. The Express Edition FAQ says that you cannot compile a completed .NET website into .dll(s) (either to a single DLL like .NET 1.1 or multiple "per page" DLLs as I've seen in 2.0.) However while recently attending a MSDN course the instructor said that both the Web Express and full VS2005 will allow for compiling the code upon deployment.

Which is right? Is compiling upong deployment (so I don't have to share my code) a feature that currently exists in Express? Or will it appear in the final version?

Thanks for your assistance.

Bill

[613 byte] By [Billo355] at [2007-12-17]
# 1
Visual Web Developer Express does not have any IDE integration for the compilation feature of ASP.NET 2.0. To do so from within the IDE you need at least Visual Studio 2005 Standard.

That said, you can compile your application using the command line using the precompile tool that ships in the .NET Framework. Hope this helps.

Omar (msft)

OmarKhan at 2007-10-6 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 2

Blah! What's up with that? Why do they feel like they have to add some sort of confusion to us developers? *sigh*

Here's what I do: Open notepad, insert:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v /MySite -p "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\MySite" -u -f C:\Websites\MySite
pause

Save as "Build.bat"

That'll do it. You should run the compiler with /? to see what all it can do, but the above script basically compiles my application, and outputs it to C:\Websites\MySite. The -f switch tells it that the application is updateble, and the -u switch tells it to overrite everything that was in C:\Websites\MySite.

Thought I'd post this for those devs who don't know what to do... I'm sure this question will be raised a LOT. So the above command works nicely. Again, you should run the compiler with the help switch on, just to familiarize yourself with it.

// joshua m. (mcp)

twisterjosh at 2007-10-6 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...