troubleshooting Question

Set the FileVersion of a website dll

Avatar of resourcesys
resourcesys asked on
1 Comment1 Solution177 ViewsLast Modified:

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 i cannot use it as it gives an error message because the size of the version is too small (for setting to the original would have to be Is there a way to change the default file version to something else e.g

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.



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros