How to Build a .NET Solution or Project from a Command Prompt

It can be annoying to open the IDE every time you need to build a .NET solution or project. Fortunately, .NET ships with a command-line utility called devenv.exe that you can use to build a solution or a project from a command line. To use it, open a command window and type the following command, using the appropriate path to your solution or project:

devenv /build Debug ""

The preceding command builds the specified solution or project in Debug mode. If any build errors occur, devenv.exe displays them in the command window. Check out the topic Devenv Command-Line Switches for more information.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: