Building 1 Soln with multiple web projects in Team Build  
Author Message
MNDANG





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Hi,
I have a solution with mutiple projects.
There are 3 web projects in the solution and a few other library projects. WHen using a web deployment project (wdproj) for the main website, how come Team Build skips compiling of the 2 other web projects
I need these two web projects within my solution. What can be done to oversome this I have created two new configurations DEV & QA within configuration managere and set those release types. I am only building in DEV & QA modes not Debug & Release. My DEV & QA modes are essentially release modes.

Skipping because the "$(AspNetConfiguration)" configuration is not supported for this web project. You can use the AspNetConfiguration property to override the configuration used for building web projects, by adding /p:AspNetConfiguration=<value> to the command line. Currently web projects only support Debug and Release configurations.

Help

THanks

mike



Visual Studio Team System34  
 
 
Aaron Hallberg





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Mike - I'm not sure I understand your issue... It sounds like you are using the Configuration Manager and have created a configuration that fails to build your web projects. Is this correct I would recommend making sure that for your DEV and QA configurations the project level configurations for all of your web projects are either Debug or Release and the Build checkbox is checked.

-Aaron



 
 
MNDANG





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Hi Aaron,
Yes, I have created two new configurations DEV & QA. In the Configuration Manager I have those two web projects Build checkbox checked, but under the Configuration label it is always Debug. Can't change that setting. While my main web project is unchecked (as per a blog i saw to setup web deployment projects)
The entire building of the soln with the web deployment project works fine. It builds all my libraries and main web project but not my 2 other web projects in the soln.
Question is why doesn't the web deployment project build those two other web projects in the soln Is this by design Should I create a web deployment project for each web project in a soln
Many thanks,
Mike

 
 
Aaron Hallberg





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Mike,

A couple more questions:

(1) Which configuration is Team Build building (DEV, QA, or something else )

(2) What files are specified in your Team Build (in the SolutionToBuild item group)

-Aaron



 
 
MNDANG





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Aaron,
1) It's Building both DEV & QA.
2) The SoluntionToBuild itemgroup has only the "xxx.sln" file in it.

<SolutionToBuild Include="$(SolutionRoot)\Mainline\xxx.sln" />

help


 
 
Aaron Hallberg





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Hmm - I'm not sure what would be going on here. If you are building the DEV and QA configurations, Team Build should be building all of the projects selected to be built within that configuration... I have not seen any issues with this functionality - if you can provide any more information on your situation we can try to help, but I don't really have any bright ideas as to what might be happening.

-Aaron



 
 
Joe Buys





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

I think I am seeing a similar problem to what he describes...

I have created two additional configurations for my solution, so my 4 total configurations are:
-Debug
-Release
-TeamBuild-Debug
-TeamBuild-Release

I do this because I have some dotfuscated projects for when we actually release (and I have yet to be able to figure out why the dotfuscation doesn't work in TeamBuild). Anyway, when I create a 'New Team Build Type' using the creation wizard, I get to the configurations page, and it only gives me the options for Debug and Release for that solution. I can't choose any of my custom configurations.

Any ideas on this Seems like this is the same thing Mike was talking about

Cheers,
~Joe


 
 
Swaha Miller





PostPosted: Team Foundation Server - Build Automation, Building 1 Soln with multiple web projects in Team Build Top

Hi Joe,

Your custom created configurations are not going to show up on the build type creation Wizard, that only shows "debug" and "release", unfortunately. You will have to check-out the TfsBuild.proj file for your build type, change the FlavorToBuild, and check in the file.

Hope that helps,

Swaha