Setting AssemblyCopyright, AssemblyCompany in AssemblyInfo during build

Viewed 1133

We are migrating to a new TFS 2015 server from TFS 2010. I have most everything working, however I haven't found an easy way to set information in the AssemblyInfo.cs file like was being done in 2010.

We need to force the AssemblyCompany, AssemblyCopyright, AssemblyVersion, and AssemblyFileVersion attributes so we don't have to rely on individual developers to get them right. While a shared AssemblyInfo file would work, it would require manually adding it to each project, which still puts the responsibility in the hands of the developer creating the assembly. Not ideal.

Our 2010 xaml build definition had a "Build Versioning" section where these values could be set as shown below.

enter image description here

I can find no such thing in the vNext build definitions. I am suspecting that perhaps there was some sort of addin which gave this capability on the old system. Unfortunately I didn't set that system up, and the person who did no longer works here, so I don't know for sure and have no idea how he did it if it was an addin.

I've found some PowerShell scripts which will allow setting the version numbers, but so far I haven't come across any that do AssemblyCompany or AssemblyCopyright.

Before I spend the time to write something from scratch, does anyone else know how to accomplish this?

3 Answers
Related