I installed Visual Studio 2017 and toolsets v140 and v141. To work with v140 toolset, I need to set the necessary environment via vcvars. However, running the necessary vcvars, I get various errors. I am taking vcvars from this directory - C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC - as I need to initiate the environment for the work with v140 toolset.
If I run vcvarsall, for example, then vcvarsall.bat x86 or vcvarsall.bat x86_amd64 - and I get the following error:
Error in script usage. The correct usage is:
vcvarsall.bat [option]or
vcvarsall.bat [option] storeor
vcvarsall.bat [option] [version number]or
vcvarsall.bat [option] store [version number]where [option] is: x86 | amd64 | arm | x86_amd64 | x86_arm | amd64_x86 | >amd64_arm
where [version number] is either the full Windows 10 SDK version number or "8.1" to use the windows 8.1 SDK: The store parameter sets environment variables to support store (rather than desktop) development. :
For example:
vcvarsall.bat x86_amd64
vcvarsall.bat x86_arm store
vcvarsall.bat x86_amd64 10.0.10240.0
vcvarsall.bat x86_arm store 10.0.10240.0
vcvarsall.bat x64 8.1
vcvarsall.bat x64 store 8.1 :Please make sure either Visual Studio or C++ Build SKU is installed.
If I run a specific file vcvars, for example, vcvars32.bat, then I get another error:
ERROR: Cannot determine the location of the VS Common Tools folder.
Has anyone had the same issue, could you help? Thank you.