CL not recognizedas a command


I don’t know why but my code doesn’t want to compile.

Did you open VS Code from the developer command prompt?

1 Like

Yes I did

1 Like

In the developer command prompt in the form of a screenshot what do you get for cl?

1 Like

1 Like

And that’s what you’re using to open VS Code?

You’re getting that message because the terminal is in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community and not where you saved your file which judging by your previous screenshot is C:\Users\adam\source\repos. You would need to cd (change directory) before compiling

cd C:\Users\adam\source\repos
2 Likes

ok thx, the video kind of confused me because there was nothing done with the developer command prompt in the first place

1 Like

It was used to open VS Code. It was done in Also Install VS Code at about 6:40 and then there’s a reminder to do that in Your First Program.

2 Likes

Privacy & Terms