What's the differences between "Developer Command Prompt" and "x86 Native Tools Command Prompt" ?

X Zou 21 Reputation points
2021-11-22T08:43:37.293+00:00

In this page
https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170
I see such descriptions:

Developer command prompt shortcuts
The command prompt shortcuts are installed in a version-specific Visual Studio folder in your Windows Start menu. Here's a list of the base command prompt shortcuts and the build architectures they support:

  1. Developer Command Prompt - Sets the environment to use 32-bit, x86-native tools to build 32-bit, x86-native code.
  2. x86 Native Tools Command Prompt - Sets the environment to use 32-bit, x86-native tools to build 32-bit, x86-native code.

These two options have different names, but the same annotations. What's the difference between them?

Thanks in advance.

Developer technologies Visual Studio Other
{count} votes

Accepted answer
  1. RLWA32 49,536 Reputation points
    2021-11-22T09:36:25.183+00:00

    The Developer Command Prompt shortcut and the x86 Native Tools shortcut execute different batch files to initialize the environment in the cmd.exe process that is started.

    These are the properties of the shortcuts from an installation of VS2019 Community-
    151405-vscmdprops.png

    However, it is interesting to note that running the set command in each command prompt and comparing the results indicated that the only difference in the environment variables between them was that the x86 Native Tools command prompt environment included the variable -- Platform=x86

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. David Lowndes 4,726 Reputation points
    2021-11-22T09:32:00.76+00:00

    Opening both on my PC, executing set, then comparing both shows 1 difference:

    Platform=x86
    

    is set in the x86 Native Tools window whereas it's absent in the Developer window.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.