From 7e077ed913a29bed23e2d92c1201fdc4d3495bc2 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 19 Aug 2012 17:29:15 -0400 Subject: [PATCH] Added ApplicationVersion to BaseKernel --- MediaBrowser.Common/Kernel/BaseKernel.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index 5b2f97ced..22ecc3315 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -252,5 +252,16 @@ namespace MediaBrowser.Common.Kernel Logger.LoggerInstance.Dispose(); } } + + /// + /// Gets the current application version + /// + public Version ApplicationVersion + { + get + { + return GetType().Assembly.GetName().Version; + } + } } }