aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/ApplicationHost.cs')
-rw-r--r--MediaBrowser.Server.Startup.Common/ApplicationHost.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
index d8358909e..c4a3562ea 100644
--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
@@ -253,6 +253,19 @@ namespace MediaBrowser.Server.Startup.Common
NativeApp = nativeApp;
}
+ private Version _version;
+ /// <summary>
+ /// Gets the current application version
+ /// </summary>
+ /// <value>The application version.</value>
+ public override Version ApplicationVersion
+ {
+ get
+ {
+ return _version ?? (_version = NativeApp.GetType().Assembly.GetName().Version);
+ }
+ }
+
public override bool IsRunningAsService
{
get { return NativeApp.IsRunningAsService; }
@@ -327,6 +340,7 @@ namespace MediaBrowser.Server.Startup.Common
new PlaylistImages(ServerConfigurationManager).Run();
new RenameXbmcOptions(ServerConfigurationManager).Run();
new RenameXmlOptions(ServerConfigurationManager).Run();
+ new DeprecatePlugins(ApplicationPaths).Run();
}
/// <summary>