最終更新日: 2021-07-18 日 16:40
ホーム | 文書トップ | 目次

Visual Studio コマンドライン開発環境

Table of Contents

Visual Studio 2019

PromptVS2019.png

Visual Studio 2017

vcvarsall.bat

$ "c:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat"
[ERROR:vcvarsall.bat] Error in script usage. The correct usage is:
Syntax:
    vcvarsall.bat [arch] [platform_type] [winsdk_version] [-vcvars_ver=vc_version]
where : 
    [arch]: x86 | amd64 | x86_amd64 | x86_arm | x86_arm64 | amd64_x86 | amd64_arm | amd64_arm64
    [platform_type]: {empty} | store | uwp 
    [winsdk_version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK.   
    [vc_version] : "14.0" for VC++ 2015 Compiler Toolset | {empty} for default VS 2017 VC++ compiler toolset

The store parameter sets environment variables to support Universal Windows Platform application 
development and is an alias for 'uwp'.

For example:
    vcvarsall.bat x86_amd64
    vcvarsall.bat x86_amd64 10.0.10240.0
    vcvarsall.bat x86_arm uwp 10.0.10240.0
    vcvarsall.bat x86_arm onecore 10.0.10240.0 -vcvars_ver=14.0
    vcvarsall.bat x64 8.1
    vcvarsall.bat x64 store 8.1

Please make sure either Visual Studio or C++ Build SKU is installed.
$ "c:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvarsall.bat" x86 8.1
'**********************************************************************
'** Visual Studio 2017 Developer Command Prompt v15.0.26730.12
'** Copyright (c) 2017 Microsoft Corporation
'**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'

Visual Studio 2015

vcvarsall.bat

動かない?

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"

参考

ホーム | 文書トップ | 目次
Created by Emacs 27.1 (Org mode 9.3)