AssemblyVersion,AssemblyFileVersion和AssemblyInformationalVersion之间有什么区别?

问题:

There are three assembly version attributes. 有三个程序集版本属性。 What are differences? 有什么区别? Is it ok if I use AssemblyVersion and ignore the rest? 如果我使用AssemblyVersion并忽略其余部分,这样可以吗?


MSDN says: MSDN说:

  • AssemblyVersion : AssemblyVersion :

    Specifies the version of the assembly being attributed. 指定要归属的程序集的版本。

  • AssemblyFileVersion : AssemblyFileVersion :

    Instructs a compiler to use a specific version number for the Win32 file version resource. 指示编译器使用Win32文件版本资源的特定版本号。 The Win32 file version is not required to be the same as the assembly's version number. Win32文件版本不需要与程序集的版本号相同。

  • AssemblyInformationalVersion : AssemblyInformationalVersion :

    Defines additional version information for an assembly manifest. 定义程序集清单的其他版本信息。


This is a follow-up to What are the best practices for using Assembly Attributes? 这是使用装配属性的最佳做法的后续行动?


解决方案:

参考一: https://stackoom.com/question/Gny/AssemblyVersion-AssemblyFileVersion和AssemblyInformationalVersion之间有什么区别
参考二: https://oldbug.net/q/Gny/What-are-differences-between-AssemblyVersion-AssemblyFileVersion-and-AssemblyInformationalVersion

推荐:https://www.xmtpost.com/

猜你喜欢

转载自www.cnblogs.com/1156184981651a/p/13193130.html