From 0036b83fba1607622223d5015088c441f87a0edd Mon Sep 17 00:00:00 2001 From: yecate Date: Wed, 30 Jun 2021 01:56:05 +0800 Subject: improve support vs2022 preview --- xmake/modules/detect/sdks/find_vstudio.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua index ba268e5b6..362a2a705 100644 --- a/xmake/modules/detect/sdks/find_vstudio.lua +++ b/xmake/modules/detect/sdks/find_vstudio.lua @@ -254,7 +254,7 @@ function main(opt) local vswhere_VCAuxiliaryBuildDir = nil if (tonumber(version) >= 15) and vswhere then local vswhere_vrange = format("%s,%s)", version, (version + 1)) - local result = os.iorunv(vswhere.program, {"-property", "installationpath", "-version", vswhere_vrange}) + local result = os.iorunv(vswhere.program, {"-prerelease", "-property", "installationpath", "-version", vswhere_vrange}) if result then vswhere_VCAuxiliaryBuildDir = path.join(result:trim(), "VC", "Auxiliary", "Build") end -- cgit v1.3.1