Skip to content

MSVC activation script location changed? #74

@h-vetinari

Description

@h-vetinari

I was trying to use vs2022_win-64 today, and this did not work. Looking closer at the output of the activation script, I see:

C:\Program Files\Microsoft Visual Studio\2022\Community>CALL "VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.38 10.0.22621.0
'"VC\Auxiliary\Build\vcvars64.bat"' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Microsoft Visual Studio\2022\Community>if 1 NEQ 0 (if "" == "" (CALL "VC\Auxiliary\Build\vcvars64.bat" ) )
'"VC\Auxiliary\Build\vcvars64.bat"' is not recognized as an internal or external command,
operable program or batch file.

Looking at the content of that path for my local setup (17.8.4), C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build does not contain any bat files anymore, just

Microsoft.VCRedistVersion.default.props 
Microsoft.VCRedistVersion.default.txt
Microsoft.VCRedistVersion.v143.default.props

Fresh environment (installed vs2022_win-64 ninja cmake):

# packages in environment at E:\miniforge\envs\vc:
#
# Name                    Version                   Build  Channel
bzip2                     1.0.8                hcfcfb64_5    conda-forge
ca-certificates           2024.2.2             h56e8100_0    conda-forge
ccache                    4.9.1                h83c9fb6_0    conda-forge
cmake                     3.29.0               hf0feee3_0    conda-forge
krb5                      1.21.2               heb0366b_0    conda-forge
libcurl                   8.6.0                hd5e4a3a_0    conda-forge
libexpat                  2.6.2                h63175ca_0    conda-forge
libhiredis                1.0.2                h0e60522_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libuv                     1.48.0               hcfcfb64_0    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
ninja                     1.11.1               h91493d7_0    conda-forge
openssl                   3.2.1                hcfcfb64_1    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
vc                        14.3                hcf57466_18    conda-forge
vc14_runtime              14.38.33130         h82b7239_18    conda-forge
vs2015_runtime            14.38.33130         hcb4865c_18    conda-forge
vs2022_win-64             19.38.33130         h0bfb142_18    conda-forge
vswhere                   3.1.4                h57928b3_0    conda-forge
xz                        5.2.6                h8d14728_0    conda-forge
zstd                      1.5.5                h12be248_0    conda-forge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions