Fix editor detecting msbuild with a msvc 'tools only' install

This commit is contained in:
Ignacio Etcheverry 2018-05-02 15:06:25 +02:00
parent d0183effe0
commit 93d13bee8b
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ String find_msbuild_tools_path() {
List<String> vswhere_args; List<String> vswhere_args;
vswhere_args.push_back("-latest"); vswhere_args.push_back("-latest");
vswhere_args.push_back("-products");
vswhere_args.push_back("*");
vswhere_args.push_back("-requires"); vswhere_args.push_back("-requires");
vswhere_args.push_back("Microsoft.Component.MSBuild"); vswhere_args.push_back("Microsoft.Component.MSBuild");