RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: .NET
Expertise: Intermediate
Jun 30, 2009

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 "<Path-of-the-Solution-or-Project-File>"

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.

Deepak Choudhari
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date