<p>What is the best method for displaying major/minor versions in a C# console application?</p>

<p>The <code>System.Windows.Forms</code> namespace includes a <code>ProductVersion</code> class that can be used to display the name/version information set via the Visual Studio project properties (Assembly Information). As such, here is my current mechanism:</p>

<pre class="lang-cs prettyprint-override"><code>Console.WriteLine("{0} ({1})", 
   System.Windows.Forms.Application.ProductName, 
   System.Windows.Forms.Application.ProductVersion);
</code></pre>

<p>Why is this part of <code>Forms</code>? Is this appropriate for a Console application?</p>

```
```
Assembly.GetExecutingAssembly().GetName().Version
```
```
Also, you can still use the class, you just have to reference the containing assembly.  It's no biggie.