aspnet_compile - debug or release?

G

Guest

Hi;

In my ASP.NET solution I have the website and I have a project that is a
library with most of the code. The dll it builds gets copied over in to the
portal bin directory when I do a build in VS 2005.

When aspnet_compile does a compile, does it just grab whatever dll is there
or does it build the release version and copy it over if necessary?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
M

Mark Fitzpatrick

It should do whatever the configuration manager for the solution says.
Usually though, if your solution is set to debug build, I believe it will
automatically set all projects to debug build. You can change this if you
want by selecting the Configuration Manager from the contect menu of the
solution and set how the various projects should be built in the various
scenarios (for example: main project could be built as a debug when the
configuration is set to debug, but the ancillary project could be set to
release).
 
S

Steven Cheng[MSFT]

Thanks for Mark's input.

Hi Dave,

For normal .NET application, the build/compile version(debug or release) is
going with the solution's configuration manager setting. However, this will
differ for ASP.NET 2.0 Website project since ASP.NET 2.0 web application
use dynamic compilation completely and VS 2005 won't generate assembly
unless you explicitly precompile it. Therefore, ASP.NET 2.0 web site
project's debug/release build is depend on the <compilation debug="xxxx" />
setting in web.config file.

The following two web articles have well descibed this:

#Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/Blogs/scott/archive/2005/11/15/2464.aspx

#Precompilation In ASP.NET 2.0
http://www.odetocode.com/Articles/417.aspx

Also, if you use the Web Deployment Project add-on, it will make your
precompilation easily choose debug/release for the precompiled site.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Top