Align nuget package version and dll versions #109012
Answered
by
huoyaoyuan
ReneLombard
asked this question in
General
-
Is it possible to align the dll version and nuget packages on the same version, forexample, if you download the System.Text.Json nuget version: 8.0.5 |
Beta Was this translation helpful? Give feedback.
Answered by
huoyaoyuan
Oct 18, 2024
Replies: 1 comment 3 replies
-
AssemblyFileVersion is NOT assembly version. They are different concepts. Different version numbers follows different requirements. For example, some component need to be unique numeric value for each nightly build. Some allows strings while some allows numbers only. A same looking string can't satisfy all the different requirements. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current situation is already the best effort. The version numbers are used by different subsystems with conflicting rules.
To get less confusing:
Assembly version is a specialized terminology. It's used by the CLR loader and has strong compatibility requirement.
File Version is
[AssemblyFileVersion]
and Product Version is[AssemblyInformationalVersion]
. These two attributes are direct mapping of Win32 resource. The former is numeric and the latter is string.[AssemblyInformationalVersion]
a.k.a. Product Versio…