BlackWasp
BlackWasp

Reputation: 4971

How do I get the product version for my Silverlight program?

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

Upvotes: 1

Views: 438

Answers (2)

Klinger
Klinger

Reputation: 4970

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

Upvotes: 2

Factor Mystic
Factor Mystic

Reputation: 26760

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.

Upvotes: 0

Related Questions