Question

I have a solution the source Control (TFS 2008) with multiple projects. Some of the projects are independent of each other. I dont want to build the complete solution instead sometimes we need to build some of the projects.

I am a total newbie in Team Build. Please help how i can use the

 <SolutionToBuild Include="$(BuildProjectFolderPath)/../../Development/Main/Build-Development.sln">
        <Targets></Targets>
        <Properties></Properties>
    </SolutionToBuild>

to select only some of the projects from the solution.

Kindly give a detailed answer for me as i am absolutely clueless about it.

Thanks

Was it helpful?

Solution

The easiest way to do this is to define a new solution configuration for your existing solution. Just follow these steps:

  1. Open your solution
  2. From the main Visual Studio menu, select Build > Configuration Manager...
  3. Click the "Active solution configuration" drop down and select New...
  4. Enter a name for the new configuration (e.g. "TFS")
  5. Specify the configuration to copy settings from (e.g. "Release")
  6. In the "Build" column, uncheck any projects you don't want to build from your TFS Build
  7. Click Close
  8. Update your configurations to build to use the configuration you just defined

That's it! There's no need to manage multiple solutions and new projects should be included in your new configuration by default. Switching them off is as simple as clearing a checkbox.

OTHER TIPS

Create a second build and a second .sln file to do the build. We have one project with three different builds in it (a "main" build, a "utility" build, and a "code analysis" build).

Manually create a solution that includes all the projects you want to build and check it in. Then create a new build using the wizard. Finally, edit the created .PROJ file (found in $/ProjectName/TeamBuildTypes) and point it to the correct solution.

Alternatively, you could copy and modify your existing .PROJ file, but since you said you're a newbie, I'd stick with the first to begin with.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top