none
Build Server - Specifying more than one solution to build RRS feed

  • Question

  • Specific to building "Visual Studio Build" (and "MSBuild") build steps.  In a build configuration when specifying the "Solution" to build you can build a single solution (ie: "**\SoluitonName.sln") or build all solutions (ie: "**\*.sln").

    Per MSDN article: https://msdn.microsoft.com/en-us/Library/vs/alm/Build/steps/build/visual-studio-build

    Is there any way to specify to build some, but not all, of the solutions? Specifically, a list of solutions to build?  Something like "**\(SolutionName1|SolutionName2).sln"

    Or, better yet, just build any solution which contains a build configuration matching the "Platform" and "Configuration" settings and ignore those that don't.  Currently if a given solution does not contain the specified Platform/Configuration setting it's an error and the build stops.  Rather I'd like it to simply not build any configuration which does not exist.



    Wednesday, April 20, 2016 6:46 PM

Answers

  • Hi H Scott Buckwalter,

    >>"Is there any way to specify to build some, but not all, of the solutions? Specifically, a list of solutions to build?  Something like "**\(SolutionName1|SolutionName2).sln"

    If you want to build a list of solutions, you could batch solutions and use a single project file. For example,

    <ItemGroup>
      <Solution Include="SolutionName1.sln"/>
      <Solution Include="SolutionName2.sln"/>
    </ItemGroup>

    For more information, link below is for your reference.
    http://stackoverflow.com/questions/22131757/build-multiple-visual-studio-solutions-simultaneously

    >>"Or, better yet, just build any solution which contains a build configuration matching the "Platform" and "Configuration" settings and ignore those that don't. "

    As far as I know, MSBuild doesn't provide such complex function.

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, April 21, 2016 6:53 AM