From 5004c331c9926fb4117d597d792e950bc27ba39e Mon Sep 17 00:00:00 2001 From: SupSuper Date: Wed, 19 Dec 2018 01:24:40 +0000 Subject: MSVC: Fix natvis not being added to project in VS2017 --- devtools/create_project/msbuild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devtools/create_project') diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp index 485e8b4252..ba4833eeb6 100644 --- a/devtools/create_project/msbuild.cpp +++ b/devtools/create_project/msbuild.cpp @@ -190,8 +190,8 @@ void MSBuildProvider::createProjectFile(const std::string &name, const std::stri project << "\t\n"; } - // Visual Studio 2015 automatically imports natvis files that are part of the project - if (name == PROJECT_NAME && _version == 14) { + // Visual Studio 2015 and up automatically import natvis files that are part of the project + if (name == PROJECT_NAME && _version >= 14) { project << "\t\n"; project << "\t\t\n"; project << "\t\n"; -- cgit v1.2.3