Click or drag to resize

AssemblyInfoVersion Method

Gives assembly version

Namespace:  SIC
Assembly:  SIC (in SIC.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string Version(
	this Assembly pAssembly
)

Parameters

pAssembly
Type: System.ReflectionAssembly
An assembly

Return Value

Type: String
Version of assembly

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Assembly. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Syntax of Version on an example
[assembly: AssemblyVersion("17.7.6.1")]
[assembly: AssemblyFileVersion("17.7.6.1214")]

Year (Major) 17
Month (Minor) 7
Day (Build) 6
Revision (day counter of compilation) 1
File Revision (clear: total minutes) 1214

Method Version gives back: 17.7.6.1(1214)
Examples
string Version = System.Reflection.Assembly.GetExecutingAssembly().Version();
See Also