I'm having an issue with TeamCity, which relates to the fact that it is attempting to clear out the checkout directory, even though I have "Clean all files before build" unchecked. My project is a windows service, so there are complications with this, as when trying to delete the dll's it errors out since they're in use:
Error while applying patch: Failed to delete: F:\PathToService\bin\Release\Library.dll
The most frustrating part is that the dll's aren't even under source control, TeamCity seems to have a mind of its own and decides to try and delete them anyway. TeamCity does give me a few warnings under the checkout directory, so this may be related:
This directory might be cleaned by TeamCity before the build
The following build configurations have the same checkout directory but different VCS settings, this may lead to unnecessary clean checkout on agent:
I do have multiple projects that all have the same checkout directory, however they all use the same VCS root, just with different checkout rules. I do this because I want projects to only be triggered when affected files are changed, not every project building every time any file is checked in, and the projects use shared components.
Is there a way to get around this? I either need to be able to run a build step BEFORE doing the svn checkout so that I can stop the windows service first or need a way to stop it from trying to clear out the checkout directory.