views:

80

answers:

2

In Winforms I would use Application.ProductVersion to get the version of my code. Is there an equivalent for Silverlight 2.0?

+1  A: 

Please take a look at http://silverlight.net/forums/t/23321.aspx

Klinger
A: 

This can only be done by reflection. The code is

using System.Reflection;
Version v = new Version(Assembly.GetExecutingAssembly().FullName.Split(',')[1].Split('=')[1]);

Clunky, but it works.

Factor Mystic