I'm trying to compile my C# file with the command line by executing the csc (file name) command. I don't want to use an IDE because I prefer the command line right now.
However the csc command is not found I believe because the .NET framework is not properly installed.
I've installed visual studio, but csc not not come with it.
What do I have to install to get access to the csc compile command?
The error is 'csc' is not recognized as an internal or external command.
However the csc command is not found I believe because the .NET framework is not properly installed.
It's far more likely that you just haven't got it in your path.
If you've installed Visual Studio, one of the tool shortcuts associated with it should be "Developer Prompt" which will create appropriate path entries for that shell...
As an example, try running it with a full path to csc.exe
, e.g.
"c:\Program Files (x86)"\MSBuild\14.0\bin\csc.exe
(That's where mine's being picked up from.)
See more on this question at Stackoverflow