public bool NeedsUpgrade(Version installationVersion)
{
if (installationVersion >= VersionInfo.FrameworkVersion)
{
return false;
}
if (installationVersion == null)
{
//This is the base version. We need to hardcode this
//because Subtext 1.0 didn't write the assembly version
//into the database.
installationVersion = new Version(1, 0, 0, 0);
}
string[] scripts = ListInstallationScripts(installationVersion, VersionInfo.FrameworkVersion);
return scripts.Length > 0;
}