Creation of websites artifacts in Teamcity from SVN repository

I'm using TeamCity Professional Version 4.5.4 (build 9071) at work to build my web application project.
My solution file consists of several projects (e.g. web application, unit tests, some web service project, etc).
I want to create an artifact consisting of my web application (the others can be ignore for now), so I have the following configuration on teamcity (deviating from the default values):

  • General Settings
    • Artifact Paths: trunk\project-src\intranet-webapp***=>WebAppArtifact
  • Version control settings (SVN)
    • Automatically checkout on agent
  • Runner (sln2008)
    • Targets: Clean Publish

It builds my artifacts just fine, but there is a big problem: The artifact keeps the ".svn" folders and the .cs (C# code-behind) files in it.
I expected that with the "Publish" target in my runner, I would have exactly what the "Publish project" menu in VS 2008 does: copies the compiled project to some location without the code-behind files and no .svn folders.

Could anyone tell me what configuration am I missing?

ps: On a related note: is it possible to have the artifacts to be zipped by teamcity?

1 comment
Comment actions Permalink


TeamCity publishes artifacts based on the specified patterns and  the files residing on disk. You can change the artifact patterns to include only  the necessary files or you can prepare artifacts in your build script before  publishing.

To exclude .svn folder you can use server checkout.
>ps: On a related note: is it possible to have the artifacts to be zipped by teamcity?
It's not currently possible but you can watch/vote for this feature in our issue tracker.
You might also be interested in the feature to support exclude patterns in artifact specificaiton.


Please sign in to leave a comment.