Tôi đã cài đặt Visual Studio 2017 và các công cụ v140
và v141
. Để làm việc với bộ công cụ v140
, tôi cần đặt môi trường cần thiết qua vcvars
. Tuy nhiên, chạy vcvars
cần thiết, tôi gặp phải nhiều lỗi khác nhau. Tôi đang lấy vcvars
từ thư mục này - C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC
- vì tôi cần phải bắt đầu môi trường cho công việc với bộ công cụ v140
.Visual Studio 2017: vcvars cho các công cụ v140
Nếu tôi chạy vcvarsall
, ví dụ, sau đó vcvarsall.bat x86
hoặc vcvarsall.bat x86_amd64
- và tôi nhận được lỗi sau:
Error in script usage. The correct usage is:
vcvarsall.bat [option]
or
vcvarsall.bat [option] store
or
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.
Nếu tôi chạy một tập tin cụ thể vcvars
, ví dụ, vcvars32.bat
, sau đó tôi nhận được lỗi khác:
ERROR: Cannot determine the location of the VS Common Tools folder.
Có ai có cùng vấn đề, bạn có thể trợ giúp không? Cảm ơn bạn.
Bạn có chắc chắn PATH được đặt không? [Điều này] (https://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-of-the-vs-common-tools-folder/) có thể giúp đỡ? –
@StutiRastogi đường dẫn C: \ Windows \ system32 đã được viết trong biến môi trường PATH. –
Làm việc tốt cho tôi.Tôi chỉ có thể đề xuất cài đặt lại/sửa chữa và/hoặc đảm bảo 'Visual Studio Build Tools 2017' được cài đặt. – Phil