public bool NeedSchemaChanges(Microsoft.TeamFoundation.Warehouse.WarehouseDataAccessComponent dac)
        {
            var storedProperty = dac.GetProperty(null, VersionPropertyBagKey);

            Version installedVersion;

            if (Version.TryParse(storedProperty, out installedVersion))
            {
                var assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;

                var compare = installedVersion.CompareTo(assemblyVersion);

                if (compare > 0) throw new WarehouseException(string.Format("Não é possível atualizar a versão do Adapter. Ultima versão aplicada na base: {0} -> Versão do Assembly: {1}", installedVersion, assemblyVersion));
                if (compare == 0) return false;
                if (compare < 0) return true;
            }

            return true;
        }
 private ProjectProperty GetDisableFastUpToDateCheck(Microsoft.Build.Evaluation.Project p)
 {
     return p.GetProperty(DisableFastUpToDateCheckPropertyName);
 }
 private ProjectProperty GetLinkedProperty(Microsoft.Build.Evaluation.Project p)
 {
     return p.GetProperty(LinkedPropertyName);
 }
 public static String GetProperty(Microsoft.Build.Evaluation.Project project, String name)
 {
     ProjectProperty property = project.GetProperty(name);
     if (property != null)
     {
         return property.UnevaluatedValue;
     }
     return String.Empty;
 }