#2359·xenia

Build not working with Community 2026

Author: mortlockpaul-archCreated Aug 15, 2026Updated Aug 16, 2026
Labelsbug

Validation

Describe what's going wrong

Build command fails

Describe what should happen

if version < 16:
    if 'VS140COMNTOOLS' in os.environ:
        version = 2015
        vcvars_path = os.environ['VS140COMNTOOLS']
        vcvars_path = os.path.join(vcvars_path, '..\\..\\vc\\vcvarsall.bat')
        env_tool_args = [vcvars_path, 'x64', '&&', 'set']
else:
    vsdevcmd_path = os.path.join(install_path, 'Common7\\Tools\\VsDevCmd.bat')
    if os.path.isfile(vsdevcmd_path) and os.access(vsdevcmd_path, os.X_OK):
        env_tool_args = [vsdevcmd_path, '-arch=amd64', '-host_arch=amd64', '&&', 'set']
    else:
        vcvars_path = os.path.join(install_path, 'VC\\Auxiliary\\Build\\vcvarsall.bat')
        env_tool_args = [vcvars_path, 'x64', '&&', 'set']

if version == 0:
    return None

import_subprocess_environment(env_tool_args)
os.environ['VSVERSION'] = str(version)
return version

version comes back as 18 and skips the setup

If applicable, provide a callstack here, especially for crashes

No response

If applicable, upload a logfile and link it here

No response