Fixed not opening the correct Visual Studio version for scripts
This commit is contained in:
parent
fc789334bd
commit
07a2eb2f64
|
@ -115,7 +115,7 @@ namespace SHADE
|
||||||
#else
|
#else
|
||||||
static constexpr int EXCESS_CHARS_COUNT = 2;
|
static constexpr int EXCESS_CHARS_COUNT = 2;
|
||||||
|
|
||||||
const auto RESULT = SHExecUtilties::ExecBlockingPowerShellCommand(L"./vswhere -version \"[15.0,19.0]\" -requires Microsoft.NetCore.Component.DevelopmentTools -find Common7\\\\IDE\\\\devenv.exe | Select-Object -first 1", true, true);
|
const auto RESULT = SHExecUtilties::ExecBlockingPowerShellCommand(L"./vswhere -version \"[15.0,21.0]\" -requires Microsoft.NetCore.Component.DevelopmentTools -find Common7\\\\IDE\\\\devenv.exe | Select-Object -last 1", true, true);
|
||||||
if (RESULT.StdOutput.size() < EXCESS_CHARS_COUNT)
|
if (RESULT.StdOutput.size() < EXCESS_CHARS_COUNT)
|
||||||
{
|
{
|
||||||
SHLOG_ERROR("[SHVSUtilities] Unable to get path to Visual Studio installation. SHVSUtilities will not work.");
|
SHLOG_ERROR("[SHVSUtilities] Unable to get path to Visual Studio installation. SHVSUtilities will not work.");
|
||||||
|
|
Loading…
Reference in New Issue