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.
Syncfusion Feedback

How to retrieve version info from assembly

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 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

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.

Warning Icon 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.Close Icon

;