How to append version number to dll file names built?

Is there a way to append the assembly version number (e.g. AssemblyFileVersion) to the file built? For example:

ProjectName_v1.0.0.0.dll instead of ProjectName.dll.

I can see a read-only version in "Project Properties -> Diagnostics -> Properties -> TargetFileName". But could not find a setting to configure it to something like "ProjectName_$(AssemblyFileVersion).dll".

0
2 comments

Hi Guney Ozsan

For this, right-click on a project in Solution Explorer -> Properties -> Assembly. This option is available only for .netCore solutions.

Also, you can change the assembly version manually via editing AssemblyInfo.cs file.

 

 

0

This is quite old. But Visual Studio only provides a fancy UI to edit the AssemblyInfo.cs under the properties folder in the root of he project. You can edit the file yourself in the IDE. It is not too savvy. 

0

Please sign in to leave a comment.