public static bool ToolsAvailable(EnvDTE.Project project) { if (QtProject.GetPropertyValue(project, "ApplicationType") == "Linux") { return(true); } var qtToolsPath = QtProject.GetPropertyValue(project, "QtToolsPath"); return(File.Exists(Path.Combine(qtToolsPath, "lupdate.exe")) && File.Exists(Path.Combine(qtToolsPath, "lrelease.exe"))); }
public string GetProjectQtVersion(EnvDTE.Project project, EnvDTE.Configuration config) { ThreadHelper.ThrowIfNotOnUIThread(); if (QtProject.GetFormatVersion(project) >= Resources.qtMinFormatVersion_Settings) { return(QtProject.GetPropertyValue(project, config, "QtInstall")); } var key = "Qt5Version " + config.PlatformName; if (!project.Globals.get_VariablePersists(key)) { return(null); } var version = (string)project.Globals[key]; ExpandEnvironmentVariablesInQtVersion(ref version); return(VerifyIfQtVersionExists(version) ? version : null); }