I am having a problem using TeamCity with MSBuild. I have a .NET solution with 30+ projects. Only two of the projects are "web" projects.
When I use the Visual Studio command line prompt to run my MSBuild script (both locally and even on my build server itself), the output is good, fine and dandy. All my build files are there. Everyone is happy. No errors.
When I use TeamCity to compile the exact same script (triggered by VCS SVN checkins), it gives me an error, like this:
10:43:03]: myWebProject1\ myWebProject 1 .csproj (3s)
[10:43:07]: [ myWebProject1\ myWebProject1 .csproj] _CopyWebApplicationLegacy
[10:43:07]: [_CopyWebApplicationLegacy] Copy
[10:43:07]: [Copy] C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets(131, 5): error MSB3021: Unable to copy file "obj\Release\myWebProject1.dll" to "C:\MSBUILDRELEASE\myWebProject1\\bin\myWebProject1.dll". Could not find file 'obj\Release\myWebProject1.dll'.
Why does it work from the command line and not through TeamCity? This is a major show stopper for my dev team. We are excited to get automated builds up and running, but this bothers us.
Why would TeamCity compile this differently? What gives?