one project, multiple sln files

I've inherited a project I want TeamCity to build. The way it is structured is as follows:

MainDirectory
Lib1 {has it's own solution file}
Lib2 {has it's own solution file}
Lib3 {has it's own solution file}
CompanyNameDirectory
WebDirectory
WebSite1 {has it's own solution file that references Lib1 and Lib2}
WebSite2 {has it's own solution file that references Lib2 and Lib3}

I'd like this all to be one TeamCity Project that all gets build on changes to any of the solutions (lib1,lib2,lib3,website1,website2).

What is the best way to do this?

2 comments

Hello,

The best way to do it is to create 5 build configurations with artifact
dependencies.
Please have a look at
http://www.jetbrains.net/confluence/display/TCD3/ConfiguringArtifactDependencies

and this describes the way how to start build of confinguration when it's
dependent library
is built
http://www.jetbrains.net/confluence/display/TCD3/Dependencies

Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I've inherited a project I want TeamCity to build. The way it is
structured is as follows:

MainDirectory
Lib1 {has it's own solution file}
Lib2 {has it's own solution file}
Lib3 {has it's own solution file}
CompanyNameDirectory
WebDirectory
WebSite1 {has it's own solution file that references Lib1 and
Lib2}
WebSite2 {has it's own solution file that references Lib2 and
Lib3}
I'd like this all to be one TeamCity Project that all gets build on
changes to any of the solutions (lib1,lib2,lib3,website1,website2).

What is the best way to do this?



0

Peter,

Currently, all the supported runners in TeamCity support only single build script (.sln for the case). We plan to address "composite" build configurations that will allow to perform several builds as part of the main build. Hopefully, the next major of TeamCity (will be released this year) will has some support for this.

For the time being you can create several build configurations and configure artifact dependencies between them as Eugene noted, or run a custom build script from TeamCity that will execute all the builds you need (this way you may need additional effort to report test results properly in TeamCity, if you need that).

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.