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.
Unfortunately, activation email could not send to your email. Please try again.

How to retrieve version info from assembly

Thread ID:

Created:

Updated:

Platform:

Replies:

5739 Jul 16,2003 04:29 AM Jul 17,2003 01:29 AM Windows Forms 1
loading
Tags: FAQ
Holger Persch
Asked On July 16, 2003 04:29 AM

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

Holger Persch
Replied On July 17, 2003 01:29 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;