From 35e5ba84d324c575ca396a961fd51cc248eeb3ae Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Thu, 13 Sep 2018 03:42:52 -0700 Subject: [PATCH] Fix #17843 inability to generate vs projects without being in a MSVC command prompt by guessing variables. The vcxproj extension has been in MSVC 2012. The sln extension has been in MSVC 2012. --- methods.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/methods.py b/methods.py index 1bc10954baf..00c477635e1 100644 --- a/methods.py +++ b/methods.py @@ -578,6 +578,9 @@ def generate_vs_project(env, num_jobs): release_targets = ['bin\\godot.windows.opt.32.exe'] + ['bin\\godot.windows.opt.64.exe'] release_debug_targets = ['bin\\godot.windows.opt.tools.32.exe'] + ['bin\\godot.windows.opt.tools.64.exe'] targets = debug_targets + release_targets + release_debug_targets + if not env.get('MSVS'): + env['MSVS']['PROJECTSUFFIX'] = '.vcxproj' + env['MSVS']['SOLUTIONSUFFIX'] = '.sln' env.MSVSProject( target=['#godot' + env['MSVSPROJECTSUFFIX']], incs=env.vs_incs,