Release configuration missing

Hi,

I am trying to create a Web Setup project in VS2005 Beta2 to create an msi file with the Release configuration of my web site. I am unable to get the Release configuration to show up. (The Show advanced build configurations checkbox is checked in Tools->Options.)

On creating the new web site, only Debug is present in the Build->Configuration Manager menu item. First I added a setup project to the solution using the Setup Wizard, packaging a Debug configuration. At that point, Release shows up in the Configuration Manager. However, when I add a Web Setup Project to the solution and try to point it at the Release configuration, Release is not available in the Add Project Output Group dialog box.

What am I missing?

Thanks.

[747 byte] By [dhurwitz] at [2008-2-2]
# 1
Hi,

Apologies for the delayed response on this. Are you still experiencing trouble here?

I am somewhat confused here - within the IDE, web projects only support debug configuration. As you probably already know, there is no actual compile that you do with asp.net projects. If the files are copied to the right place, you should be OK without having to worry about release or debug configuration.

Does this help or make any sense at all?

Faisal Mohamood
MSBuild Team

FaisalMohamood at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 2
Faisal,

I am little confuse now. I see the same problem as the first post. I am using VS2005 Beta 2 with Enterprise Lib 2.0.

In my configuration file I have Database Connection String etc for Development machine and Prodcution machine.

Based on the Build (Debug or Release) I am selecting the configuration. As a result we need different builds.

Based on your answer, Web.config or for that reason, any config file will have only 1 configuration setting else, how at the run time we project will know what configuration to use?

If you can answer this it will be great. Correct me if I am wrong some where?

TejasShah at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 3
Web projects don't really support multiple configurations, so you can't do what you want to do here using project configurations. If you go to Configuration Manager, you'll see that for both Debug and Release solution configurations, your web project shows the Debug configuration, and you can't add new ones and/or rename it.

We support building Debug/Release for web projects from the command line, but even then the set of settings controlled by the configuration name is very limited. There may be another way for you to change your database connection string, but I don't really know enough about web projects to help you here.

thanks,
Lukasz

LukaszGwozdz at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 4
Just to add one thing to Lukasz's comment, if you need further assistance with web projects you can visit the forums for asp.net at http://www.asp.net/. They should be able to help you out there.

Neil

NeilEnnsMSFT at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified