

0 for C# 5Ĭopyright (C) Microsoft Corporation. Microsoft (R) Visual C# Compiler version.

I now try again in Visual Studio Code: csc -langversion:? The only csc.exe files I find are located in the directory:Ĭ:\Windows\Microsoft.NET\Framework64\v x.x.xxxxx with the latest being version being 9.Īll the instructions I could find suggested using this folder to be set as an environment variable path. I should locate the csc.exe file and set it as an environment variable path.NET SDK and compiler and uses it automatically. Visual Studio apparently contains the necessary. When using Visual Studio, this problem doesn't even occur.Having searched intensely, I have found out this: My previous attempts in solving the problem

Name, or if a path was included, verify that the path is correct and I'm not able to find and use the latest version of C# compiler with Visual Studio Code.Įnquiring enquiring my compiler version with the Visual Studio Code terminal command csc -langversion:? brings up the following error message:Ĭsc : The term 'csc' is not recognized as the name of cmdlet,įunction, script file, or operable program. I'm setting up Visual Studio Code to write and learn C#.
