Publish Version vs Assembly (etc) Versions

前端 未结 1 1976
暗喜
暗喜 2021-02-05 11:58

I\'ve read threads here about the Assembly, File and Assembly Informational versions.

I\'d like to know where the Publish version fits in. The result of...



        
相关标签:
1条回答
  • 2021-02-05 12:28

    I think the different versions serve different purpose.

    1) AssemblyVersion is for CLR to load and bind assemblies. This is useful for developers but not end-users.

    2) FileVersion or AssemblyFileVersion is what Windows displayed as the executable's file version. It is just the same Win32 application's version. And this version is used by the system and installers to determine which version is newer.

    3) PublishVersion is used to version the deployment package. It is OK to have the same binaries published twice with different publish versions.

    4) The version you show to your end-users is yet another version. Call it product version or something else. It may different from any of the above, for e.g. business purpose. See AssemblyInformationalVersionAttribute if you want to use some .NET built-in support.

    For simple cases, you may use the FileVersion as the product version. But publish version is not a good idea to me.

    0 讨论(0)
提交回复
热议问题