Say I have a solution containing the following projects in a folder-tree (this is C# but could in principle be anything):
MySolution
- SharedFolderA
- File1.cs
- File2.cs
- SharedProject.csproj
- SharedFolderB
- File1.cs
- File2.cs
- SharedProject.csproj
- Hosts
- Host1
- Program.cs
- Host1.csproj
- Host2
- Program.cs
- Host2.csproj
Now in TeamCity I wish to make building of each host into seperate builds. So I will have a project called MySolution containing the following builds:
- Build Host1
- Build Host2
Now comes the question: For each build I want to setup a VCS trigger rule, that triggers the build if the commits contain changes to either
- files in the root folder
- files in one or more of the shared folders
- files in the specific host folder - but not the other host folder
Example: Build of Host2 should trigger if any files have been changed in any of the following folders:
- MySolution
- SharedFolderA
- SharedFolderB
- Hosts/Host2
How should I setup the File wildcards?


