I'm using TeamCity 8.1.1. Basically, I have an umbraco site (version 7.x.x if anyone thinks that might be relevant). My goal is to set up automated deployment to our dev server. I want TeamCity to watch our git repo, grab changes, build, and use MSDeploy to deploy to the dev site. This is working great on our local setup and for many other sites. This is not working great on our client's server for one particular site. Both TeamCity installs are the same version. Both of the build configurations are basically the same. Both are attempting to build and deploy the same set of code from the same repo.
Here is the error I get when we try to run the build configuration:
[10:02:22]Step 1/1: Build Site (MSBuild) (29s)
[10:02:36][Step 1/1] src\Umbraco\Umbraco.csproj.teamcity: Build target: Build (14s)
[10:02:50][ParameterizeTransformXml] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(2352, 5): Could not open Source file: Could not find a part of the path 'C:\BuildAgent\work\c1d89add5b38ab48\src\Umbraco\umbraco\Xslt\Web.config;\umbraco\Xslt\Web.config'.
[10:02:51][Step 1/1] Step Build Site (MSBuild) failed
Here are the details of the build configuration that is giving me grief:
VCS root: <my git repo>
Clean build: false, but I get the same problem with true
Build Step: MSBuild
Build file path: my .csproj
MSBuild version: Microsoft .NET Framework 4.5
MSBuild Tools Version: 4.0
Run platform: x86
Command line parameters:
- /p:AuthType=NTML /p:UserName=
The .NET project's publish settings is set up to deploy everything in the project folder. I have web.config transforms defined on the sites root web.config where I modify connectionstrings. No other web.config files have transforms defined. No other web.configs are causing any trouble. It is only the /umbrac/xslt/web.config file that is causing trouble. This file IS NOT part of the solution, but it is in the git repo. I suspect that if I added the /umbraco directory to the solution, my problem might disappear, but i want to avoid adding that directory to the solution.
This is another guy who was having my exact problem and appears to have solved it. His method is not idea because I'd have to add the directory to the solution. http://www.cpodesign.com/blog/could-not-open-source-file-could-not-find-a-part-of-the-path-webconfig-umbraco-xslt-webconfig/
Does anyone have any insight? I'm really curious why this issue happens on one TeamCity install but not another. I would feel better if the problem was consistent and reproduceable on other TeamCity instances.