aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core/QtVersionManager.cs
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2023-06-16 16:55:14 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2023-06-21 13:16:57 +0000
commit8872ebbf9f48f22aa996303e4d1f00b4ecd48780 (patch)
treecb85d5bb3c1e02894d82317adb582e6a1298622f /QtVsTools.Core/QtVersionManager.cs
parent8af39380f2e5183126058de4d6f92a48ec62e043 (diff)
Package: Move generated class 'Version' into core library
This is necessary to be able to move the Notification class later, cause Notification class in turn is used by some MsBuild classes that need to moved too. Change-Id: Ic1cdae347862f49c46909f3c7703a489e81421d5 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'QtVsTools.Core/QtVersionManager.cs')
-rw-r--r--QtVsTools.Core/QtVersionManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/QtVsTools.Core/QtVersionManager.cs b/QtVsTools.Core/QtVersionManager.cs
index 9d2c3f41..ad8af3e8 100644
--- a/QtVsTools.Core/QtVersionManager.cs
+++ b/QtVsTools.Core/QtVersionManager.cs
@@ -121,21 +121,21 @@ namespace QtVsTools.Core
public void SetLatestQtVersionAsDefault()
{
- var validVersions = new Dictionary<string, Version>();
+ var validVersions = new Dictionary<string, System.Version>();
foreach (var version in GetVersions()) {
if (version == "$(DefaultQtVersion)")
continue;
var path = GetInstallPath(version);
if (!string.IsNullOrEmpty(path) && QMake.Exists(path))
- validVersions[version] = new Version(new QtConfig(path).VersionString);
+ validVersions[version] = new System.Version(new QtConfig(path).VersionString);
}
if (validVersions.Count <= 0)
return;
var defaultName = "";
- Version defaultVersion = null;
+ System.Version defaultVersion = null;
foreach (var tmp in validVersions) {
var version = tmp.Value;
if (defaultVersion == null || defaultVersion < version) {