GlobalAssemblyInfo Support

According to the documents TeamCity  v8.1.x supports a GlobalAssemblyInfo.cs file now with the Assembly version patching feature however even though I have such a file in my solution and each of my projects have a link to this file the version information is not being replaced. Is there are certain location where TC is looking for this file or does it just scan the entire solution tree?

4 comments
Comment actions Permalink

Hi Todd,

TeamCity searches for GlobalAssemblyInfo.cs in checkout directory with scan deep 7 levels. teamcity.assemblyInfoPatcher.scanDepth configuration parameters allows to override default scan deep. Could you please attach builds log, which errors do you see? Please have a look at this issue - http://youtrack.jetbrains.com/issue/TW-37736, isn't it your case?

0
Comment actions Permalink

I looked at the issue you referenced and while this is not my issue I did take a look at the screenshot incuded in that issue and noticed there is a GlobalAssembly checkbox -- I do not have one of these in my UI althought I am on build 8.1.2 of Team City. I am going to upgrade to 8.1.4 and hopefully I will get this checkbox. Otherwise do you know why I might not have this checkbox in my UI?

0
Comment actions Permalink

GlobalAssemblyInfo files are supported since TeamCity 8.1.3, so please upgrade to the latest version.

0
Comment actions Permalink

Upgraded and this fixed the issue. I do see that the build number being added is lets say something like 35, but the number that is part of the artifact path is a much higher number in my configuration. What does that number in the artifact represent? It is this number that I want for my build number...

0

Please sign in to leave a comment.