Using Windows Forms you could obtain assembly info (like company name, product version, etc.) with Application.CompanyName, Application.ProductVersion, etc.

WPF applications can't reference system.windows.forms.dll, so how do we get at the assembly info

The "Programming with Assemblies" help file describes how to set assembly info, but not how to retrieve it at run-time.

Re: Windows Presentation Foundation (WPF) Get assembly info without System.Windows.Forms

Drew Marsh

Just do:

Assembly exeAssembly = Assembly.GetExecutingAssembly();

From there you can get at the properties you desire by calling GetCustomAttributes and passing each of the various attributes you're interested in retrieving (i.e. AssemblyCompanyAttribute).