Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Object-Oriented Programming Fields

Pavel Senk
Pavel Senk
2,717 Points

Compile files in command line

Hello,

I am trying to compile file in windows command line, but command "msc" is not recognized as an internal or external command.

Can you please help me, how to compile via command line or by Visual Studio ?

Thanks for responses.

1 Answer

Steven Parker
Steven Parker
231,198 Points

Your default window probably doesn't have the VS tools in the execution path, and the online documentation says that the command to compile is "cl".

Here's a link to a Walkthrough: Compiling a Native C++ Program on the Command Line, which explains how to open a special command window and takes you through the process step-by-step.