Easy TeamCity integration is one of the major goals for the FAKE build system.
“TeamCity is a Java-based build management and continuous integration server from JetBrains, creators of IntelliJ IDEA and ReSharper.”
In this article I will show you how you can set up a FAKE build script in TeamCity. We will use the CalculatorSample which you can download from the FAKE Download page. If you want to know how this build script works read the “Getting started with FAKE”-tutorial.
Installing TeamCity
You can download the free professional edition of TeamCity from http://www.jetbrains.com/teamcity/. After the installation process (further instructions) you should be ready to configure your first build.
Creating a FAKE Project
Now create a new project and add a build configuration:
Attach a VCS root
The next step is to attach a VCS root. For this sample we will use the official FAKE repository at https://github.com/forki/FAKE/.
Choosing a build runner
We can use the Command Line build runner to start the completeBuild.fsx build script via Fake.exe.
If you want you could also add a build trigger to your build script:
Running the build
Now if everything is configured correctly, you can run your build and the output should look like:
You can also inspect the NUnit and FxCop results:
Tags: Code Quality, Continuous Integration, F#, F-sharp Make, Fake, FxCop, nunit, TeamCity



[...] If you want to set up “FAKE – F# Make” build configurations in TeamCity please read “Integrating a "FAKE – F# Make" build script into TeamCity”. [...]
Pingback by Integrating a “FAKE – F# Make” build script into CruiseControl.NET » Rash thoughts about .NET, C#, F# and Dynamics NAV. — Wednesday, 14. October 2009 um 10:39 Uhr