path: root/qmake/generators/win32/msvc_objectmodel.h
diff options
authorJoerg Bornemann <>2016-11-10 09:40:09 +0100
committerJoerg Bornemann <>2016-11-14 15:50:49 +0000
commit2713f080bb34a2513dc5585a209bdc95ab815e45 (patch)
tree8a021203d9d0a876ec58487ffc3ddbe7558930e2 /qmake/generators/win32/msvc_objectmodel.h
parenta3c9550d7cef969298c43276cbfe92abb8578ce5 (diff)
Remove wondrous VS version detection logic
Replace which_dotnet_version with a simple function that converts the value of MSVC_VER to its corresponding enum value in the VS project generator. This reduces the maintenance burden when adding support for a new VS version, because we do not need to update the registry keys in which_dotnet_version anymore. The which_dotnet_version function implemented the following logic: - find all installed VS versions via registry - select the "best matching one" - if there is no best match, select the VS that's in PATH - create a project for that VS installation The usefulness of this whole stunt is questionable as the VS version of Qt's mkspec must match the version of a project using that Qt anyway. Change-Id: I9fb9a099ee5ddb5fc4c450be4f68f41f2b406b9a Reviewed-by: Oswald Buddenhagen <> Reviewed-by: Oliver Wolff <> Reviewed-by: Joerg Bornemann <>
Diffstat (limited to 'qmake/generators/win32/msvc_objectmodel.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.h b/qmake/generators/win32/msvc_objectmodel.h
index 94256f2103..64c6e9098d 100644
--- a/qmake/generators/win32/msvc_objectmodel.h
+++ b/qmake/generators/win32/msvc_objectmodel.h
@@ -54,6 +54,8 @@ enum DotNET {
NET2015 = 0xd0
+DotNET vsVersionFromString(const ProString &versionString);
This Object model is of course VERY simplyfied,
and does not actually follow the original MSVC