Is it possible for the silverlight client to get any of the assembly version information from the xap file it's downloaded.
Essentially, I need a way for the client to confirm that's in fact running the latest bits, if there's a better way I'm open to suggestions.
If you are trying to check while the application is running you could bring in System.Reflection and do something like this:
Assembly assembly = Assembly.GetExecutingAssembly();
if (assembly.FullName != null)
{
string versionPart = assembly.FullName.Split(',')[1];
string version = versionPart.Split('=')[1];
// check version against something
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With