Major and Minor version number ignored in AssemblyInfo.cs, uses TFS build script version number?

Oct 22, 2014 at 7:03 PM
I'm confused. I have the following version checked into my c# project
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]

When I do a build, this results in

File version 1.0.14295.1
Product version 1.0.14295.1

I was expecting

File version 2.1.14295.1
Product version 2.1.14295.1

It appears TFSVersioning is using the TFS build script values, and not the checked in AssemblyVersion version, which results in incorrect Major and Minor values.

What am I missing here?
Oct 28, 2014 at 5:24 PM
Anyone?