Avatar of resourcesys
resourcesys

asked on 

Set the FileVersion of a website dll

Hello,

We have a web site project that is part of a solution (1 website [not a web application], many class libraries) in VS2015 and when we make changes it is built through a CI process we run using TeamCity.

This process alters the AssemblyInfo file to set the correct file version and when the site is built the class library .dll files have the correct file version but the website .dll files do not.

Is there any way to achieve this in a MSBuild script? Currently we use the AspNetCompiler option to build the site.

I have also tried a command line tool called StampVer but as the default file version is 0.0.0.0 i cannot use it as it gives an error message because the size of the version is too small (for setting to 11.11.11.11 the original would have to be 00.00.00.00). Is there a way to change the default file version to something else e.g 11.22.33.44?

Also, the project has to be a website because we need the ability to deploy individual code behind files when necessary.

Any help is much appreciated.

Thanks.

resourcesys.
ASP.NET

Avatar of undefined
Last Comment
resourcesys

8/22/2022 - Mon