1

i have just started at a new company where i am basically looking after solution builds using TFS 2010. i have added a few new custom activities to increase version numbers in the AssemblyInfo files of the projects and this is working fine. The problem im finding is that all AssemblyInfo.cs files have the AssemblyVersion and AssemblyFileVersion numbers, but only some have an AssemblyInformationVersion number aswell. Can anyone please tell me what causes the AssemblyInformationVersion to appear in some AssemblyInfo.cs files and not others?

Thanks

Vermin
  • 917
  • 2
  • 11
  • 23
  • what kind of projects are you finding this to occur in? If you look at the TFS history of those AssemblyInfo.cs files, were those attributes ever removed at some point? – kenwarner May 26 '11 at 14:41
  • see http://stackoverflow.com/questions/64602/what-are-differences-between-assemblyversion-assemblyfileversion-and-assemblyinf. – k3b May 26 '11 at 14:48

1 Answers1

3

[AssemblyInformationalVersion] is an optional attribute that maps to the ProductVersion property of the application. If it is not present, the value specified in the [AssemblyVersion] attribute is used instead.

As far as I can tell, Visual Studio never adds [AssemblyInformationalVersion] attributes to the AssemblyInfo.cs files it generates. The developers might have added those if they wanted the product version to be different from the assembly version in some of your projects.

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479