btc-ag / service-idl

Xtext-based Service IDL (Interface Definition Language) and Code Generators for Protobuf, C++, Java and .NET
Eclipse Public License 2.0
8 stars 8 forks source link

Generate version information for .NET assemblies #236

Closed sigiesec closed 5 years ago

sigiesec commented 5 years ago

Information from @claasd (http://jira.e-konzern.de/browse/BOPINFRA-539):

You need to put the following line onto any AssemblyInfo.cs (or SharedAssemblyInfo.cs):

[assembly: AssemblyVersion("major.minor.0.0")]
[assembly: AssemblyFileVersion("major.minor.bugfix.0")]
[assembly: AssemblyInformationalVersion("major.minor.bugfix.0+xx")]

Replace major, minor and bugfix with the actual version numbers. AssemblyVersion should NOT contain the bugfix number (See e.g. http://www.jaylee.org/post/2010/07/18/Version-Properly-using-AssemblyVersion-and-AssemblyFileVersion.aspx)

the last digit will be set automatically to the build number, the +xx in the InformationalVerison will be replaced with the git commit hash: http://wiki.e-konzern.de/display/BOPINFRA/Jenkins