Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Type type = this.GetType();
Assembly assembly = Assembly.GetAssembly(type);
string vs = Application.ProductVersion;
or using FileVersionInfo or System.Version class
[code]
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo("my.dll");
Console.WriteLine("File: " + fvi.FileDescription + '\n' +"Version: " + fvi.FileVersion;
Assembly myAssembly = Assembly.GetExecutingAssembly();
AssemblyName myAssemblyName = myAssembly.GetName();
Version myVersion = myAssemblyName.Version();
Console.WriteLine("{0}.{1}.{2}.{3}", myVersion.Major.ToString(), myVersion.Minor.ToString(), myVersion.Build.ToString(), myVersion.Revision.ToString());