Dev Command Tool

The Dev Command Tool (devcmd) is a command-line utility designed to simplify the process of setting up your environment for developing Windows applications. It provides a convenient way to invoke MSBuild, along with other SDK-specific tools and environment variables, without requiring manual configuration.

What is Dev Command Tool?

When you install the Windows SDK, it includes various build tools and libraries. To use these effectively, your command prompt session needs to be aware of their locations and configurations. The Dev Command Tool automates this by:

How to Use

You can launch the Dev Command Tool from the Windows Start Menu. Navigate to the Microsoft SDKs folder and select the "Developer Command Prompt" or "Developer PowerShell" shortcut corresponding to your installed SDK version. This will open a new command prompt or PowerShell window with the environment pre-configured.

From the Start Menu:

  1. Click the Start button.
  2. Type "Developer Command Prompt" or "Developer PowerShell".
  3. Select the relevant shortcut from the search results.

From the Command Line:

If you know the installation path of your SDK, you can directly execute the cmd.exe or powershell.exe from the SDK's bin directory. However, using the Start Menu shortcut is the recommended and easiest method.

Key Features and Benefits

Example Usage (within Dev Command Prompt)

Once the Dev Command Prompt is open, you can directly use MSBuild to build your Visual Studio projects:

msbuild YourProject.sln /t:Rebuild /p:Configuration=Release

You can also invoke other SDK tools:

guidgen
signtool sign /f YourCert.pfx /p YourPassword YourFile.exe
Note: The exact name and location of the Dev Command Prompt shortcut may vary slightly depending on the specific Windows SDK version installed.

Related Tools