We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to retrieve version info from assembly

Hello, I want to display the version and other information of my app in an about dialog. The question now is: How to retrieve this information, contained in the "AssemblyInfo.cs", from inside the running app. Thanks in advance, Holger

1 Reply

HP Holger Persch July 17, 2003 05:29 AM UTC

I solved it by myself. I found two ways: 1) string strVersion = Application.ProductVersion; 2) Assembly assembly = Assembly.GetCallingAssembly(); string strVersion = assembly.GetName().Version.ToString(); BTW, the Application class offers also access to additional information like ProductName and so on. Regards, Holger

Live Chat Icon For mobile
Up arrow icon