Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does TeamCity add "csproj.teamcity.patch" to web app package files?

I suspect there's probably an easy answer to this I'm just not seeing, but whenever I run a TeamCity build with either MSBuild or the Visual Studio solution runner against a .csproj and target "Package", the build artifacts always include the "csproj.teamcity.patch" string after the project name:

alt text

Running the same process via command line doesn't include these. The problem it's causing me is that my build script has a target which looks for "Web.deploy.cmd" after the package task runs and obviously it's not finding it when files are named this way. I'm reticent to change the command in the build script to include the TeamCity string as it will play havoc with running it from outside the build servers.

Can anyone tell me why this is happening and how you'd work around it when you need to be able to refer to the artifacts by name?

like image 399
Troy Hunt Avatar asked Nov 18 '10 04:11

Troy Hunt


1 Answers

You may set 'teamcity.msbuild.generateWrappingScript' configuration parameter with value 'false' to make TeamCity avoid generating wrapping script.

TeamCity MSBuild/Solution build runners used to generate wrapping scripts to add TeamCity-provided tasks.

like image 150
Eugene Petrenko Avatar answered Sep 28 '22 07:09

Eugene Petrenko