C#C
C#11mo ago
stigzler

Where does the "Version" value come from in a dll's properties in Visual Studio?

Currently moving over to .net 8 from Framework and getting used to the VS idiosyncracies
I've managed to figure how to alter the FileVersion, PackageVersion and AssemblyVersion for a dll build (what, no VersionVersion?)

However, I need to be able to quickly see the version of this built dll when I use it in other projects. I import the dll and it's properties look like the attached. However, I've set it to version 1.1.0.0 in my original dll build.

Where the hell are "Specific Version" and "Version" coming from and why aren't they showing as "1.1.0.0" (they do on the dll file itself - see attached)
Here's what I tried in the original dlls project file:
  <PropertyGroup>
    <AssemblyVersion>1.1.0.0</AssemblyVersion>
    <FileVersion>1.1.0.0</FileVersion>
    <Version>1.1.0.0</Version>
    <VersionPrefix>1.1.0.0</VersionPrefix>
  </PropertyGroup>
image.png
image.png
Was this page helpful?