|
|
@ -29,6 +29,17 @@ namespace NzbDrone.Core
|
|
|
|
get { return Assembly.GetExecutingAssembly().GetName().Version; }
|
|
|
|
get { return Assembly.GetExecutingAssembly().GetName().Version; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static DateTime BuildDateTime
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var fileLocation = Assembly.GetCallingAssembly().Location;
|
|
|
|
|
|
|
|
return new FileInfo(fileLocation).CreationTime;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static String AppPath
|
|
|
|
public static String AppPath
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get
|
|
|
|
get
|
|
|
@ -53,12 +64,13 @@ namespace NzbDrone.Core
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void InitializeApp()
|
|
|
|
public static void InitializeApp()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BindKernel();
|
|
|
|
BindKernel();
|
|
|
|
|
|
|
|
|
|
|
|
MigrationsHelper.Run(Connection.MainConnectionString, true);
|
|
|
|
MigrationsHelper.Run(Connection.MainConnectionString, true);
|
|
|
|
|
|
|
|
|
|
|
|
LogConfiguration.StartDbLogging();
|
|
|
|
LogConfiguration.StartDbLogging();
|
|
|
|
|
|
|
|
|
|
|
|
_kernel.Get<QualityProvider>().SetupDefaultProfiles();
|
|
|
|
_kernel.Get<QualityProvider>().SetupDefaultProfiles();
|
|
|
|