1

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

BlackWasp
  • 4,933
  • 2
  • 30
  • 42

2 Answers2

2

Here is link that may be helpful to you: Determine the version of my Silverlight app

Community
  • 1
  • 1
Klinger
  • 4,900
  • 1
  • 30
  • 35
0

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
  • 26,279
  • 16
  • 79
  • 95