src/AnvilPacker/Container/Pack.cs
//TODO: find a better place for this
/// <summary> Returns the current version of the assembly. </summary>
Returns the current version of the assembly.
Returns the current version of the assembly .
public static string GetInfoVersion()
        {
            var asm = typeof(WorldPacker).Assembly;
            var attrib = asm.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
            return attrib?.InformationalVersion ?? asm.GetName().Version!.ToString();
        }
public static string GetInfoVersion ( ) { var asm = typeof ( WorldPacker ) . Assembly ; var attrib = asm . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ; return attrib ? . InformationalVersion ?? asm . GetName ( ) . Version ! . ToString ( ) ; }
Returns the current version of the assembly.
Returns the current version of the assembly .