Hi Sir,
Welcome to ASPNET newsgroup.
Regarding on the how to set the VS.NET 2005 project's build configuration
problem, here are some of my understandings:
1. As for the projects in VS.NET IDE, they'll be contained in a Solution, I
assume that your projects are all contains in a central Soluion ,yes? And
all these projects's build configuration are controled by the Solution's
Active Build configuration. We can right click the Solution node in
VS.NET's navigation view and choose properties menu, after that, in the
properties setting panel, locate the "Configuration properties" node in the
left treeview and we can find the "Active Build" configuration for the
whole solution, and when we change this setting (as debug or release) all
the projects contained in the solution will be changed also). Also, we
can do micro adjusting through the Projects build settings listed in the
right ListView( configre each project to have its own build version ...).
And the Build configuration setting in Project's properties dialog is not
used for set build version, (so if we change the version there, it won't
change the project's actual build version). Actually project level build
configuration setting( the dropdownlist) is provided for use to configure
those detailed build settings under each build version. For example, when
we choose "Release" mode in a Class library project, and set the listed
"define DEBUG constant" or "define TRACE constant" , that means when we
choose to build release version , those settings will be applied. However,
whether to build the project as debug or release is still configured in the
solution propertes as I mentioned above.
2. For ASP.NET2.0 web projects, it is a bit different from the 1.x ones ,
because in asp.net 2.0 , all the code files (include page's code
behind...., any source files in App_Code folder) are dynamically compiled.
so by default we have not design-time prebuild assemblies for our ASP.NET
web project. So you'll find we can not change the build configuration in
the solution build setting for ASP.NET project (always displayed as
"Debug"). So if you're copy all the source files to target and let asp.net
dynamically compile them, the <compilation debug="xxx" /> setting just
controls whether the dynamic compiled assemblies are for debug or release
mode. Also, the ASP.NET 2.0 provide precompiled site function (
Precompiled and publishSite menu function in VS.NET 2005), when we use
this to precompile and our website, I think the output assemblies build
version should be conforms to the Solution's build setting as other
projects contained in the same solution....
Please feel free to let me know if you have anything unclear or I haven't
described clearly.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Configuration Manager and Publish Website in VS2005
| thread-index: AcXmL/VOymdpjEytR6287vxxrBLDWA==
| X-WBNR-Posting-Host: 208.237.178.229
| From: "=?Utf-8?B?Tm9OaWNrbmFtZQ==?=" <
[email protected]>
| References: <
[email protected]>
| Subject: RE: Configuration Manager and Publish Website in VS2005
| Date: Thu, 10 Nov 2005 11:50:10 -0800
| Lines: 28
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:357160
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| Regarding my previous post, I have proof now that the debug version is
being
| released. In the output window I get the following when I do a Publish
| Website:
|
|
| ------ Build started: Project:
http://localhost/TestWS/, Configuration:
| Debug .NET ------
| Pre-compiling Web Site
|
| Building directory '/TestWS/App_Code/'.
| Building directory '/TestWS/'.
| Pre-compilation Complete
| ------ Publish started: Project:
http://localhost/TestWS/, Configuration:
| Debug .NET ------
| ========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped
==========
| ========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
|
|
| How the hell do I set the configuration to RELEASE!?!?!?!?!? In the
Config
| Manager I am ONLY given the debug option. (In other words, the little
| drop-down does not contain the normal choices of: Debug, Release, New . .
..,
| Edit . . . like it does for other projects. )
|
| What am I missing?
|
|
|
|